@okiss/oms 0.0.34 → 0.0.36

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,22 +1,22 @@
1
- var Ct = Object.defineProperty;
2
- var xt = (e, t, l) => t in e ? Ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var R = (e, t, l) => (xt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as V, onBeforeMount as ze, provide as Bt, resolveComponent as v, openBlock as i, createBlock as m, createVNode as c, computed as N, createTextVNode as g, withCtx as r, TransitionGroup as It, createElementBlock as h, Fragment as k, renderList as A, toDisplayString as I, normalizeClass as G, renderSlot as te, mergeProps as U, createCommentVNode as w, toRefs as At, ref as P, normalizeStyle as $t, createElementVNode as b, Transition as Tt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as K, guardReactiveProps as X, unref as E, withDirectives as ve, vModelText as je, resolveDirective as Ft, onMounted as Ot, isRef as Dt, getCurrentInstance as Pt, h as Rt, toRaw as Lt, createApp as Mt } from "vue";
5
- import { addNewStyle as jt, addNewStyleTag as Nt, queryParams as Vt, logGroup as qt, isString as xe, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ut, Cache as fe, isExternal as Ne, getQueryParam as Ht, createIFrame as Gt, strVarReplace as Z, obj2Param as Jt, isObject as Q, effectDataTrans as zt, isArray as Ye } from "@okiss/utils";
1
+ var xt = Object.defineProperty;
2
+ var Bt = (e, t, l) => t in e ? xt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var R = (e, t, l) => (Bt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as V, onBeforeMount as ze, provide as It, resolveComponent as v, openBlock as i, createBlock as m, createVNode as c, computed as N, createTextVNode as g, withCtx as r, TransitionGroup as At, createElementBlock as h, Fragment as k, renderList as A, toDisplayString as I, normalizeClass as H, renderSlot as te, mergeProps as G, createCommentVNode as E, toRefs as $t, ref as P, normalizeStyle as Tt, createElementVNode as b, Transition as Ft, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as K, guardReactiveProps as X, unref as w, withDirectives as ve, vModelText as je, resolveDirective as Ot, onMounted as Dt, isRef as Pt, getCurrentInstance as Rt, h as Lt, toRaw as Mt, createApp as jt } from "vue";
5
+ import { addNewStyle as Nt, addNewStyleTag as Vt, queryParams as qt, logGroup as Ut, isString as Ce, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ht, Cache as fe, isExternal as Ne, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Z, obj2Param as zt, isObject as Q, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
6
6
  import he from "mockjs";
7
- import Kt, { cloneDeep as y, merge as F, get as le, unset as et } from "lodash";
7
+ import Wt, { cloneDeep as y, merge as F, get as le, unset as et } from "lodash";
8
8
  import tt from "element-plus/lib/locale/lang/zh-cn";
9
- import Be from "axios";
9
+ import xe from "axios";
10
10
  import M from "js-cookie";
11
- import { createStore as Wt, useStore as lt, mapGetters as Ie } from "vuex";
12
- import Zt, { ElMessage as Qt, ElMessageBox as Xt, ElCard as Yt, ElRow as el, ElCol as tl } from "element-plus";
11
+ import { createStore as Zt, useStore as lt, mapGetters as Be } from "vuex";
12
+ import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
- import { VForm as J, VBtn as Ae, JsonView as $e, VTable as ne, VChart as ll, setUploadHeaderHandle as nl, VIcon as ol } from "@okiss/vbtf";
15
+ import { VForm as J, VBtn as Ie, JsonView as Ae, VTable as ne, VChart as nl, setUploadHeaderHandle as ol, VIcon as sl } from "@okiss/vbtf";
16
16
  import "normalize.css/normalize.css";
17
17
  import "@okiss/vbtf/style.css";
18
- import { useRoute as ce, onBeforeRouteLeave as sl, useRouter as al, createRouter as il, createWebHashHistory as rl, onBeforeRouteUpdate as ul } from "vue-router";
19
- import { ElBreadcrumbItem as cl, ElBreadcrumb as pl, ElRow as se, ElMain as dl, ElAside as ml, ElContainer as fl, ElDivider as nt, ElButton as ue, ElOption as Te, ElSelect as Fe, ElFormItem as ot, ElForm as st, ElCol as pe, ElDrawer as at, ElDropdownItem as hl, ElDropdownMenu as bl, ElDropdown as _l, ElMenuItem as yl, ElSubMenu as vl, ElOptionGroup as gl, ElMenu as kl, ElScrollbar as El, ElBacktop as wl, ElMessage as Sl, ElAlert as ge, ElTree as Cl, ElCard as Oe } from "element-plus/es";
18
+ import { useRoute as ce, onBeforeRouteLeave as al, useRouter as il, createRouter as rl, createWebHashHistory as ul, onBeforeRouteUpdate as cl } from "vue-router";
19
+ import { ElBreadcrumbItem as pl, ElBreadcrumb as dl, ElRow as se, ElMain as ml, ElAside as fl, ElContainer as hl, ElDivider as nt, ElButton as ue, ElOption as $e, ElSelect as Te, ElFormItem as ot, ElForm as st, ElCol as pe, ElDrawer as at, ElDropdownItem as bl, ElDropdownMenu as _l, ElDropdown as yl, ElMenuItem as vl, ElSubMenu as gl, ElOptionGroup as kl, ElMenu as El, ElScrollbar as wl, ElBacktop as Sl, ElMessage as Cl, ElAlert as Fe, ElTree as xl, ElCard as Oe } from "element-plus/es";
20
20
  import "element-plus/es/components/row/style/css";
21
21
  import "element-plus/es/components/drawer/style/css";
22
22
  import "element-plus/es/components/dropdown/style/css";
@@ -25,7 +25,7 @@ import "element-plus/es/components/dropdown-item/style/css";
25
25
  import "element-plus/es/components/col/style/css";
26
26
  import "element-plus/es/components/breadcrumb/style/css";
27
27
  import "element-plus/es/components/breadcrumb-item/style/css";
28
- import * as xl from "path-to-regexp";
28
+ import * as Bl from "path-to-regexp";
29
29
  import "element-plus/es/components/form/style/css";
30
30
  import "element-plus/es/components/form-item/style/css";
31
31
  import "element-plus/es/components/select/style/css";
@@ -35,20 +35,20 @@ import "element-plus/es/components/divider/style/css";
35
35
  import "element-plus/es/components/container/style/css";
36
36
  import "element-plus/es/components/aside/style/css";
37
37
  import "element-plus/es/components/main/style/css";
38
- import Bl from "mitt";
38
+ import Il from "mitt";
39
39
  import "element-plus/es/components/scrollbar/style/css";
40
40
  import "element-plus/es/components/menu/style/css";
41
41
  import "element-plus/es/components/sub-menu/style/css";
42
42
  import "element-plus/es/components/menu-item/style/css";
43
43
  import "element-plus/es/components/option-group/style/css";
44
44
  import "element-plus/es/components/backtop/style/css";
45
- import { useEventListener as Il } from "@vueuse/core";
45
+ import { useEventListener as Al } from "@vueuse/core";
46
46
  import "element-plus/es/components/alert/style/css";
47
47
  import "element-plus/es/components/card/style/css";
48
48
  import "element-plus/es/components/tree/style/css";
49
- import Al from "vue3-markdown-it";
49
+ import $l from "vue3-markdown-it";
50
50
  import "element-plus/es/components/message/style/css";
51
- import ke from "nprogress";
51
+ import ge from "nprogress";
52
52
  import "nprogress/nprogress.css";
53
53
  String.prototype.format || (String.prototype.format = function() {
54
54
  const e = arguments;
@@ -56,26 +56,26 @@ String.prototype.format || (String.prototype.format = function() {
56
56
  return typeof e[l] < "u" ? e[l] : t;
57
57
  });
58
58
  });
59
- const $l = /* @__PURE__ */ V({
59
+ const Tl = /* @__PURE__ */ V({
60
60
  __name: "App",
61
61
  setup(e) {
62
62
  var t, l, n, o;
63
63
  return ze(() => {
64
64
  const s = document.getElementById("preloader");
65
- s !== null && (document.body.removeChild(s), jt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Nt(`.iconfont {
65
+ s !== null && (document.body.removeChild(s), Nt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Vt(`.iconfont {
66
66
  font-size: 19px;
67
67
  font-style: normal;
68
68
  -webkit-font-smoothing: antialiased;
69
69
  font-family: iconfont !important;
70
70
  }`));
71
- }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Bt("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (s, a) => {
71
+ }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && It("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (s, a) => {
72
72
  const u = v("router-view");
73
73
  return i(), m(u);
74
74
  };
75
75
  }
76
76
  });
77
77
  var Y = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Y || {});
78
- const Tl = {
78
+ const Fl = {
79
79
  saveApi: "/save",
80
80
  afterSubmit: "",
81
81
  afterReset: "goback",
@@ -462,7 +462,7 @@ const Tl = {
462
462
  type: "success"
463
463
  }
464
464
  }
465
- ], Fl = {
465
+ ], Ol = {
466
466
  exportAble: !0,
467
467
  filter: [
468
468
  {
@@ -559,7 +559,7 @@ const Tl = {
559
559
  }
560
560
  ],
561
561
  normalButton: [
562
- ...Kt.cloneDeep(Ve),
562
+ ...Wt.cloneDeep(Ve),
563
563
  {
564
564
  type: "jump",
565
565
  target: "/user/form",
@@ -571,7 +571,7 @@ const Tl = {
571
571
  ],
572
572
  selectedNotice: "\u5F53\u524D\u5171\u52FE\u9009: {selectedCount} \u6761",
573
573
  listApi: "/user/list"
574
- }, Ol = {
574
+ }, Dl = {
575
575
  code: 0,
576
576
  data: {
577
577
  "list|0-100": [
@@ -592,7 +592,7 @@ const Tl = {
592
592
  "page|1-5": 2
593
593
  }
594
594
  }
595
- }, Dl = {
595
+ }, Pl = {
596
596
  afterSubmit: "",
597
597
  afterReset: "goback",
598
598
  formItems: [
@@ -629,7 +629,7 @@ const Tl = {
629
629
  label: "span"
630
630
  }
631
631
  ]
632
- }, Pl = {
632
+ }, Rl = {
633
633
  afterSubmit: "",
634
634
  afterReset: "",
635
635
  formItems: [
@@ -668,7 +668,7 @@ const Tl = {
668
668
  label: "span"
669
669
  }
670
670
  ]
671
- }, Rl = { form: Tl, table: Fl, listMock: Ol, layoutForm: Dl, layoutSection: Pl }, Ll = [
671
+ }, Ll = { form: Fl, table: Ol, listMock: Dl, layoutForm: Pl, layoutSection: Rl }, Ml = [
672
672
  {
673
673
  method: Y.POST,
674
674
  url: "/login",
@@ -712,11 +712,11 @@ const Tl = {
712
712
  {
713
713
  url: "/user/list",
714
714
  method: Y.GET,
715
- response: (e) => Rl.listMock
715
+ response: (e) => Ll.listMock
716
716
  }
717
- ], Ml = [
718
- ...Ll
719
- ], jl = {
717
+ ], jl = [
718
+ ...Ml
719
+ ], Nl = {
720
720
  baseURL: "/api",
721
721
  withCredentials: !0,
722
722
  timeout: 5e3,
@@ -747,29 +747,29 @@ const Tl = {
747
747
  },
748
748
  serviceOffLineNotice: "\u5F53\u524D\u9875\u9762\u529F\u80FD\u6B63\u5728\u7EF4\u62A4, \u8BF7\u7A0D\u540E\u518D\u8BD5~~~"
749
749
  }, de = {
750
- axios: jl,
750
+ axios: Nl,
751
751
  settings: it,
752
752
  plugins: [],
753
753
  mock: !1
754
- }, Ee = {};
754
+ }, ke = {};
755
755
  function rt(e) {
756
756
  e.forEach((t) => {
757
757
  const l = ut(t);
758
- Ee[`${t.method}::${l}`] = t;
758
+ ke[`${t.method}::${l}`] = t;
759
759
  });
760
760
  }
761
- rt(Ml);
761
+ rt(jl);
762
762
  function ut(e) {
763
763
  var n;
764
764
  let t = e.url, l = e.baseURL || ((n = de.axios) == null ? void 0 : n.baseURL);
765
765
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
766
766
  }
767
- function Nl() {
768
- Object.keys(Ee).forEach((e) => {
769
- const t = Ee[e], l = ut(t);
767
+ function Vl() {
768
+ Object.keys(ke).forEach((e) => {
769
+ const t = ke[e], l = ut(t);
770
770
  he.mock(l, t.method, function(n) {
771
- const { url: o, type: s, body: a } = n, u = Vt(o), p = a ? JSON.parse(a) : {}, d = t.response({ query: u, data: p }), f = he.mock(d);
772
- return qt(o, { type: s, query: u, data: p, response: f }), he.mock(f);
771
+ const { url: o, type: s, body: a } = n, u = qt(o), p = a ? JSON.parse(a) : {}, d = t.response({ query: u, data: p }), f = he.mock(d);
772
+ return Ut(o, { type: s, query: u, data: p, response: f }), he.mock(f);
773
773
  });
774
774
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
775
775
  }
@@ -777,14 +777,14 @@ const De = "oms:token";
777
777
  function Pe() {
778
778
  return M.get(De) || "";
779
779
  }
780
- function Vl(e) {
780
+ function ql(e) {
781
781
  const t = new Date(new Date().getTime() + (S.state.settings.tokenExpire || 864e5));
782
782
  return M.set(De, e, { expires: t });
783
783
  }
784
784
  function ct() {
785
785
  return M.remove(De);
786
786
  }
787
- const ql = {
787
+ const Ul = {
788
788
  name: "",
789
789
  nickname: "",
790
790
  avatar: "",
@@ -797,12 +797,12 @@ const ql = {
797
797
  roleIds: [],
798
798
  path: "",
799
799
  env: ""
800
- }, Ul = {
800
+ }, Hl = {
801
801
  namespaced: !0,
802
- state: ql,
802
+ state: Ul,
803
803
  mutations: {
804
804
  updateToken(e, t) {
805
- e.token = t, Vl(t);
805
+ e.token = t, ql(t);
806
806
  },
807
807
  removeToken(e) {
808
808
  e.token = "", ct();
@@ -887,9 +887,9 @@ const ql = {
887
887
  });
888
888
  }
889
889
  }
890
- }, Hl = y(it), Gl = {
890
+ }, Gl = y(it), Jl = {
891
891
  namespaced: !0,
892
- state: Hl,
892
+ state: Gl,
893
893
  mutations: {
894
894
  updateSettings(e, t) {
895
895
  e = F(e, t);
@@ -900,7 +900,7 @@ const ql = {
900
900
  e("updateSettings", l);
901
901
  }
902
902
  }
903
- }, Jl = {
903
+ }, zl = {
904
904
  sidebar: {
905
905
  opened: M.get("sidebarStatus") ? !!M.get("sidebarStatus") : !0,
906
906
  withoutAnimation: !1
@@ -909,9 +909,9 @@ const ql = {
909
909
  pages: {},
910
910
  currentRouteMeta: {},
911
911
  builderSchema: {}
912
- }, zl = {
912
+ }, Kl = {
913
913
  namespaced: !0,
914
- state: Jl,
914
+ state: zl,
915
915
  mutations: {
916
916
  TOGGLE_SIDEBAR: (e) => {
917
917
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? M.set("sidebarStatus", "1") : M.set("sidebarStatus", "0");
@@ -952,11 +952,11 @@ const ql = {
952
952
  e("SET_BUILDER_SCHEMA", t);
953
953
  }
954
954
  }
955
- }, Kl = {
956
- currentCellItem: {}
957
955
  }, Wl = {
956
+ currentCellItem: {}
957
+ }, Zl = {
958
958
  namespaced: !0,
959
- state: Kl,
959
+ state: Wl,
960
960
  mutations: {
961
961
  SET_CURRENT_CELLITEM: (e, t) => {
962
962
  e.currentCellItem = t;
@@ -967,7 +967,7 @@ const ql = {
967
967
  e("SET_CURRENT_CELLITEM", t);
968
968
  }
969
969
  }
970
- }, S = Wt({
970
+ }, S = Zt({
971
971
  state: void 0,
972
972
  getters: {
973
973
  http: (e) => e.http,
@@ -994,12 +994,12 @@ const ql = {
994
994
  }
995
995
  },
996
996
  modules: {
997
- user: Ul,
998
- settings: Gl,
999
- app: zl,
1000
- builderSchema: Wl
997
+ user: Hl,
998
+ settings: Jl,
999
+ app: Kl,
1000
+ builderSchema: Zl
1001
1001
  }
1002
- }), Zl = Qt, qe = Xt, Ql = Be.CancelToken, ie = {
1002
+ }), Ql = Xt, qe = Yt, Xl = xe.CancelToken, ie = {
1003
1003
  taskList: {},
1004
1004
  cacheList: /* @__PURE__ */ new Map(),
1005
1005
  uniqueId(e) {
@@ -1035,16 +1035,16 @@ const ql = {
1035
1035
  const t = this.uniqueId(e);
1036
1036
  return this.cacheList.delete(t);
1037
1037
  }
1038
- }, Xl = {
1038
+ }, Yl = {
1039
1039
  onFulfilled: function(e) {
1040
- return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new Ql((t) => {
1040
+ return e.cacheEnable === !1 || (ie.pending(e) && ie.delTask(e), e.cancelToken = new Xl((t) => {
1041
1041
  ie.addTask(e, t);
1042
1042
  })), e;
1043
1043
  },
1044
1044
  onRejected(e) {
1045
1045
  return Promise.reject(e);
1046
1046
  }
1047
- }, Yl = {
1047
+ }, en = {
1048
1048
  onFulfilled: function(e) {
1049
1049
  return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ie.addCache(e.config, e.data), e;
1050
1050
  },
@@ -1052,24 +1052,24 @@ const ql = {
1052
1052
  return Promise.reject(e);
1053
1053
  }
1054
1054
  };
1055
- function en() {
1055
+ function tn() {
1056
1056
  return S.state.user.token;
1057
1057
  }
1058
1058
  function Ue(e) {
1059
- Zl({
1059
+ Ql({
1060
1060
  message: e,
1061
1061
  type: "error",
1062
1062
  duration: 5 * 1e3,
1063
1063
  grouping: !0
1064
1064
  });
1065
1065
  }
1066
- const tn = {
1066
+ const ln = {
1067
1067
  onFulfilled: function(e) {
1068
1068
  e.headers = e.headers || {};
1069
- const t = en();
1069
+ const t = tn();
1070
1070
  return t && (e.headers["X-Token"] = t), e;
1071
1071
  }
1072
- }, ln = {
1072
+ }, nn = {
1073
1073
  onFulfilled(e) {
1074
1074
  var n, o, s, a, u, p, d;
1075
1075
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
@@ -1090,7 +1090,7 @@ const tn = {
1090
1090
  return Promise.reject(f);
1091
1091
  }
1092
1092
  let l = (u = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : u._message_box;
1093
- return l !== void 0 && (xe(l) && (l = {
1093
+ return l !== void 0 && (Ce(l) && (l = {
1094
1094
  message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
1095
1095
  }), qe({
1096
1096
  title: "\u63D0\u793A",
@@ -1101,38 +1101,38 @@ const tn = {
1101
1101
  },
1102
1102
  onRejected(e) {
1103
1103
  var t;
1104
- return Be.isCancel(e) ? Promise.reject("") : (Ue(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
1104
+ return xe.isCancel(e) ? Promise.reject("") : (Ue(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
1105
1105
  }
1106
- }, nn = [
1106
+ }, on = [
1107
1107
  {
1108
- request: Xl,
1109
- response: Yl
1108
+ request: Yl,
1109
+ response: en
1110
1110
  },
1111
1111
  {
1112
- request: tn,
1113
- response: ln
1112
+ request: ln,
1113
+ response: nn
1114
1114
  }
1115
1115
  ];
1116
1116
  function Re(e = {}) {
1117
- const t = de.axios || {}, l = F(t, e || {}), n = Be.create({
1117
+ const t = de.axios || {}, l = F(t, e || {}), n = xe.create({
1118
1118
  ...l
1119
1119
  });
1120
- return nn.forEach((o) => {
1120
+ return on.forEach((o) => {
1121
1121
  n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
1122
1122
  }), n;
1123
1123
  }
1124
- const on = Re();
1124
+ const sn = Re();
1125
1125
  const pt = {};
1126
- function fi(e, t) {
1126
+ function _i(e, t) {
1127
1127
  pt[e] = t;
1128
1128
  }
1129
- function sn(e) {
1129
+ function an(e) {
1130
1130
  return pt[e];
1131
1131
  }
1132
- const an = V({
1132
+ const rn = V({
1133
1133
  name: "Dashboard",
1134
1134
  setup() {
1135
- const e = sn("test");
1135
+ const e = an("test");
1136
1136
  if (e)
1137
1137
  return () => c(e, null, null);
1138
1138
  const t = lt(), l = N(() => t.getters.name);
@@ -1143,13 +1143,13 @@ const an = V({
1143
1143
  }, [g("Hi "), l.value, g(" \u{1F604}")])]);
1144
1144
  }
1145
1145
  });
1146
- const x = (e, t) => {
1146
+ const C = (e, t) => {
1147
1147
  const l = e.__vccOpts || e;
1148
1148
  for (const [n, o] of t)
1149
1149
  l[n] = o;
1150
1150
  return l;
1151
- }, rn = /* @__PURE__ */ x(an, [["__scopeId", "data-v-10e6b4b6"]]);
1152
- const un = {
1151
+ }, un = /* @__PURE__ */ C(rn, [["__scopeId", "data-v-10e6b4b6"]]);
1152
+ const cn = {
1153
1153
  data() {
1154
1154
  return {
1155
1155
  levelList: null
@@ -1181,7 +1181,7 @@ const un = {
1181
1181
  },
1182
1182
  pathCompile(e) {
1183
1183
  const { params: t } = this.$route;
1184
- return xl.compile(e)(t);
1184
+ return Bl.compile(e)(t);
1185
1185
  },
1186
1186
  handleLink(e) {
1187
1187
  const { redirect: t, path: l } = e;
@@ -1192,27 +1192,27 @@ const un = {
1192
1192
  this.$router.push(this.pathCompile(l));
1193
1193
  }
1194
1194
  }
1195
- }, cn = {
1195
+ }, pn = {
1196
1196
  key: 0,
1197
1197
  class: "no-redirect"
1198
- }, pn = ["onClick"];
1199
- function dn(e, t, l, n, o, s) {
1200
- const a = cl, u = pl;
1198
+ }, dn = ["onClick"];
1199
+ function mn(e, t, l, n, o, s) {
1200
+ const a = pl, u = dl;
1201
1201
  return i(), m(u, {
1202
1202
  class: "app-breadcrumb",
1203
1203
  separator: "/"
1204
1204
  }, {
1205
1205
  default: r(() => [
1206
- c(It, { name: "breadcrumb" }, {
1206
+ c(At, { name: "breadcrumb" }, {
1207
1207
  default: r(() => [
1208
1208
  (i(!0), h(k, null, A(o.levelList, (p, d) => (i(), m(a, {
1209
1209
  key: p.path
1210
1210
  }, {
1211
1211
  default: r(() => [
1212
- p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", cn, I(p.meta.title), 1)) : (i(), h("a", {
1212
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", pn, I(p.meta.title), 1)) : (i(), h("a", {
1213
1213
  key: 1,
1214
1214
  onClick: (f) => s.handleLink(p)
1215
- }, I(p.meta.title), 9, pn))
1215
+ }, I(p.meta.title), 9, dn))
1216
1216
  ]),
1217
1217
  _: 2
1218
1218
  }, 1024))), 128))
@@ -1223,7 +1223,7 @@ function dn(e, t, l, n, o, s) {
1223
1223
  _: 1
1224
1224
  });
1225
1225
  }
1226
- const mn = /* @__PURE__ */ x(un, [["render", dn], ["__scopeId", "data-v-fa74804e"]]), fn = {
1226
+ const fn = /* @__PURE__ */ C(cn, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1227
1227
  name: "Hamburger",
1228
1228
  props: {
1229
1229
  isActive: {
@@ -1238,22 +1238,22 @@ const mn = /* @__PURE__ */ x(un, [["render", dn], ["__scopeId", "data-v-fa74804e
1238
1238
  }
1239
1239
  }
1240
1240
  };
1241
- function hn(e, t, l, n, o, s) {
1241
+ function bn(e, t, l, n, o, s) {
1242
1242
  const a = v("v-icon");
1243
1243
  return i(), h("div", {
1244
1244
  style: { padding: "0 15px" },
1245
1245
  onClick: t[0] || (t[0] = (...u) => s.toggleClick && s.toggleClick(...u))
1246
1246
  }, [
1247
1247
  c(a, {
1248
- class: G({ "is-active": l.isActive }),
1248
+ class: H({ "is-active": l.isActive }),
1249
1249
  name: "ra-leftalignment"
1250
1250
  }, null, 8, ["class"])
1251
1251
  ]);
1252
1252
  }
1253
- const bn = /* @__PURE__ */ x(fn, [["render", hn]]);
1254
- const _n = {};
1255
- function yn(e, t) {
1256
- const l = se, n = dl, o = ml, s = fl;
1253
+ const _n = /* @__PURE__ */ C(hn, [["render", bn]]);
1254
+ const yn = {};
1255
+ function vn(e, t) {
1256
+ const l = se, n = ml, o = fl, s = hl;
1257
1257
  return i(), m(s, { style: { width: "100%", height: "100%" } }, {
1258
1258
  default: r(() => [
1259
1259
  c(l, { class: "aside" }, {
@@ -1285,7 +1285,7 @@ function yn(e, t) {
1285
1285
  _: 3
1286
1286
  });
1287
1287
  }
1288
- const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b"]]), vn = {
1288
+ const dt = /* @__PURE__ */ C(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1289
1289
  type: "input",
1290
1290
  name: "\u6587\u672C\u6846",
1291
1291
  default: {
@@ -1353,7 +1353,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1353
1353
  }
1354
1354
  }
1355
1355
  ]
1356
- }, gn = {
1356
+ }, kn = {
1357
1357
  type: "number",
1358
1358
  name: "\u6570\u5B57",
1359
1359
  default: {
@@ -1395,7 +1395,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1395
1395
  }
1396
1396
  }
1397
1397
  ]
1398
- }, kn = {
1398
+ }, En = {
1399
1399
  type: "number-range",
1400
1400
  name: "\u6570\u5B57\u533A\u95F4",
1401
1401
  default: {
@@ -1436,7 +1436,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1436
1436
  }
1437
1437
  }
1438
1438
  ]
1439
- }, En = {
1439
+ }, wn = {
1440
1440
  type: "select",
1441
1441
  name: "\u4E0B\u62C9\u6846",
1442
1442
  default: {
@@ -1542,7 +1542,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1542
1542
  const t = y(e);
1543
1543
  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;
1544
1544
  }
1545
- }, wn = {
1545
+ }, Sn = {
1546
1546
  type: "radio",
1547
1547
  name: "\u5355\u9009\u6846",
1548
1548
  default: {
@@ -1588,7 +1588,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1588
1588
  label: "\u9ED8\u8BA4\u503C"
1589
1589
  }
1590
1590
  ]
1591
- }, Sn = {
1591
+ }, Cn = {
1592
1592
  type: "switch",
1593
1593
  name: "\u5F00\u5173",
1594
1594
  default: {
@@ -1644,7 +1644,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1644
1644
  }
1645
1645
  }
1646
1646
  ]
1647
- }, Cn = {
1647
+ }, xn = {
1648
1648
  type: "code",
1649
1649
  name: "Code",
1650
1650
  default: {
@@ -1664,7 +1664,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1664
1664
  label: "\u5B57\u6BB5key"
1665
1665
  }
1666
1666
  ]
1667
- }, xn = {
1667
+ }, Bn = {
1668
1668
  type: "json",
1669
1669
  name: "json",
1670
1670
  default: {
@@ -1684,7 +1684,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1684
1684
  label: "\u5B57\u6BB5key"
1685
1685
  }
1686
1686
  ]
1687
- }, Bn = {
1687
+ }, In = {
1688
1688
  type: "upload",
1689
1689
  name: "\u4E0A\u4F20",
1690
1690
  default: {
@@ -1704,7 +1704,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1704
1704
  label: "\u5B57\u6BB5key"
1705
1705
  }
1706
1706
  ]
1707
- }, In = {
1707
+ }, An = {
1708
1708
  type: "template",
1709
1709
  name: "\u81EA\u5B9A\u4E49\u7EC4\u4EF6",
1710
1710
  default: {
@@ -1724,7 +1724,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1724
1724
  label: "\u5B57\u6BB5key"
1725
1725
  }
1726
1726
  ]
1727
- }, An = {
1727
+ }, $n = {
1728
1728
  type: "icon-select",
1729
1729
  name: "\u56FE\u6807\u9009\u62E9\u5668",
1730
1730
  default: {
@@ -1744,7 +1744,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1744
1744
  label: "\u5B57\u6BB5key"
1745
1745
  }
1746
1746
  ]
1747
- }, $n = {
1747
+ }, Tn = {
1748
1748
  type: "sub-form",
1749
1749
  name: "\u5B50\u8868\u5355",
1750
1750
  default: {
@@ -1812,7 +1812,7 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1812
1812
  }
1813
1813
  }
1814
1814
  ]
1815
- }, Tn = {
1815
+ }, Fn = {
1816
1816
  type: "checkbox",
1817
1817
  name: "\u590D\u9009\u6846",
1818
1818
  default: {
@@ -1862,20 +1862,20 @@ const dt = /* @__PURE__ */ x(_n, [["render", yn], ["__scopeId", "data-v-7c3d697b
1862
1862
  function O(e) {
1863
1863
  mt[e.type] = e;
1864
1864
  }
1865
- O(vn);
1866
- O(En);
1867
1865
  O(gn);
1868
- O(kn);
1869
- O(Sn);
1870
- O($n);
1871
1866
  O(wn);
1872
- O(Tn);
1867
+ O(kn);
1868
+ O(En);
1873
1869
  O(Cn);
1870
+ O(Tn);
1871
+ O(Sn);
1872
+ O(Fn);
1874
1873
  O(xn);
1875
1874
  O(Bn);
1876
- O(An);
1877
1875
  O(In);
1878
- const we = mt, Fn = {
1876
+ O($n);
1877
+ O(An);
1878
+ const Ee = mt, On = {
1879
1879
  options: {
1880
1880
  labelPosition: "top",
1881
1881
  submitButton: !1,
@@ -1979,10 +1979,10 @@ const be = {
1979
1979
  submitButton: !1,
1980
1980
  cancelButton: !1
1981
1981
  }, Le = [];
1982
- Object.keys(we).forEach((e) => {
1983
- Le.push({ value: e, label: we[e].name });
1982
+ Object.keys(Ee).forEach((e) => {
1983
+ Le.push({ value: e, label: Ee[e].name });
1984
1984
  });
1985
- const On = {
1985
+ const Dn = {
1986
1986
  options: {
1987
1987
  submitButton: !1,
1988
1988
  cancelButton: !1
@@ -2014,8 +2014,8 @@ const On = {
2014
2014
  }
2015
2015
  }
2016
2016
  ]
2017
- }, Dn = {
2018
- components: { DevLayout: dt, VForm: J, VButton: Ae, JsonView: $e },
2017
+ }, Pn = {
2018
+ components: { DevLayout: dt, VForm: J, VButton: Ie, JsonView: Ae },
2019
2019
  props: {
2020
2020
  schema: {
2021
2021
  type: Object,
@@ -2026,8 +2026,8 @@ const On = {
2026
2026
  data() {
2027
2027
  return {
2028
2028
  sqlOptions: {},
2029
- sqlSchema: On,
2030
- baseSchema: Fn,
2029
+ sqlSchema: Dn,
2030
+ baseSchema: On,
2031
2031
  activeTab: "base",
2032
2032
  builderSchema: Object.assign(
2033
2033
  {},
@@ -2047,7 +2047,7 @@ const On = {
2047
2047
  ctrlSchema: {},
2048
2048
  ctrlName: "",
2049
2049
  activeIndex: void 0,
2050
- ctrlMap: we,
2050
+ ctrlMap: Ee,
2051
2051
  activeIndexReg: /(formItems)?\[(\d+)\]/,
2052
2052
  tableStruct: "",
2053
2053
  activeName: "1",
@@ -2149,15 +2149,15 @@ const On = {
2149
2149
  }
2150
2150
  }
2151
2151
  };
2152
- function Pn(e, t, l, n, o, s) {
2153
- const a = v("v-form"), u = nt, p = ue, d = v("JsonView"), f = v("VButton"), _ = Te, T = Fe, $ = ot, H = st, q = v("dev-layout");
2152
+ function Rn(e, t, l, n, o, s) {
2153
+ const a = v("v-form"), u = nt, p = ue, d = v("JsonView"), f = v("VButton"), _ = $e, T = Te, $ = ot, U = st, q = v("dev-layout");
2154
2154
  return i(), m(q, null, {
2155
2155
  main: r(() => [
2156
- o.builderSchema.formItems ? (i(), m(a, U({
2156
+ o.builderSchema.formItems ? (i(), m(a, G({
2157
2157
  ref: "form",
2158
2158
  key: o.key,
2159
2159
  dev: !0
2160
- }, o.builderSchema), null, 16)) : w("", !0),
2160
+ }, o.builderSchema), null, 16)) : E("", !0),
2161
2161
  c(u),
2162
2162
  c(p, {
2163
2163
  type: "primary",
@@ -2180,7 +2180,7 @@ function Pn(e, t, l, n, o, s) {
2180
2180
  })
2181
2181
  ]),
2182
2182
  "right-aside": r(() => [
2183
- o.activeIndex ? (i(), m(H, { key: 0 }, {
2183
+ o.activeIndex ? (i(), m(U, { key: 0 }, {
2184
2184
  default: r(() => [
2185
2185
  c($, { label: "\u63A7\u4EF6\u7C7B\u578B" }, {
2186
2186
  default: r(() => [
@@ -2202,8 +2202,8 @@ function Pn(e, t, l, n, o, s) {
2202
2202
  })
2203
2203
  ]),
2204
2204
  _: 1
2205
- })) : w("", !0),
2206
- (i(), m(a, U({
2205
+ })) : E("", !0),
2206
+ (i(), m(a, G({
2207
2207
  key: o.ctrlKey,
2208
2208
  modelValue: o.ctrlOptions,
2209
2209
  "onUpdate:modelValue": t[1] || (t[1] = (B) => o.ctrlOptions = B)
@@ -2212,7 +2212,7 @@ function Pn(e, t, l, n, o, s) {
2212
2212
  _: 1
2213
2213
  });
2214
2214
  }
2215
- const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171"]]), Ln = {
2215
+ const Ln = /* @__PURE__ */ C(Pn, [["render", Rn], ["__scopeId", "data-v-875f0171"]]), Mn = {
2216
2216
  type: "input",
2217
2217
  name: "\u6587\u672C\u6846",
2218
2218
  default: {
@@ -2260,7 +2260,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2260
2260
  }
2261
2261
  }
2262
2262
  ]
2263
- }, Mn = {
2263
+ }, jn = {
2264
2264
  type: "select",
2265
2265
  name: "\u4E0B\u62C9\u6846",
2266
2266
  default: {
@@ -2361,7 +2361,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2361
2361
  const t = y(e);
2362
2362
  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;
2363
2363
  }
2364
- }, jn = {
2364
+ }, Nn = {
2365
2365
  type: "date",
2366
2366
  name: "\u65E5\u671F",
2367
2367
  default: {
@@ -2410,7 +2410,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2410
2410
  labelPosition: "top",
2411
2411
  submitButton: !1,
2412
2412
  cancelButton: !1
2413
- }, Nn = {
2413
+ }, Vn = {
2414
2414
  type: "span",
2415
2415
  name: "\u6587\u672C",
2416
2416
  default: {
@@ -2440,7 +2440,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2440
2440
  label: "\u6392\u5E8F"
2441
2441
  }
2442
2442
  ]
2443
- }, Vn = {
2443
+ }, qn = {
2444
2444
  type: "enum",
2445
2445
  name: "\u6807\u7B7E",
2446
2446
  default: {
@@ -2491,7 +2491,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2491
2491
  trans(e) {
2492
2492
  return e.options = e.options || [], e.label || (e.label = "\u8868\u5934"), e;
2493
2493
  }
2494
- }, qn = {
2494
+ }, Un = {
2495
2495
  type: "html",
2496
2496
  name: "HTML",
2497
2497
  default: {
@@ -2516,7 +2516,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2516
2516
  label: "\u63D0\u793A"
2517
2517
  }
2518
2518
  ]
2519
- }, Un = {
2519
+ }, Hn = {
2520
2520
  type: "icon",
2521
2521
  name: "\u56FE\u6807",
2522
2522
  default: {
@@ -2541,7 +2541,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2541
2541
  label: "\u63D0\u793A"
2542
2542
  }
2543
2543
  ]
2544
- }, Hn = {
2544
+ }, Gn = {
2545
2545
  type: "image",
2546
2546
  name: "\u56FE\u7247",
2547
2547
  default: {
@@ -2566,7 +2566,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2566
2566
  label: "\u63D0\u793A"
2567
2567
  }
2568
2568
  ]
2569
- }, Gn = {
2569
+ }, Jn = {
2570
2570
  type: "json",
2571
2571
  name: "JSON",
2572
2572
  default: {
@@ -2591,7 +2591,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2591
2591
  label: "\u63D0\u793A"
2592
2592
  }
2593
2593
  ]
2594
- }, Jn = {
2594
+ }, zn = {
2595
2595
  type: "link",
2596
2596
  name: "\u94FE\u63A5",
2597
2597
  default: {
@@ -2616,7 +2616,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2616
2616
  label: "\u63D0\u793A"
2617
2617
  }
2618
2618
  ]
2619
- }, zn = {
2619
+ }, Kn = {
2620
2620
  type: "rich",
2621
2621
  name: "\u5BCC\u6587\u672C",
2622
2622
  default: {
@@ -2641,7 +2641,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2641
2641
  label: "\u63D0\u793A"
2642
2642
  }
2643
2643
  ]
2644
- }, Kn = {
2644
+ }, Wn = {
2645
2645
  type: "tpl",
2646
2646
  name: "\u6A21\u677F",
2647
2647
  default: {
@@ -2672,17 +2672,17 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2672
2672
  info: "\u4F8B\u5982 <code>\u59D3\u540D: {name} \u5E74\u9F84:{age}</code>"
2673
2673
  }
2674
2674
  ]
2675
- }, Wn = {
2676
- span: Nn,
2677
- enum: Vn,
2678
- html: qn,
2679
- icon: Un,
2680
- image: Hn,
2681
- json: Gn,
2682
- link: Jn,
2683
- rich: zn,
2684
- tpl: Kn
2685
2675
  }, Zn = {
2676
+ span: Vn,
2677
+ enum: qn,
2678
+ html: Un,
2679
+ icon: Hn,
2680
+ image: Gn,
2681
+ json: Jn,
2682
+ link: zn,
2683
+ rich: Kn,
2684
+ tpl: Wn
2685
+ }, Qn = {
2686
2686
  type: "jump",
2687
2687
  name: "\u8DF3\u8F6C",
2688
2688
  default: {
@@ -2729,7 +2729,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2729
2729
  }
2730
2730
  }
2731
2731
  ]
2732
- }, Qn = {
2732
+ }, Xn = {
2733
2733
  type: "api",
2734
2734
  name: "\u63A5\u53E3\u8BF7\u6C42",
2735
2735
  default: {
@@ -2798,7 +2798,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2798
2798
  }
2799
2799
  }
2800
2800
  ]
2801
- }, Xn = {
2801
+ }, Yn = {
2802
2802
  type: "form",
2803
2803
  name: "\u5F39\u6846\u8868\u5355",
2804
2804
  default: {
@@ -2852,7 +2852,7 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2852
2852
  label: "\u4FDD\u5B58\u63A5\u53E3"
2853
2853
  }
2854
2854
  ]
2855
- }, Yn = {
2855
+ }, eo = {
2856
2856
  type: "table",
2857
2857
  name: "\u5F39\u6846\u5217\u8868",
2858
2858
  default: {
@@ -2906,14 +2906,14 @@ const Rn = /* @__PURE__ */ x(Dn, [["render", Pn], ["__scopeId", "data-v-875f0171
2906
2906
  label: "\u4FDD\u5B58\u63A5\u53E3"
2907
2907
  }
2908
2908
  ]
2909
- }, eo = {
2910
- jump: Zn,
2911
- api: Qn,
2912
- form: Xn,
2913
- table: Yn
2909
+ }, to = {
2910
+ jump: Qn,
2911
+ api: Xn,
2912
+ form: Yn,
2913
+ table: eo
2914
2914
  };
2915
- const to = {
2916
- components: { JsonView: $e, DevLayout: dt, VTable: ne, VForm: J, VButton: Ae },
2915
+ const lo = {
2916
+ components: { JsonView: Ae, DevLayout: dt, VTable: ne, VForm: J, VButton: Ie },
2917
2917
  props: {
2918
2918
  schema: {
2919
2919
  type: Object,
@@ -2922,7 +2922,7 @@ const to = {
2922
2922
  }
2923
2923
  },
2924
2924
  data() {
2925
- const e = At(this.$props.schema);
2925
+ const e = $t(this.$props.schema);
2926
2926
  return delete e.listApi, e.list = [{}], {
2927
2927
  baseSchema: He,
2928
2928
  activeTab: "base",
@@ -2941,9 +2941,9 @@ const to = {
2941
2941
  ctrlName: "",
2942
2942
  activeIndex: void 0,
2943
2943
  ctrlMap: {
2944
- filter: { input: Ln, select: Mn, date: jn },
2945
- headers: Wn,
2946
- buttons: eo
2944
+ filter: { input: Mn, select: jn, date: Nn },
2945
+ headers: Zn,
2946
+ buttons: to
2947
2947
  },
2948
2948
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2949
2949
  currentCtrlType: "input"
@@ -3094,9 +3094,9 @@ const to = {
3094
3094
  }
3095
3095
  }
3096
3096
  };
3097
- function lo(e, t, l, n, o, s) {
3098
- const a = pe, u = ue, p = se, d = v("v-table"), f = nt, _ = ue, T = v("JsonView"), $ = v("VButton"), H = Te, q = Fe, B = ot, W = st, wt = v("v-form"), St = v("dev-layout");
3099
- return i(), m(St, null, {
3097
+ function no(e, t, l, n, o, s) {
3098
+ const a = pe, u = ue, p = se, d = v("v-table"), f = nt, _ = ue, T = v("JsonView"), $ = v("VButton"), U = $e, q = Te, B = ot, W = st, St = v("v-form"), Ct = v("dev-layout");
3099
+ return i(), m(Ct, null, {
3100
3100
  "left-aside": r(() => [
3101
3101
  c(p, { style: { width: "200px" } }, {
3102
3102
  default: r(() => [
@@ -3115,7 +3115,7 @@ function lo(e, t, l, n, o, s) {
3115
3115
  default: r(() => [
3116
3116
  c(u, {
3117
3117
  class: "ctrl-btn",
3118
- onClick: t[0] || (t[0] = (C) => s.pushFilter("input"))
3118
+ onClick: t[0] || (t[0] = (x) => s.pushFilter("input"))
3119
3119
  }, {
3120
3120
  default: r(() => [
3121
3121
  g("\u6587\u672C\u6846")
@@ -3129,7 +3129,7 @@ function lo(e, t, l, n, o, s) {
3129
3129
  default: r(() => [
3130
3130
  c(u, {
3131
3131
  class: "ctrl-btn",
3132
- onClick: t[1] || (t[1] = (C) => s.pushFilter("select"))
3132
+ onClick: t[1] || (t[1] = (x) => s.pushFilter("select"))
3133
3133
  }, {
3134
3134
  default: r(() => [
3135
3135
  g("\u4E0B\u62C9\u6846")
@@ -3143,7 +3143,7 @@ function lo(e, t, l, n, o, s) {
3143
3143
  default: r(() => [
3144
3144
  c(u, {
3145
3145
  class: "ctrl-btn",
3146
- onClick: t[2] || (t[2] = (C) => s.pushFilter("date"))
3146
+ onClick: t[2] || (t[2] = (x) => s.pushFilter("date"))
3147
3147
  }, {
3148
3148
  default: r(() => [
3149
3149
  g("\u65E5\u671F")
@@ -3164,17 +3164,17 @@ function lo(e, t, l, n, o, s) {
3164
3164
  ]),
3165
3165
  _: 1
3166
3166
  }),
3167
- (i(!0), h(k, null, A(Object.keys(o.ctrlMap.headers), (C, j) => (i(), m(a, {
3167
+ (i(!0), h(k, null, A(Object.keys(o.ctrlMap.headers), (x, j) => (i(), m(a, {
3168
3168
  key: `column-${j}`,
3169
3169
  class: "ctrl"
3170
3170
  }, {
3171
3171
  default: r(() => [
3172
3172
  c(u, {
3173
3173
  class: "ctrl-btn",
3174
- onClick: (me) => s.pushHeaders(o.ctrlMap.headers[C].type)
3174
+ onClick: (me) => s.pushHeaders(o.ctrlMap.headers[x].type)
3175
3175
  }, {
3176
3176
  default: r(() => [
3177
- g(I(o.ctrlMap.headers[C].name), 1)
3177
+ g(I(o.ctrlMap.headers[x].name), 1)
3178
3178
  ]),
3179
3179
  _: 2
3180
3180
  }, 1032, ["onClick"])
@@ -3192,17 +3192,17 @@ function lo(e, t, l, n, o, s) {
3192
3192
  ]),
3193
3193
  _: 1
3194
3194
  }),
3195
- (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
3195
+ (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
3196
3196
  key: `column-${j}`,
3197
3197
  class: "ctrl"
3198
3198
  }, {
3199
3199
  default: r(() => [
3200
3200
  c(u, {
3201
3201
  class: "ctrl-btn",
3202
- onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[C].type)
3202
+ onClick: (me) => s.pushRowButton(o.ctrlMap.buttons[x].type)
3203
3203
  }, {
3204
3204
  default: r(() => [
3205
- g(I(o.ctrlMap.buttons[C].name), 1)
3205
+ g(I(o.ctrlMap.buttons[x].name), 1)
3206
3206
  ]),
3207
3207
  _: 2
3208
3208
  }, 1032, ["onClick"])
@@ -3220,17 +3220,17 @@ function lo(e, t, l, n, o, s) {
3220
3220
  ]),
3221
3221
  _: 1
3222
3222
  }),
3223
- (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
3223
+ (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
3224
3224
  key: `column-${j}`,
3225
3225
  class: "ctrl"
3226
3226
  }, {
3227
3227
  default: r(() => [
3228
3228
  c(u, {
3229
3229
  class: "ctrl-btn",
3230
- onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[C].type)
3230
+ onClick: (me) => s.pushNormalButton(o.ctrlMap.buttons[x].type)
3231
3231
  }, {
3232
3232
  default: r(() => [
3233
- g(I(o.ctrlMap.buttons[C].name), 1)
3233
+ g(I(o.ctrlMap.buttons[x].name), 1)
3234
3234
  ]),
3235
3235
  _: 2
3236
3236
  }, 1032, ["onClick"])
@@ -3259,17 +3259,17 @@ function lo(e, t, l, n, o, s) {
3259
3259
  ]),
3260
3260
  _: 1
3261
3261
  }),
3262
- (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (C, j) => (i(), m(a, {
3262
+ (i(!0), h(k, null, A(Object.keys(o.ctrlMap.buttons), (x, j) => (i(), m(a, {
3263
3263
  key: `column-${j}`,
3264
3264
  class: "ctrl"
3265
3265
  }, {
3266
3266
  default: r(() => [
3267
3267
  c(u, {
3268
3268
  class: "ctrl-btn",
3269
- onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[C].type)
3269
+ onClick: (me) => s.pushBatchButton(o.ctrlMap.buttons[x].type)
3270
3270
  }, {
3271
3271
  default: r(() => [
3272
- g(I(o.ctrlMap.buttons[C].name), 1)
3272
+ g(I(o.ctrlMap.buttons[x].name), 1)
3273
3273
  ]),
3274
3274
  _: 2
3275
3275
  }, 1032, ["onClick"])
@@ -3295,7 +3295,7 @@ function lo(e, t, l, n, o, s) {
3295
3295
  })
3296
3296
  ]),
3297
3297
  main: r(() => [
3298
- (i(), m(d, U({
3298
+ (i(), m(d, G({
3299
3299
  ref: "table",
3300
3300
  key: o.key,
3301
3301
  dev: !0
@@ -3328,13 +3328,13 @@ function lo(e, t, l, n, o, s) {
3328
3328
  default: r(() => [
3329
3329
  c(q, {
3330
3330
  modelValue: o.currentCtrlType,
3331
- "onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
3331
+ "onUpdate:modelValue": t[3] || (t[3] = (x) => o.currentCtrlType = x)
3332
3332
  }, {
3333
3333
  default: r(() => [
3334
- (i(!0), h(k, null, A(s.types, (C, j) => (i(), m(H, {
3334
+ (i(!0), h(k, null, A(s.types, (x, j) => (i(), m(U, {
3335
3335
  key: j,
3336
- label: C.label,
3337
- value: C.value
3336
+ label: x.label,
3337
+ value: x.value
3338
3338
  }, null, 8, ["label", "value"]))), 128))
3339
3339
  ]),
3340
3340
  _: 1
@@ -3344,25 +3344,25 @@ function lo(e, t, l, n, o, s) {
3344
3344
  })
3345
3345
  ]),
3346
3346
  _: 1
3347
- })) : w("", !0),
3348
- (i(), m(wt, U({
3347
+ })) : E("", !0),
3348
+ (i(), m(St, G({
3349
3349
  key: o.ctrlKey,
3350
3350
  modelValue: o.ctrlOptions,
3351
- "onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
3351
+ "onUpdate:modelValue": t[4] || (t[4] = (x) => o.ctrlOptions = x)
3352
3352
  }, o.ctrlSchema), null, 16, ["modelValue"]))
3353
3353
  ]),
3354
3354
  _: 1
3355
3355
  });
3356
3356
  }
3357
- const no = /* @__PURE__ */ x(to, [["render", lo], ["__scopeId", "data-v-e5209cb7"]]), oo = {
3357
+ const oo = /* @__PURE__ */ C(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), so = {
3358
3358
  name: "PageEditor",
3359
- components: { FormBuilder: Rn, TableBuilder: no },
3359
+ components: { FormBuilder: Ln, TableBuilder: oo },
3360
3360
  setup() {
3361
3361
  const e = P(!1), t = P(1), l = "rtl", n = ce(), o = N(() => S.state.app.pages[n.path]);
3362
3362
  return { show: e, key: t, direction: l, pageSchema: o };
3363
3363
  }
3364
3364
  };
3365
- function so(e, t, l, n, o, s) {
3365
+ function ao(e, t, l, n, o, s) {
3366
3366
  const a = v("VIcon"), u = v("form-builder"), p = v("table-builder"), d = at;
3367
3367
  return i(), h(k, null, [
3368
3368
  c(a, {
@@ -3383,23 +3383,23 @@ function so(e, t, l, n, o, s) {
3383
3383
  n.pageSchema.formItems !== void 0 ? (i(), m(u, {
3384
3384
  key: 0,
3385
3385
  schema: n.pageSchema
3386
- }, null, 8, ["schema"])) : w("", !0),
3386
+ }, null, 8, ["schema"])) : E("", !0),
3387
3387
  n.pageSchema.headers !== void 0 ? (i(), m(p, {
3388
3388
  key: 1,
3389
3389
  schema: n.pageSchema
3390
- }, null, 8, ["schema"])) : w("", !0)
3390
+ }, null, 8, ["schema"])) : E("", !0)
3391
3391
  ]),
3392
3392
  _: 1
3393
3393
  }, 8, ["modelValue", "direction"])
3394
3394
  ], 64);
3395
3395
  }
3396
- const ao = /* @__PURE__ */ x(oo, [["render", so]]);
3397
- const io = {
3396
+ const io = /* @__PURE__ */ C(so, [["render", ao]]);
3397
+ const ro = {
3398
3398
  components: {
3399
- Breadcrumb: mn,
3400
- Hamburger: bn,
3401
- VButton: Ae,
3402
- PageEditor: ao
3399
+ Breadcrumb: fn,
3400
+ Hamburger: _n,
3401
+ VButton: Ie,
3402
+ PageEditor: io
3403
3403
  },
3404
3404
  data() {
3405
3405
  return {
@@ -3412,7 +3412,7 @@ const io = {
3412
3412
  };
3413
3413
  },
3414
3414
  computed: {
3415
- ...Ie(["sidebar", "avatar", "name", "nickname", "nav"]),
3415
+ ...Be(["sidebar", "avatar", "name", "nickname", "nav"]),
3416
3416
  hasNewMessage() {
3417
3417
  return this.$store.state.settings.hasNewMessage;
3418
3418
  },
@@ -3438,7 +3438,7 @@ const io = {
3438
3438
  dangerouslyUseHTMLString: !0,
3439
3439
  duration: 0,
3440
3440
  onClose: this.closeNavBarNotice
3441
- }), this.setting.envColor[this.user.env] && Ut({
3441
+ }), this.setting.envColor[this.user.env] && Ht({
3442
3442
  elRef: this.$refs.header.$el,
3443
3443
  waterMark: this.user.env,
3444
3444
  color: "skyblue",
@@ -3474,19 +3474,19 @@ const io = {
3474
3474
  (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));
3475
3475
  }
3476
3476
  }
3477
- }, ro = { class: "right-content" }, uo = { class: "right-item" }, co = {
3477
+ }, uo = { class: "right-content" }, co = { class: "right-item" }, po = {
3478
3478
  key: 0,
3479
3479
  class: "right-item"
3480
- }, po = {
3480
+ }, mo = {
3481
3481
  class: "right-item-button",
3482
3482
  style: { padding: "0" }
3483
- }, mo = { class: "user-info" }, fo = ["src"], ho = { class: "user-name" };
3484
- function bo(e, t, l, n, o, s) {
3485
- const a = v("hamburger"), u = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = hl, $ = bl, H = _l, q = at, B = se;
3483
+ }, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
3484
+ function _o(e, t, l, n, o, s) {
3485
+ const a = v("hamburger"), u = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = bl, $ = _l, U = yl, q = at, B = se;
3486
3486
  return i(), m(B, {
3487
3487
  ref: "header",
3488
3488
  class: "navbar",
3489
- style: $t({ background: s.setting.envColor[s.user.env] })
3489
+ style: Tt({ background: s.setting.envColor[s.user.env] })
3490
3490
  }, {
3491
3491
  default: r(() => [
3492
3492
  c(p, { span: 16 }, {
@@ -3502,20 +3502,20 @@ function bo(e, t, l, n, o, s) {
3502
3502
  }),
3503
3503
  c(p, { span: 8 }, {
3504
3504
  default: r(() => [
3505
- b("div", ro, [
3506
- b("div", uo, [
3505
+ b("div", uo, [
3506
+ b("div", co, [
3507
3507
  c(d, {
3508
3508
  name: "ra-code",
3509
3509
  onClick: s.gotoMenuEdit
3510
3510
  }, null, 8, ["onClick"])
3511
3511
  ]),
3512
- s.showPageJsonSchemaIcon ? (i(), h("div", co, [
3512
+ s.showPageJsonSchemaIcon ? (i(), h("div", po, [
3513
3513
  c(f)
3514
- ])) : w("", !0),
3515
- b("div", po, [
3514
+ ])) : E("", !0),
3515
+ b("div", mo, [
3516
3516
  c(_, { buttons: e.nav }, null, 8, ["buttons"])
3517
3517
  ]),
3518
- c(H, {
3518
+ c(U, {
3519
3519
  class: "right-item",
3520
3520
  trigger: "click"
3521
3521
  }, {
@@ -3546,14 +3546,14 @@ function bo(e, t, l, n, o, s) {
3546
3546
  })
3547
3547
  ]),
3548
3548
  default: r(() => [
3549
- b("div", mo, [
3549
+ b("div", fo, [
3550
3550
  b("img", {
3551
3551
  src: e.avatar ? e.avatar : o.defaultAvatar,
3552
3552
  class: "user-avatar",
3553
3553
  alt: "\u5934\u50CF"
3554
- }, null, 8, fo),
3554
+ }, null, 8, ho),
3555
3555
  g(),
3556
- b("span", ho, I(e.nickname || e.name), 1)
3556
+ b("span", bo, I(e.nickname || e.name), 1)
3557
3557
  ])
3558
3558
  ]),
3559
3559
  _: 1
@@ -3566,13 +3566,13 @@ function bo(e, t, l, n, o, s) {
3566
3566
  key: 0,
3567
3567
  "with-header": !1,
3568
3568
  size: "50%"
3569
- })) : w("", !0)
3569
+ })) : E("", !0)
3570
3570
  ]),
3571
3571
  _: 1
3572
3572
  }, 8, ["style"]);
3573
3573
  }
3574
- const _o = /* @__PURE__ */ x(io, [["render", bo], ["__scopeId", "data-v-9d0fb088"]]);
3575
- const yo = {
3574
+ const yo = /* @__PURE__ */ C(ro, [["render", _o], ["__scopeId", "data-v-9d0fb088"]]);
3575
+ const vo = {
3576
3576
  name: "SidebarLogo",
3577
3577
  props: {
3578
3578
  collapse: {
@@ -3588,16 +3588,16 @@ const yo = {
3588
3588
  return this.$store.state.settings.logo;
3589
3589
  }
3590
3590
  }
3591
- }, vo = (e) => (Ke("data-v-49084925"), e = e(), We(), e), go = ["src"], ko = {
3591
+ }, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], Eo = {
3592
3592
  key: 1,
3593
3593
  class: "sidebar-title"
3594
- }, Eo = /* @__PURE__ */ vo(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), wo = ["src"], So = { class: "sidebar-title" };
3595
- function Co(e, t, l, n, o, s) {
3594
+ }, wo = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "\u7CFB\u7EDF", -1)), So = ["src"], Co = { class: "sidebar-title" };
3595
+ function xo(e, t, l, n, o, s) {
3596
3596
  const a = v("router-link");
3597
3597
  return i(), h("div", {
3598
- class: G(["sidebar-logo-container", { collapse: l.collapse }])
3598
+ class: H(["sidebar-logo-container", { collapse: l.collapse }])
3599
3599
  }, [
3600
- c(Tt, { name: "sidebarLogoFade" }, {
3600
+ c(Ft, { name: "sidebarLogoFade" }, {
3601
3601
  default: r(() => [
3602
3602
  l.collapse ? (i(), m(a, {
3603
3603
  key: "collapse",
@@ -3609,8 +3609,8 @@ function Co(e, t, l, n, o, s) {
3609
3609
  key: 0,
3610
3610
  src: s.logo,
3611
3611
  class: "sidebar-logo"
3612
- }, null, 8, go)) : (i(), h("h1", ko, I(s.title), 1)),
3613
- Eo
3612
+ }, null, 8, ko)) : (i(), h("h1", Eo, I(s.title), 1)),
3613
+ wo
3614
3614
  ]),
3615
3615
  _: 1
3616
3616
  })) : (i(), m(a, {
@@ -3623,8 +3623,8 @@ function Co(e, t, l, n, o, s) {
3623
3623
  key: 0,
3624
3624
  src: s.logo,
3625
3625
  class: "sidebar-logo"
3626
- }, null, 8, wo)) : w("", !0),
3627
- b("h1", So, I(s.title), 1)
3626
+ }, null, 8, So)) : E("", !0),
3627
+ b("h1", Co, I(s.title), 1)
3628
3628
  ]),
3629
3629
  _: 1
3630
3630
  }))
@@ -3633,7 +3633,7 @@ function Co(e, t, l, n, o, s) {
3633
3633
  })
3634
3634
  ], 2);
3635
3635
  }
3636
- const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925"]]), Bo = {
3636
+ const Bo = /* @__PURE__ */ C(vo, [["render", xo], ["__scopeId", "data-v-49084925"]]), Io = {
3637
3637
  props: {
3638
3638
  to: {
3639
3639
  type: String,
@@ -3666,7 +3666,7 @@ const xo = /* @__PURE__ */ x(yo, [["render", Co], ["__scopeId", "data-v-49084925
3666
3666
  }
3667
3667
  }
3668
3668
  };
3669
- function Io(e, t, l, n, o, s) {
3669
+ function Ao(e, t, l, n, o, s) {
3670
3670
  return i(), m(Ze(s.compType(l.to)), K(X(s.linkProps(l.to))), {
3671
3671
  default: r(() => [
3672
3672
  te(e.$slots, "default")
@@ -3674,7 +3674,7 @@ function Io(e, t, l, n, o, s) {
3674
3674
  _: 3
3675
3675
  }, 16);
3676
3676
  }
3677
- const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
3677
+ const $o = /* @__PURE__ */ C(Io, [["render", Ao]]), To = {
3678
3678
  computed: {
3679
3679
  device() {
3680
3680
  return this.$store.state.app.device;
@@ -3694,7 +3694,7 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
3694
3694
  }
3695
3695
  }
3696
3696
  }
3697
- }, To = { class: "menu-content" }, Fo = /* @__PURE__ */ V({
3697
+ }, Fo = { class: "menu-content" }, Oo = /* @__PURE__ */ V({
3698
3698
  __name: "MenuContent",
3699
3699
  props: {
3700
3700
  meta: {
@@ -3712,17 +3712,17 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
3712
3712
  c(n, {
3713
3713
  name: e.meta.icon || "ra-all"
3714
3714
  }, null, 8, ["name"]),
3715
- b("span", To, I(e.meta.title), 1)
3715
+ b("span", Fo, I(e.meta.title), 1)
3716
3716
  ], 64);
3717
3717
  };
3718
3718
  }
3719
- }), Oo = {
3719
+ }), Do = {
3720
3720
  name: "SidebarItem",
3721
3721
  components: {
3722
- AppLink: Ao,
3723
- MenuContent: Fo
3722
+ AppLink: $o,
3723
+ MenuContent: Oo
3724
3724
  },
3725
- mixins: [$o],
3725
+ mixins: [To],
3726
3726
  props: {
3727
3727
  item: {
3728
3728
  type: Object,
@@ -3746,13 +3746,13 @@ const Ao = /* @__PURE__ */ x(Bo, [["render", Io]]), $o = {
3746
3746
  }
3747
3747
  }
3748
3748
  }
3749
- }, Do = {
3749
+ }, Po = {
3750
3750
  key: 0,
3751
3751
  class: "menu-wrapper"
3752
3752
  };
3753
- function Po(e, t, l, n, o, s) {
3754
- const a = v("menu-content"), u = yl, p = v("app-link"), d = v("sidebar-item", !0), f = vl;
3755
- return l.item.hidden !== !1 ? (i(), h("div", Do, [
3753
+ function Ro(e, t, l, n, o, s) {
3754
+ const a = v("menu-content"), u = vl, p = v("app-link"), d = v("sidebar-item", !0), f = gl;
3755
+ return l.item.hidden !== !1 ? (i(), h("div", Po, [
3756
3756
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(k, { key: 0 }, [
3757
3757
  l.item.meta ? (i(), m(p, {
3758
3758
  key: 0,
@@ -3762,7 +3762,7 @@ function Po(e, t, l, n, o, s) {
3762
3762
  default: r(() => [
3763
3763
  c(u, {
3764
3764
  index: l.to,
3765
- class: G({ "submenu-title-noDropdown": !l.isNest })
3765
+ class: H({ "submenu-title-noDropdown": !l.isNest })
3766
3766
  }, {
3767
3767
  default: r(() => [
3768
3768
  c(a, {
@@ -3773,12 +3773,12 @@ function Po(e, t, l, n, o, s) {
3773
3773
  }, 8, ["index", "class"])
3774
3774
  ]),
3775
3775
  _: 1
3776
- }, 8, ["to", "new-tab"])) : w("", !0)
3776
+ }, 8, ["to", "new-tab"])) : E("", !0)
3777
3777
  ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
3778
3778
  key: 1,
3779
3779
  ref: "subMenu",
3780
3780
  index: l.to,
3781
- class: G({ "submenu-title-noDropdown": !l.isNest }),
3781
+ class: H({ "submenu-title-noDropdown": !l.isNest }),
3782
3782
  "popper-append-to-body": ""
3783
3783
  }, {
3784
3784
  title: r(() => [
@@ -3807,24 +3807,24 @@ function Po(e, t, l, n, o, s) {
3807
3807
  }, null, 8, ["item", "to"]))), 128))
3808
3808
  ]),
3809
3809
  _: 1
3810
- }, 8, ["index", "class"])) : w("", !0)
3811
- ])) : w("", !0);
3810
+ }, 8, ["index", "class"])) : E("", !0)
3811
+ ])) : E("", !0);
3812
3812
  }
3813
- const Ro = /* @__PURE__ */ x(Oo, [["render", Po]]);
3813
+ const Lo = /* @__PURE__ */ C(Do, [["render", Ro]]);
3814
3814
  function ft(e) {
3815
3815
  return e.filter((t) => {
3816
3816
  var l;
3817
3817
  return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ft(t.children), t.children.length === 0 && delete t.children), !0);
3818
3818
  });
3819
3819
  }
3820
- const Lo = {
3820
+ const Mo = {
3821
3821
  data() {
3822
3822
  return {
3823
3823
  selected: ""
3824
3824
  };
3825
3825
  },
3826
3826
  computed: {
3827
- ...Ie(["remoteRouter"]),
3827
+ ...Be(["remoteRouter"]),
3828
3828
  filterRoutes() {
3829
3829
  let e = [];
3830
3830
  return this.remoteRouter.forEach((t) => {
@@ -3838,8 +3838,8 @@ const Lo = {
3838
3838
  }
3839
3839
  }
3840
3840
  };
3841
- function Mo(e, t, l, n, o, s) {
3842
- const a = Te, u = gl, p = Fe;
3841
+ function jo(e, t, l, n, o, s) {
3842
+ const a = $e, u = kl, p = Te;
3843
3843
  return i(), m(p, {
3844
3844
  modelValue: o.selected,
3845
3845
  "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
@@ -3865,11 +3865,11 @@ function Mo(e, t, l, n, o, s) {
3865
3865
  key: 0,
3866
3866
  label: (_ === d.children.length - 1 ? "\u2514\u2500" : "\u251C\u2500") + f.meta.title,
3867
3867
  value: f.path
3868
- }, null, 8, ["label", "value"])) : w("", !0)
3868
+ }, null, 8, ["label", "value"])) : E("", !0)
3869
3869
  ], 64))), 128))
3870
3870
  ]),
3871
3871
  _: 2
3872
- }, 1032, ["label"])) : w("", !0)
3872
+ }, 1032, ["label"])) : E("", !0)
3873
3873
  ], 64)) : (i(), m(a, {
3874
3874
  key: 1,
3875
3875
  label: "" + d.meta.title,
@@ -3880,12 +3880,12 @@ function Mo(e, t, l, n, o, s) {
3880
3880
  _: 1
3881
3881
  }, 8, ["modelValue", "onChange"]);
3882
3882
  }
3883
- const jo = /* @__PURE__ */ x(Lo, [["render", Mo], ["__scopeId", "data-v-811395be"]]);
3883
+ const No = /* @__PURE__ */ C(Mo, [["render", jo], ["__scopeId", "data-v-811395be"]]);
3884
3884
  var L = /* @__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))(L || {}), D = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(D || {});
3885
- const No = V({
3886
- components: { SidebarItem: Ro, Logo: xo, SearchMenu: jo },
3885
+ const Vo = V({
3886
+ components: { SidebarItem: Lo, Logo: Bo, SearchMenu: No },
3887
3887
  computed: {
3888
- ...Ie(["sidebar", "remoteRouter", "customRouter"]),
3888
+ ...Be(["sidebar", "remoteRouter", "customRouter"]),
3889
3889
  routes() {
3890
3890
  let e = [];
3891
3891
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
@@ -3930,18 +3930,18 @@ const No = V({
3930
3930
  }
3931
3931
  }
3932
3932
  });
3933
- function Vo(e, t, l, n, o, s) {
3934
- const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = kl, f = El;
3933
+ function qo(e, t, l, n, o, s) {
3934
+ const a = v("logo"), u = v("search-menu"), p = v("sidebar-item"), d = El, f = wl;
3935
3935
  return i(), h("div", {
3936
- class: G({ "has-logo": e.showLogo })
3936
+ class: H({ "has-logo": e.showLogo })
3937
3937
  }, [
3938
3938
  e.showLogo ? (i(), m(a, {
3939
3939
  key: 0,
3940
3940
  collapse: e.isCollapse
3941
- }, null, 8, ["collapse"])) : w("", !0),
3941
+ }, null, 8, ["collapse"])) : E("", !0),
3942
3942
  c(f, { "wrap-class": "scrollbar-wrapper" }, {
3943
3943
  default: r(() => [
3944
- e.isCollapse ? w("", !0) : (i(), m(u, { key: 0 })),
3944
+ e.isCollapse ? E("", !0) : (i(), m(u, { key: 0 })),
3945
3945
  c(d, {
3946
3946
  "default-active": e.activeMenu,
3947
3947
  collapse: e.isCollapse,
@@ -3970,26 +3970,26 @@ function Vo(e, t, l, n, o, s) {
3970
3970
  })
3971
3971
  ], 2);
3972
3972
  }
3973
- const qo = /* @__PURE__ */ x(No, [["render", Vo], ["__scopeId", "data-v-800716bb"]]);
3974
- const Uo = { class: "app-main" }, Ho = {
3973
+ const Uo = /* @__PURE__ */ C(Vo, [["render", qo], ["__scopeId", "data-v-800716bb"]]);
3974
+ const Ho = { class: "app-main" }, Go = {
3975
3975
  __name: "AppMain",
3976
3976
  setup(e) {
3977
3977
  const t = ce(), l = [], n = P(0);
3978
- return sl(() => {
3978
+ return al(() => {
3979
3979
  var o;
3980
3980
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3981
3981
  }), (o, s) => {
3982
- const a = v("router-view"), u = wl;
3983
- return i(), h("section", Uo, [
3982
+ const a = v("router-view"), u = Sl;
3983
+ return i(), h("section", Ho, [
3984
3984
  (i(), m(a, {
3985
- key: o.$route.fullPath + E(n)
3985
+ key: o.$route.fullPath + w(n)
3986
3986
  })),
3987
3987
  c(u, { bottom: 50 })
3988
3988
  ]);
3989
3989
  };
3990
3990
  }
3991
- }, Go = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-ca0f0d98"]]);
3992
- const Jo = { class: "main-container" }, zo = {
3991
+ }, Jo = /* @__PURE__ */ C(Go, [["__scopeId", "data-v-ca0f0d98"]]);
3992
+ const zo = { class: "main-container" }, Ko = {
3993
3993
  __name: "index",
3994
3994
  setup(e) {
3995
3995
  const t = lt(), { body: l } = document, n = 992, o = N(() => t.state.app.sidebar), s = N(() => t.state.app.device), a = N(() => t.state.settings.fixedHeader), u = N(() => ({
@@ -3998,7 +3998,7 @@ const Jo = { class: "main-container" }, zo = {
3998
3998
  withoutAnimation: o.value.withoutAnimation,
3999
3999
  mobile: s.value === "mobile"
4000
4000
  })), p = () => l.getBoundingClientRect().width - 1 < n;
4001
- Il(window, "resize", () => f());
4001
+ Al(window, "resize", () => f());
4002
4002
  const d = () => {
4003
4003
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
4004
4004
  }, f = () => {
@@ -4008,26 +4008,26 @@ const Jo = { class: "main-container" }, zo = {
4008
4008
  }
4009
4009
  };
4010
4010
  return (_, T) => (i(), h("div", {
4011
- class: G([E(u), "app-wrapper"])
4011
+ class: H([w(u), "app-wrapper"])
4012
4012
  }, [
4013
- E(s) === "mobile" && E(o).opened ? (i(), h("div", {
4013
+ w(s) === "mobile" && w(o).opened ? (i(), h("div", {
4014
4014
  key: 0,
4015
4015
  class: "drawer-bg",
4016
4016
  onClick: d
4017
- })) : w("", !0),
4018
- c(E(qo), { class: "sidebar-container" }),
4019
- b("div", Jo, [
4017
+ })) : E("", !0),
4018
+ c(w(Uo), { class: "sidebar-container" }),
4019
+ b("div", zo, [
4020
4020
  b("div", {
4021
- class: G({ "fixed-header": E(a) })
4021
+ class: H({ "fixed-header": w(a) })
4022
4022
  }, [
4023
- c(E(_o))
4023
+ c(w(yo))
4024
4024
  ], 2),
4025
- c(E(Go))
4025
+ c(w(Jo))
4026
4026
  ])
4027
4027
  ], 2));
4028
4028
  }
4029
- }, ht = /* @__PURE__ */ x(zo, [["__scopeId", "data-v-957442cd"]]);
4030
- class Ko {
4029
+ }, ht = /* @__PURE__ */ C(Ko, [["__scopeId", "data-v-957442cd"]]);
4030
+ class Wo {
4031
4031
  constructor() {
4032
4032
  R(this, "type", "qrcode");
4033
4033
  }
@@ -4039,7 +4039,7 @@ class Ko {
4039
4039
  showQrCode() {
4040
4040
  }
4041
4041
  }
4042
- class Wo extends Ko {
4042
+ class Zo extends Wo {
4043
4043
  constructor(l) {
4044
4044
  super();
4045
4045
  R(this, "type", "qrcode");
@@ -4052,7 +4052,7 @@ class Wo extends Ko {
4052
4052
  R(this, "style", "");
4053
4053
  }
4054
4054
  flag() {
4055
- const l = Ht("code");
4055
+ const l = Gt("code");
4056
4056
  if (l)
4057
4057
  return l;
4058
4058
  }
@@ -4062,7 +4062,7 @@ class Wo extends Ko {
4062
4062
  appid: this.appid,
4063
4063
  redirect_uri: encodeURIComponent(this.redirectUri)
4064
4064
  };
4065
- return Z(this.reloadUrl, a) + "&" + Jt(s || {});
4065
+ return Z(this.reloadUrl, a) + "&" + zt(s || {});
4066
4066
  }, n = () => {
4067
4067
  const s = {
4068
4068
  goto: encodeURIComponent(l()),
@@ -4073,33 +4073,33 @@ class Wo extends Ko {
4073
4073
  const { origin: a, data: u } = s;
4074
4074
  a === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
4075
4075
  };
4076
- this.iframe.src = n(), Gt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4076
+ this.iframe.src = n(), Jt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4077
4077
  "message",
4078
4078
  (s) => o(s),
4079
4079
  !1
4080
4080
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
4081
4081
  }
4082
4082
  }
4083
- const Zo = {
4084
- dingtalk: (e) => new Wo(e)
4083
+ const Qo = {
4084
+ dingtalk: (e) => new Zo(e)
4085
4085
  };
4086
- function Qo() {
4087
- return F(S.state.settings.sso || {}, Zo);
4086
+ function Xo() {
4087
+ return F(S.state.settings.sso || {}, Qo);
4088
4088
  }
4089
- function Xo(e) {
4090
- const t = Qo(), l = S.state.settings.activeSsoKey || "", n = t[l];
4089
+ function Yo(e) {
4090
+ const t = Xo(), l = S.state.settings.activeSsoKey || "", n = t[l];
4091
4091
  if (n !== void 0)
4092
4092
  return n(e);
4093
4093
  }
4094
- const Yo = { id: "login" }, es = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ts = { id: "form" }, ls = { class: "tips" }, ns = { class: "sso" }, os = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), ss = /* @__PURE__ */ V({
4094
+ const es = { id: "login" }, ts = /* @__PURE__ */ b("h1", { id: "title" }, "\u767B\u5F55", -1), ls = { id: "form" }, ns = { class: "tips" }, os = { class: "sso" }, ss = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), as = /* @__PURE__ */ V({
4095
4095
  __name: "login",
4096
4096
  setup(e) {
4097
- const t = al(), l = ce(), n = N(() => S.state.settings.loginTips), o = P({
4097
+ const t = il(), l = ce(), n = N(() => S.state.settings.loginTips), o = P({
4098
4098
  username: "",
4099
4099
  password: ""
4100
4100
  }), s = () => {
4101
4101
  if (o.value.username === "" || o.value.password === "") {
4102
- Sl.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4102
+ Cl.error("\u8BF7\u586B\u5199\u7528\u6237\u540D\u548C\u5BC6\u7801");
4103
4103
  return;
4104
4104
  }
4105
4105
  S.dispatch("user/login", o.value).then((a) => {
@@ -4107,43 +4107,43 @@ const Yo = { id: "login" }, es = /* @__PURE__ */ b("h1", { id: "title" }, "\u767
4107
4107
  t.push({ path: ((u = l.query) == null ? void 0 : u.redirect) || "/" });
4108
4108
  });
4109
4109
  };
4110
- return P(), (a, u) => (i(), h("div", Yo, [
4111
- es,
4112
- b("form", ts, [
4110
+ return P(), (a, u) => (i(), h("div", es, [
4111
+ ts,
4112
+ b("form", ls, [
4113
4113
  ve(b("input", {
4114
- "onUpdate:modelValue": u[0] || (u[0] = (p) => E(o).username = p),
4114
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => w(o).username = p),
4115
4115
  type: "text",
4116
4116
  placeholder: "\u7528\u6237\u540D",
4117
4117
  class: "input"
4118
4118
  }, null, 512), [
4119
- [je, E(o).username]
4119
+ [je, w(o).username]
4120
4120
  ]),
4121
4121
  ve(b("input", {
4122
- "onUpdate:modelValue": u[1] || (u[1] = (p) => E(o).password = p),
4122
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => w(o).password = p),
4123
4123
  type: "password",
4124
4124
  placeholder: "\u5BC6\u7801",
4125
4125
  class: "input"
4126
4126
  }, null, 512), [
4127
- [je, E(o).password]
4127
+ [je, w(o).password]
4128
4128
  ]),
4129
4129
  b("div", {
4130
4130
  class: "input button",
4131
4131
  onClick: s
4132
4132
  }, "\u767B\u5F55"),
4133
- b("div", ls, [
4134
- b("div", null, I(E(n)), 1)
4135
- ]),
4136
4133
  b("div", ns, [
4137
- os,
4134
+ b("div", null, I(w(n)), 1)
4135
+ ]),
4136
+ b("div", os, [
4137
+ ss,
4138
4138
  (i(!0), h(k, null, A(Object.keys([]), (p) => (i(), h("div", { key: p }, I(p), 1))), 128))
4139
4139
  ])
4140
4140
  ])
4141
4141
  ]));
4142
4142
  }
4143
4143
  });
4144
- const as = {
4144
+ const is = {
4145
4145
  name: "NotFoundPage"
4146
- }, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), is = { class: "not-found" }, rs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
4146
+ }, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), rs = { class: "not-found" }, us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
4147
4147
  width: "380px",
4148
4148
  height: "500px",
4149
4149
  viewBox: "0 0 837 1045",
@@ -4196,7 +4196,7 @@ const as = {
4196
4196
  "sketch:type": "MSShapeGroup"
4197
4197
  })
4198
4198
  ])
4199
- ], -1)), us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4199
+ ], -1)), cs = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4200
4200
  /* @__PURE__ */ b("h1", null, "404"),
4201
4201
  /* @__PURE__ */ b("p", null, "Page not found"),
4202
4202
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4207,14 +4207,14 @@ const as = {
4207
4207
  }, "Go to Home Page")
4208
4208
  ])
4209
4209
  ])
4210
- ], -1)), cs = [
4211
- rs,
4212
- us
4210
+ ], -1)), ps = [
4211
+ us,
4212
+ cs
4213
4213
  ];
4214
- function ps(e, t, l, n, o, s) {
4215
- return i(), h("div", is, cs);
4214
+ function ds(e, t, l, n, o, s) {
4215
+ return i(), h("div", rs, ps);
4216
4216
  }
4217
- const ds = /* @__PURE__ */ x(as, [["render", ps], ["__scopeId", "data-v-26068803"]]), ms = [
4217
+ const ms = /* @__PURE__ */ C(is, [["render", ds], ["__scopeId", "data-v-26068803"]]), fs = [
4218
4218
  {
4219
4219
  path: "/",
4220
4220
  component: ht,
@@ -4227,59 +4227,59 @@ const ds = /* @__PURE__ */ x(as, [["render", ps], ["__scopeId", "data-v-26068803
4227
4227
  {
4228
4228
  path: "dashboard",
4229
4229
  name: "Dashboard",
4230
- component: rn,
4230
+ component: un,
4231
4231
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4232
4232
  }
4233
4233
  ]
4234
4234
  },
4235
4235
  {
4236
4236
  path: "/login",
4237
- component: ss,
4237
+ component: as,
4238
4238
  meta: { title: "\u7528\u6237\u767B\u5F55", menuType: 0 },
4239
4239
  hidden: !0
4240
4240
  },
4241
4241
  {
4242
4242
  path: "/404",
4243
- component: ds,
4243
+ component: ms,
4244
4244
  meta: { menuType: 0 },
4245
4245
  hidden: !0
4246
4246
  }
4247
- ], oe = il({
4248
- history: rl(),
4249
- routes: ms
4247
+ ], oe = rl({
4248
+ history: ul(),
4249
+ routes: fs
4250
4250
  });
4251
- ke.configure({ showSpinner: !1 });
4252
- function fs(e) {
4251
+ ge.configure({ showSpinner: !1 });
4252
+ function hs(e) {
4253
4253
  e.beforeEach((t, l, n) => {
4254
- ke.start(), t.preHash = location.hash.replace("#", ""), n();
4254
+ ge.start(), t.preHash = location.hash.replace("#", ""), n();
4255
4255
  }), e.afterEach((t) => {
4256
4256
  t.matched.length > 0 && S.commit("user/updateState", {
4257
4257
  key: "path",
4258
4258
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4259
- }), ke.done();
4259
+ }), ge.done();
4260
4260
  });
4261
4261
  }
4262
- function hs() {
4262
+ function bs() {
4263
4263
  return S.state.user.isLodeRemoteRoutes;
4264
4264
  }
4265
4265
  function _t() {
4266
4266
  return S.state.settings.whiteRoutes || [];
4267
4267
  }
4268
- function bs() {
4268
+ function _s() {
4269
4269
  return S.state.user.token;
4270
4270
  }
4271
- function _s(e) {
4271
+ function ys(e) {
4272
4272
  e.beforeEach(async (t, l, n) => {
4273
4273
  var p, d;
4274
4274
  if (_t().indexOf(t.path) !== -1) {
4275
4275
  n();
4276
4276
  return;
4277
4277
  }
4278
- if (bs()) {
4278
+ if (_s()) {
4279
4279
  (p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4280
4280
  return;
4281
4281
  }
4282
- const s = t.query.redirect || t.path, a = Xo({});
4282
+ const s = t.query.redirect || t.path, a = Yo({});
4283
4283
  if (!a) {
4284
4284
  n(`/login?redirect=${s}`);
4285
4285
  return;
@@ -4292,14 +4292,51 @@ function _s(e) {
4292
4292
  a.jumpToLoginPage(n, `/login?redirect=${s}`);
4293
4293
  });
4294
4294
  }
4295
- const ys = {}, vs = { class: "loading preloader" }, gs = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ks = [
4296
- gs
4295
+ const vs = {}, gs = { class: "loading preloader" }, ks = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Es = [
4296
+ ks
4297
4297
  ];
4298
- function Es(e, t) {
4299
- return i(), h("div", vs, ks);
4298
+ function ws(e, t) {
4299
+ return i(), h("div", gs, Es);
4300
4300
  }
4301
- const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
4302
- components: { VLoading: yt },
4301
+ const yt = /* @__PURE__ */ C(vs, [["render", ws]]), Ss = {
4302
+ name: "VNotice",
4303
+ props: {
4304
+ dataApi: {
4305
+ type: String,
4306
+ default: ""
4307
+ },
4308
+ notice: {
4309
+ type: String,
4310
+ default: ""
4311
+ }
4312
+ },
4313
+ data() {
4314
+ return {
4315
+ title: "",
4316
+ hasNotice: !1
4317
+ };
4318
+ },
4319
+ beforeCreate() {
4320
+ if (this.$props.dataApi) {
4321
+ this.$http.get(this.$props.dataApi).then(({ data: e }) => {
4322
+ this.title = e.title, this.hasNotice = !!e.title;
4323
+ });
4324
+ return;
4325
+ } else
4326
+ this.title = this.notice.title;
4327
+ }
4328
+ };
4329
+ function Cs(e, t, l, n, o, s) {
4330
+ const a = Fe;
4331
+ return i(), h("div", null, [
4332
+ o.hasNotice ? (i(), m(a, {
4333
+ key: 0,
4334
+ title: o.title
4335
+ }, null, 8, ["title"])) : E("", !0)
4336
+ ]);
4337
+ }
4338
+ const vt = /* @__PURE__ */ C(Ss, [["render", Cs]]), xs = V({
4339
+ components: { VLoading: yt, VNotice: vt },
4303
4340
  props: {
4304
4341
  schemaHandler: {
4305
4342
  type: Function,
@@ -4317,6 +4354,7 @@ const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
4317
4354
  loading: !0,
4318
4355
  haveNotice: !1,
4319
4356
  notice: {},
4357
+ noticeApi: "",
4320
4358
  schema: {},
4321
4359
  owners: [],
4322
4360
  serviceOffLine: !1
@@ -4333,15 +4371,15 @@ const yt = /* @__PURE__ */ x(ys, [["render", Es]]), ws = V({
4333
4371
  beforeCreate() {
4334
4372
  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 };
4335
4373
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4336
- this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, xe(o.notice) ? this.notice = {
4374
+ this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ce(o.notice) ? this.notice = {
4337
4375
  title: o.notice
4338
- } : Q(o.notice) && (this.notice = o.notice), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4376
+ } : Q(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4339
4377
  });
4340
4378
  }
4341
4379
  });
4342
- const Ss = ["innerHTML"];
4343
- function Cs(e, t, l, n, o, s) {
4344
- const a = ge, u = ge, p = yt;
4380
+ const Bs = ["innerHTML"];
4381
+ function Is(e, t, l, n, o, s) {
4382
+ const a = Fe, u = vt, p = yt;
4345
4383
  return i(), h(k, null, [
4346
4384
  e.owners.length > 0 ? (i(), m(a, {
4347
4385
  key: 0,
@@ -4349,18 +4387,23 @@ function Cs(e, t, l, n, o, s) {
4349
4387
  type: "info",
4350
4388
  style: { margin: "0 0 20px 0" },
4351
4389
  closable: !1
4352
- }, null, 8, ["title"])) : w("", !0),
4390
+ }, null, 8, ["title"])) : E("", !0),
4353
4391
  e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
4354
4392
  key: 1,
4355
4393
  class: "offline-notice",
4356
4394
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4357
- }, null, 8, Ss)) : (i(), h(k, { key: 2 }, [
4358
- e.haveNotice ? (i(), m(u, U({ key: 0 }, e.notice, { style: { margin: "0 0 20px 0" } }), null, 16)) : w("", !0),
4359
- e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(U({ key: 2 }, e.schema)), void 0, !0)
4395
+ }, null, 8, Bs)) : (i(), h(k, { key: 2 }, [
4396
+ e.haveNotice ? (i(), m(u, {
4397
+ key: 0,
4398
+ notice: e.notice,
4399
+ style: { margin: "0 0 20px 0" },
4400
+ "data-api": e.noticeApi
4401
+ }, null, 8, ["notice", "data-api"])) : E("", !0),
4402
+ e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(G({ key: 2 }, e.schema)), void 0, !0)
4360
4403
  ], 64))
4361
4404
  ], 64);
4362
4405
  }
4363
- const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f"]]), vt = {
4406
+ const ae = /* @__PURE__ */ C(xs, [["render", Is], ["__scopeId", "data-v-015774e8"]]), gt = {
4364
4407
  __name: "table",
4365
4408
  setup(e) {
4366
4409
  const t = (l, n) => {
@@ -4378,12 +4421,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
4378
4421
  };
4379
4422
  return (l, n) => (i(), m(ae, { "schema-handler": t }, {
4380
4423
  default: r((o) => [
4381
- c(E(ne), K(X(o)), null, 16)
4424
+ c(w(ne), K(X(o)), null, 16)
4382
4425
  ]),
4383
4426
  _: 1
4384
4427
  }));
4385
4428
  }
4386
- }, Se = {
4429
+ }, we = {
4387
4430
  __name: "form",
4388
4431
  setup(e) {
4389
4432
  const t = ce(), l = (n, o) => {
@@ -4403,12 +4446,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
4403
4446
  };
4404
4447
  return (n, o) => (i(), m(ae, { "schema-handler": l }, {
4405
4448
  default: r((s) => [
4406
- c(E(J), K(X(s)), null, 16)
4449
+ c(w(J), K(X(s)), null, 16)
4407
4450
  ]),
4408
4451
  _: 1
4409
4452
  }));
4410
4453
  }
4411
- }, xs = V({
4454
+ }, As = V({
4412
4455
  name: "VTree",
4413
4456
  components: {
4414
4457
  VForm: J
@@ -4507,7 +4550,7 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
4507
4550
  append(e, t) {
4508
4551
  var n, o, s;
4509
4552
  this.type = 1;
4510
- 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) };
4553
+ const l = { pid: e.id, [(o = (n = this.$props.props) == null ? void 0 : n.levelKey) != null ? o : "level"]: t.level + 1, ...Kt((s = this.$props.props) == null ? void 0 : s.effectData, e) };
4511
4554
  console.log(111, l), e.children || (e.children = []), this.formData = l, this.formkey++, e.children.push(l), this.treeData = [...this.treeData];
4512
4555
  },
4513
4556
  canAppend(e, t) {
@@ -4550,12 +4593,12 @@ const ae = /* @__PURE__ */ x(ws, [["render", Cs], ["__scopeId", "data-v-14e96c9f
4550
4593
  }
4551
4594
  }
4552
4595
  });
4553
- const Bs = { class: "card-header" }, Is = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), As = { class: "tree-action" }, $s = { key: 0 }, Ts = {
4596
+ const $s = { class: "card-header" }, Ts = /* @__PURE__ */ b("span", null, "\u5217\u8868", -1), Fs = { class: "tree-action" }, Os = { key: 0 }, Ds = {
4554
4597
  key: 1,
4555
4598
  style: { color: "#E6A23C" }
4556
- }, Fs = { class: "card-header" };
4557
- function Os(e, t) {
4558
- const l = ue, n = Cl, o = Oe, s = pe, a = v("v-form"), u = se;
4599
+ }, Ps = { class: "card-header" };
4600
+ function Rs(e, t) {
4601
+ const l = ue, n = xl, o = Oe, s = pe, a = v("v-form"), u = se;
4559
4602
  return i(), m(u, {
4560
4603
  class: "tree-box",
4561
4604
  gutter: 20
@@ -4568,8 +4611,8 @@ function Os(e, t) {
4568
4611
  default: r(() => [
4569
4612
  c(o, { shadow: "never" }, {
4570
4613
  header: r(() => [
4571
- b("div", Bs, [
4572
- Is,
4614
+ b("div", $s, [
4615
+ Ts,
4573
4616
  c(l, {
4574
4617
  type: "text",
4575
4618
  onClick: t[0] || (t[0] = () => e.appendNew())
@@ -4582,7 +4625,7 @@ function Os(e, t) {
4582
4625
  ])
4583
4626
  ]),
4584
4627
  default: r(() => [
4585
- (e.treeData || []).length > 0 ? (i(), m(n, U({
4628
+ (e.treeData || []).length > 0 ? (i(), m(n, G({
4586
4629
  key: 0,
4587
4630
  style: { height: "100vh" },
4588
4631
  data: e.treeData,
@@ -4594,8 +4637,8 @@ function Os(e, t) {
4594
4637
  onNodeDragEnd: e.handleDragEnd
4595
4638
  }), {
4596
4639
  default: r(({ node: p, data: d }) => [
4597
- b("span", As, [
4598
- d[e.localTreeProps.props.label] ? (i(), h("span", $s, I(d[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ts, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4640
+ b("span", Fs, [
4641
+ d[e.localTreeProps.props.label] ? (i(), h("span", Os, I(d[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ds, "\u8BF7\u5728\u53F3\u4FA7\u8868\u5355\u4E2D\u4FEE\u6539 --> ")),
4599
4642
  b("span", null, [
4600
4643
  d[e.localTreeProps.props.label] ? (i(), m(l, {
4601
4644
  key: 0,
@@ -4607,7 +4650,7 @@ function Os(e, t) {
4607
4650
  g("\u7F16\u8F91")
4608
4651
  ]),
4609
4652
  _: 2
4610
- }, 1032, ["onClick"])) : w("", !0),
4653
+ }, 1032, ["onClick"])) : E("", !0),
4611
4654
  e.canAppend(d, p) ? (i(), m(l, {
4612
4655
  key: 1,
4613
4656
  class: "button",
@@ -4618,7 +4661,7 @@ function Os(e, t) {
4618
4661
  g("\u6DFB\u52A0")
4619
4662
  ]),
4620
4663
  _: 2
4621
- }, 1032, ["onClick"])) : w("", !0),
4664
+ }, 1032, ["onClick"])) : E("", !0),
4622
4665
  d.children === void 0 || d.children.length === 0 ? (i(), m(l, {
4623
4666
  key: 2,
4624
4667
  class: "button",
@@ -4629,12 +4672,12 @@ function Os(e, t) {
4629
4672
  g("\u5220\u9664")
4630
4673
  ]),
4631
4674
  _: 2
4632
- }, 1032, ["onClick"])) : w("", !0)
4675
+ }, 1032, ["onClick"])) : E("", !0)
4633
4676
  ])
4634
4677
  ])
4635
4678
  ]),
4636
4679
  _: 1
4637
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : w("", !0)
4680
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
4638
4681
  ]),
4639
4682
  _: 1
4640
4683
  })
@@ -4651,19 +4694,19 @@ function Os(e, t) {
4651
4694
  shadow: "never"
4652
4695
  }, {
4653
4696
  header: r(() => [
4654
- b("div", Fs, [
4697
+ b("div", Ps, [
4655
4698
  b("span", null, I(e.formType), 1)
4656
4699
  ])
4657
4700
  ]),
4658
4701
  default: r(() => [
4659
- (i(), m(a, U({
4702
+ (i(), m(a, G({
4660
4703
  key: e.formkey,
4661
4704
  modelValue: e.formData,
4662
4705
  "onUpdate:modelValue": t[1] || (t[1] = (p) => e.formData = p)
4663
4706
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4664
4707
  ]),
4665
4708
  _: 1
4666
- })) : w("", !0)
4709
+ })) : E("", !0)
4667
4710
  ]),
4668
4711
  _: 1
4669
4712
  })
@@ -4671,7 +4714,7 @@ function Os(e, t) {
4671
4714
  _: 1
4672
4715
  });
4673
4716
  }
4674
- const Ge = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
4717
+ const Ge = /* @__PURE__ */ C(As, [["render", Rs]]), Ls = {
4675
4718
  __name: "tree",
4676
4719
  setup(e) {
4677
4720
  const t = (l, n) => {
@@ -4691,14 +4734,14 @@ const Ge = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
4691
4734
  __name: "container",
4692
4735
  setup(e) {
4693
4736
  const t = P(0);
4694
- return ul(() => {
4737
+ return cl(() => {
4695
4738
  t.value++;
4696
4739
  }), (l, n) => {
4697
4740
  const o = v("router-view");
4698
4741
  return i(), m(o);
4699
4742
  };
4700
4743
  }
4701
- }, Ps = {
4744
+ }, Ms = {
4702
4745
  title: {
4703
4746
  text: ""
4704
4747
  },
@@ -4727,11 +4770,11 @@ const Ge = /* @__PURE__ */ x(xs, [["render", Os]]), Ds = {
4727
4770
  },
4728
4771
  series: []
4729
4772
  };
4730
- function Rs(e, t, l) {
4773
+ function js(e, t, l) {
4731
4774
  if (l.length === 0)
4732
4775
  return {};
4733
- let n = F({}, Ps);
4734
- if (n.title.text = e, xe(t)) {
4776
+ let n = F({}, Ms);
4777
+ if (n.title.text = e, Ce(t)) {
4735
4778
  const o = [], s = Object.keys(l[0]);
4736
4779
  let a = s[0], u = s.filter((d, f) => f > 0), p = t;
4737
4780
  if (t.indexOf(":") > -1) {
@@ -4754,7 +4797,7 @@ function Rs(e, t, l) {
4754
4797
  }
4755
4798
  return Q(t) && (n = F(n, t)), console.log(111, n), n;
4756
4799
  }
4757
- const Ls = V({
4800
+ const Ns = V({
4758
4801
  name: "NumberPanel",
4759
4802
  props: {
4760
4803
  dataList: {
@@ -4765,27 +4808,27 @@ const Ls = V({
4765
4808
  data() {
4766
4809
  return {};
4767
4810
  }
4768
- }), Ms = { class: "number-panel-title" }, js = { class: "number" }, Ns = { class: "name" };
4769
- function Vs(e, t, l, n, o, s) {
4811
+ }), Vs = { class: "number-panel-title" }, qs = { class: "number" }, Us = { class: "name" };
4812
+ function Hs(e, t, l, n, o, s) {
4770
4813
  return i(!0), h(k, null, A(e.dataList, (a, u) => (i(), h("span", { key: u }, [
4771
- b("div", Ms, [
4814
+ b("div", Vs, [
4772
4815
  (i(!0), h(k, null, A(Object.keys(a), (p, d) => (i(), h("div", {
4773
4816
  key: d,
4774
4817
  class: "title-inner"
4775
4818
  }, [
4776
- b("p", js, I(a[p]), 1),
4777
- b("p", Ns, I(p), 1)
4819
+ b("p", qs, I(a[p]), 1),
4820
+ b("p", Us, I(p), 1)
4778
4821
  ]))), 128))
4779
4822
  ])
4780
4823
  ]))), 128);
4781
4824
  }
4782
- const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293"]]), Us = {
4825
+ const Gs = /* @__PURE__ */ C(Ns, [["render", Hs], ["__scopeId", "data-v-cc0d8293"]]), Js = {
4783
4826
  components: {
4784
- Chart: ll,
4785
- Md: Al,
4786
- Json: $e,
4827
+ Chart: nl,
4828
+ Md: $l,
4829
+ Json: Ae,
4787
4830
  Table: ne,
4788
- Number: qs,
4831
+ Number: Gs,
4789
4832
  Html: ""
4790
4833
  },
4791
4834
  props: {
@@ -4806,7 +4849,7 @@ const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293
4806
4849
  };
4807
4850
  if (o === "chart")
4808
4851
  return {
4809
- options: Rs(n.id, n.chart, n.data)
4852
+ options: js(n.id, n.chart, n.data)
4810
4853
  };
4811
4854
  if (o === "md")
4812
4855
  return {
@@ -4830,8 +4873,8 @@ const qs = /* @__PURE__ */ x(Ls, [["render", Vs], ["__scopeId", "data-v-cc0d8293
4830
4873
  };
4831
4874
  }
4832
4875
  };
4833
- function Hs(e, t, l, n, o, s) {
4834
- const a = Oe, u = Ft("resize");
4876
+ function zs(e, t, l, n, o, s) {
4877
+ const a = Oe, u = Ot("resize");
4835
4878
  return ve((i(), m(a, {
4836
4879
  shadow: "never",
4837
4880
  class: "part"
@@ -4844,7 +4887,7 @@ function Hs(e, t, l, n, o, s) {
4844
4887
  [u, !0]
4845
4888
  ]);
4846
4889
  }
4847
- const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1"]]), Js = /* @__PURE__ */ V({
4890
+ const Ks = /* @__PURE__ */ C(Js, [["render", zs], ["__scopeId", "data-v-a5a65cc1"]]), Ws = /* @__PURE__ */ V({
4848
4891
  __name: "index",
4849
4892
  props: {
4850
4893
  filter: {
@@ -4858,7 +4901,7 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4858
4901
  },
4859
4902
  setup(e) {
4860
4903
  const t = e, l = useRoute();
4861
- Ot(() => {
4904
+ Dt(() => {
4862
4905
  });
4863
4906
  const n = P({});
4864
4907
  ze(() => {
@@ -4885,15 +4928,15 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4885
4928
  }
4886
4929
  return "/focusbi_report/view/" + f;
4887
4930
  }), d = (f) => {
4888
- on.get(p.value, { params: f }).then(({ data: _ }) => {
4931
+ sn.get(p.value, { params: f }).then(({ data: _ }) => {
4889
4932
  a.value = _.filter, u.value = _.dataPart, s.value++;
4890
4933
  });
4891
4934
  };
4892
4935
  return (f, _) => {
4893
- const T = Oe, $ = pe, H = ge, q = se;
4936
+ const T = Oe, $ = pe, U = Fe, q = se;
4894
4937
  return i(), m(q, null, {
4895
4938
  default: r(() => [
4896
- E(a).length > 0 ? (i(), m($, {
4939
+ w(a).length > 0 ? (i(), m($, {
4897
4940
  key: 0,
4898
4941
  span: 24
4899
4942
  }, {
@@ -4903,10 +4946,10 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4903
4946
  class: "part-filter"
4904
4947
  }, {
4905
4948
  default: r(() => [
4906
- c(E(J), {
4907
- modelValue: E(n),
4908
- "onUpdate:modelValue": _[0] || (_[0] = (B) => Dt(n) ? n.value = B : null),
4909
- "form-items": E(a),
4949
+ c(w(J), {
4950
+ modelValue: w(n),
4951
+ "onUpdate:modelValue": _[0] || (_[0] = (B) => Pt(n) ? n.value = B : null),
4952
+ "form-items": w(a),
4910
4953
  options: o,
4911
4954
  onSubmit: d
4912
4955
  }, null, 8, ["modelValue", "form-items"])
@@ -4915,17 +4958,17 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4915
4958
  })
4916
4959
  ]),
4917
4960
  _: 1
4918
- })) : w("", !0),
4961
+ })) : E("", !0),
4919
4962
  c($, { span: 24 }, {
4920
4963
  default: r(() => [
4921
4964
  c(q, { gutter: 20 }, {
4922
4965
  default: r(() => [
4923
- (i(!0), h(k, null, A(E(u), (B, W) => (i(), m($, {
4966
+ (i(!0), h(k, null, A(w(u), (B, W) => (i(), m($, {
4924
4967
  key: W,
4925
4968
  span: B.col || 24
4926
4969
  }, {
4927
4970
  default: r(() => [
4928
- B.errMsg ? (i(), m(H, {
4971
+ B.errMsg ? (i(), m(U, {
4929
4972
  key: 1,
4930
4973
  title: B.id + " \u7247\u6BB5\u6267\u884C\u51FA\u9519",
4931
4974
  type: "error"
@@ -4934,8 +4977,8 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4934
4977
  g(I(B.errMsg), 1)
4935
4978
  ]),
4936
4979
  _: 2
4937
- }, 1032, ["title"])) : (i(), m(Gs, {
4938
- key: E(s),
4980
+ }, 1032, ["title"])) : (i(), m(Ks, {
4981
+ key: w(s),
4939
4982
  option: B
4940
4983
  }, null, 8, ["option"]))
4941
4984
  ]),
@@ -4953,7 +4996,7 @@ const Gs = /* @__PURE__ */ x(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1
4953
4996
  };
4954
4997
  }
4955
4998
  });
4956
- const zs = {
4999
+ const Zs = {
4957
5000
  __name: "report",
4958
5001
  setup(e) {
4959
5002
  const t = useRoute(), l = N(() => {
@@ -4964,22 +5007,22 @@ const zs = {
4964
5007
  }
4965
5008
  return "/focusbi_report/view/" + n;
4966
5009
  });
4967
- return (n, o) => (i(), m(ae, { "schema-api": E(l) }, {
5010
+ return (n, o) => (i(), m(ae, { "schema-api": w(l) }, {
4968
5011
  default: r((s) => [
4969
- c(Js, K(X(s)), null, 16)
5012
+ c(Ws, K(X(s)), null, 16)
4970
5013
  ]),
4971
5014
  _: 1
4972
5015
  }, 8, ["schema-api"]));
4973
5016
  }
4974
5017
  };
4975
- const Ks = (e) => c("div", null, [e.test]), Ws = {
4976
- card: Yt,
5018
+ const Qs = (e) => c("div", null, [e.test]), Xs = {
5019
+ card: el,
4977
5020
  form: J,
4978
5021
  table: ne,
4979
- test: Ks,
4980
- row: el,
4981
- col: tl
4982
- }, Zs = {
5022
+ test: Qs,
5023
+ row: tl,
5024
+ col: ll
5025
+ }, Ys = {
4983
5026
  card: {
4984
5027
  type: "card",
4985
5028
  props: {
@@ -5000,7 +5043,7 @@ const Ks = (e) => c("div", null, [e.test]), Ws = {
5000
5043
  }
5001
5044
  }
5002
5045
  };
5003
- function Qs(e) {
5046
+ function ea(e) {
5004
5047
  const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
5005
5048
  delete t.span;
5006
5049
  let o = {
@@ -5041,14 +5084,14 @@ function Me(e) {
5041
5084
  t.children.push({
5042
5085
  type: "col",
5043
5086
  props: o,
5044
- children: Qs(n)
5087
+ children: ea(n)
5045
5088
  });
5046
5089
  return;
5047
5090
  }
5048
5091
  n = F({
5049
5092
  props: {}
5050
- }, Zs[n.type] || {}, n);
5051
- const s = gt(n.children);
5093
+ }, Ys[n.type] || {}, n);
5094
+ const s = kt(n.children);
5052
5095
  s.length && (n.children = Me(s)), t.children.push({
5053
5096
  type: "col",
5054
5097
  props: o,
@@ -5056,32 +5099,32 @@ function Me(e) {
5056
5099
  });
5057
5100
  }), [t];
5058
5101
  }
5059
- function gt(e) {
5102
+ function kt(e) {
5060
5103
  return Ye(e) ? e : Q(e) ? [e] : [];
5061
5104
  }
5062
- let Ce = {};
5063
- const kt = (e) => {
5064
- const t = Ws[e.type] || Ce[e.type] || e.type;
5065
- return Rt(t, e.props, {
5066
- default: () => gt(e.children).map((l) => kt(l))
5105
+ let Se = {};
5106
+ const Et = (e) => {
5107
+ const t = Xs[e.type] || Se[e.type] || e.type;
5108
+ return Lt(t, e.props, {
5109
+ default: () => kt(e.children).map((l) => Et(l))
5067
5110
  });
5068
- }, Xs = (e) => (Object.keys(Ce).length === 0 && (Ce = Pt().appContext.components), Me(Object.values(e.schema)).map((l) => kt(l))), Ys = {
5111
+ }, ta = (e) => (Object.keys(Se).length === 0 && (Se = Rt().appContext.components), Me(Object.values(e.schema)).map((l) => Et(l))), la = {
5069
5112
  __name: "custom",
5070
5113
  setup(e) {
5071
- const t = P([]), l = (n, o) => (t.value = Lt(n), n);
5114
+ const t = P([]), l = (n, o) => (t.value = Mt(n), n);
5072
5115
  return (n, o) => (i(), m(ae, { "schema-handler": l }, {
5073
5116
  default: r(() => [
5074
- c(E(Xs), { schema: E(t) }, null, 8, ["schema"])
5117
+ c(w(ta), { schema: w(t) }, null, 8, ["schema"])
5075
5118
  ]),
5076
5119
  _: 1
5077
5120
  }));
5078
5121
  }
5079
5122
  };
5080
5123
  let ee = {};
5081
- function hi(e) {
5124
+ function yi(e) {
5082
5125
  ee = e;
5083
5126
  }
5084
- const ea = (e) => {
5127
+ const na = (e) => {
5085
5128
  const t = (l) => {
5086
5129
  const n = "./views/" + l + ".vue";
5087
5130
  return ee && ee[n] && ee[n].default ? ee[n].default : (console.error(`\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u4E0D\u5B58\u5728 ${e.name} ${e.view}`), ye);
@@ -5090,33 +5133,33 @@ const ea = (e) => {
5090
5133
  return ye;
5091
5134
  switch (e.page_type) {
5092
5135
  case L.list:
5093
- return vt;
5136
+ return gt;
5094
5137
  case L.form:
5095
- return Se;
5138
+ return we;
5096
5139
  case L.custom:
5097
5140
  case L.localComp:
5098
5141
  return t(e.view || "");
5099
5142
  case L.tree:
5100
- return Ds;
5143
+ return Ls;
5101
5144
  case L.report:
5102
- return zs;
5145
+ return Zs;
5103
5146
  case L.customSchema:
5104
- return Ys;
5147
+ return la;
5105
5148
  }
5106
5149
  return ye;
5107
5150
  };
5108
- function ta(e) {
5151
+ function oa(e) {
5109
5152
  let t = e.path;
5110
5153
  return e.type === D.menu && e.page_type === L.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;
5111
5154
  }
5112
- function la(e) {
5155
+ function sa(e) {
5113
5156
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5114
5157
  }
5115
- const Et = (e) => {
5158
+ const wt = (e) => {
5116
5159
  const t = e.type !== D.page, l = {
5117
- path: ta(e),
5118
- name: e.id + "_" + la(e) + "_" + e.path.replaceAll("/", "_"),
5119
- component: ea(e),
5160
+ path: oa(e),
5161
+ name: e.id + "_" + sa(e) + "_" + e.path.replaceAll("/", "_"),
5162
+ component: na(e),
5120
5163
  meta: {
5121
5164
  id: e.id,
5122
5165
  pageId: e.id,
@@ -5127,13 +5170,13 @@ const Et = (e) => {
5127
5170
  menuType: e.type,
5128
5171
  keepAlive: !1
5129
5172
  },
5130
- children: e.children ? e.children.map((n) => Et(n)) : []
5173
+ children: e.children ? e.children.map((n) => wt(n)) : []
5131
5174
  };
5132
5175
  if (e.page_type === L.entity) {
5133
5176
  const n = e.path + "/list", o = e.path + "/form", s = e.path + "/:id", a = [{
5134
5177
  path: n,
5135
5178
  name: e.name + "\u5217\u8868" + e.id,
5136
- component: vt,
5179
+ component: gt,
5137
5180
  meta: {
5138
5181
  id: e.id + 99999,
5139
5182
  title: "\u5217\u8868",
@@ -5145,7 +5188,7 @@ const Et = (e) => {
5145
5188
  }, {
5146
5189
  path: o,
5147
5190
  name: e.name + "\u65B0\u5EFA" + e.id,
5148
- component: Se,
5191
+ component: we,
5149
5192
  meta: {
5150
5193
  id: e.id + 99999 + 1,
5151
5194
  title: "\u65B0\u5EFA",
@@ -5157,7 +5200,7 @@ const Et = (e) => {
5157
5200
  }, {
5158
5201
  path: s,
5159
5202
  name: e.name + "\u7F16\u8F91" + e.id,
5160
- component: Se,
5203
+ component: we,
5161
5204
  meta: {
5162
5205
  id: e.id + 99999 + 2,
5163
5206
  title: "\u7F16\u8F91",
@@ -5185,7 +5228,7 @@ const Et = (e) => {
5185
5228
  }
5186
5229
  }
5187
5230
  return l;
5188
- }, na = (e) => {
5231
+ }, aa = (e) => {
5189
5232
  const t = [];
5190
5233
  return e.forEach((l) => {
5191
5234
  const n = {
@@ -5194,22 +5237,22 @@ const Et = (e) => {
5194
5237
  routes: []
5195
5238
  };
5196
5239
  l.routes.forEach((o) => {
5197
- n.routes.push(Et(o));
5240
+ n.routes.push(wt(o));
5198
5241
  }), t.push(n);
5199
5242
  }), t;
5200
5243
  };
5201
- function oa(e) {
5244
+ function ia(e) {
5202
5245
  e.beforeEach(async (t, l, n) => {
5203
5246
  if (_t().indexOf(t.path) !== -1) {
5204
5247
  n();
5205
5248
  return;
5206
5249
  }
5207
- if (hs()) {
5250
+ if (bs()) {
5208
5251
  n();
5209
5252
  return;
5210
5253
  }
5211
5254
  await S.dispatch("user/info");
5212
- const o = await S.dispatch("user/loadRemoteRoutes"), s = na(o);
5255
+ const o = await S.dispatch("user/loadRemoteRoutes"), s = aa(o);
5213
5256
  s.forEach((a) => {
5214
5257
  a.routes.forEach((u) => {
5215
5258
  e.addRoute({
@@ -5221,7 +5264,7 @@ function oa(e) {
5221
5264
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5222
5265
  });
5223
5266
  }
5224
- function sa(e) {
5267
+ function ra(e) {
5225
5268
  e.beforeEach(async (t, l, n) => {
5226
5269
  var u;
5227
5270
  const s = [S.state.settings.title || ""], a = t.matched.length;
@@ -5234,11 +5277,11 @@ function sa(e) {
5234
5277
  Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
5235
5278
  });
5236
5279
  }
5237
- function aa(e) {
5238
- _s(e), fs(e), oa(e), sa(e);
5280
+ function ua(e) {
5281
+ ys(e), hs(e), ia(e), ra(e);
5239
5282
  }
5240
- aa(oe);
5241
- const ia = {
5283
+ ua(oe);
5284
+ const ca = {
5242
5285
  beforeMount(e, t) {
5243
5286
  e.clickOutsideEvent = function(l) {
5244
5287
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5247,13 +5290,13 @@ const ia = {
5247
5290
  unmounted(e) {
5248
5291
  document.body.removeEventListener("click", e.clickOutsideEvent);
5249
5292
  }
5250
- }, z = Bl(), ra = {
5293
+ }, z = Il(), pa = {
5251
5294
  mounted: (e, t) => {
5252
5295
  e !== null && (t.value, e.oncontextmenu = (l) => {
5253
5296
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
5254
5297
  });
5255
5298
  }
5256
- }, ua = {
5299
+ }, da = {
5257
5300
  mounted(e) {
5258
5301
  }
5259
5302
  };
@@ -5263,7 +5306,7 @@ function Je(e, t) {
5263
5306
  l += n[`offset${t}`], n = n.offsetParent;
5264
5307
  return l;
5265
5308
  }
5266
- const ca = {
5309
+ const ma = {
5267
5310
  mounted: (e, t) => {
5268
5311
  if (e === null || !t.value.dev)
5269
5312
  return;
@@ -5289,46 +5332,46 @@ const ca = {
5289
5332
  z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
5290
5333
  }, n.appendChild(a), l.insertBefore(n, l.firstChild);
5291
5334
  }
5292
- }, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5335
+ }, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5293
5336
  __proto__: null,
5294
- outClick: ia,
5295
- rightClick: ra,
5296
- resize: ua,
5297
- devtool: ca
5337
+ outClick: ca,
5338
+ rightClick: pa,
5339
+ resize: da,
5340
+ devtool: ma
5298
5341
  }, Symbol.toStringTag, { value: "Module" }));
5299
5342
  let re;
5300
- function bi(e) {
5343
+ function vi(e) {
5301
5344
  return e ? Re(F(de.axios, e)) : re;
5302
5345
  }
5303
- function _i(e) {
5304
- const t = F(de, e), l = Mt($l), n = ya(t), o = t.plugins || [];
5346
+ function gi(e) {
5347
+ const t = F(de, e), l = jt(Tl), n = ka(t), o = t.plugins || [];
5305
5348
  o.unshift(n), o.forEach((s) => {
5306
- _a(l, s);
5307
- }), t != null && t.mock && Nl(), re = Re(t.axios), S.dispatch("setHttp", re).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = oe, window.App = l, window.OmsOptions = t, nl(() => ({
5349
+ ga(l, s);
5350
+ }), t != null && t.mock && Vl(), re = Re(t.axios), S.dispatch("setHttp", re).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = oe, window.App = l, window.OmsOptions = t, ol(() => ({
5308
5351
  "X-Token": Pe()
5309
5352
  })), oe.isReady().then(() => l.mount("#app"));
5310
5353
  }
5311
- function da(e, t = {}) {
5354
+ function ha(e, t = {}) {
5312
5355
  Object.keys(t).forEach((l) => {
5313
5356
  e.component(l, t[l]);
5314
5357
  });
5315
5358
  }
5316
- function ma(e = []) {
5359
+ function ba(e = []) {
5317
5360
  e.forEach((t) => {
5318
5361
  oe.addRoute(t);
5319
5362
  }), S.commit("user/setCustomRoutes", e);
5320
5363
  }
5321
- function fa(e, t) {
5364
+ function _a(e, t) {
5322
5365
  t.forEach((l) => {
5323
5366
  Q(l) && (l = [l]), e.use(...l);
5324
5367
  });
5325
5368
  }
5326
- function ha(e, t = {}) {
5369
+ function ya(e, t = {}) {
5327
5370
  Object.keys(t).forEach((l) => {
5328
5371
  e.directive(l, t[l]);
5329
5372
  });
5330
5373
  }
5331
- function ba(e = {}) {
5374
+ function va(e = {}) {
5332
5375
  const t = ["app", "settings", "user"];
5333
5376
  Object.keys(e).forEach((l) => {
5334
5377
  if (t.indexOf(l) !== -1) {
@@ -5338,39 +5381,39 @@ function ba(e = {}) {
5338
5381
  S.registerModule(l, e[l]);
5339
5382
  });
5340
5383
  }
5341
- function _a(e, t) {
5342
- da(e, t.components || {}), ma(t.routes || []), fa(e, t.use || []), ha(e, t.directives || {}), ba(t.storeModules || {}), rt(t.mockApis || []);
5384
+ function ga(e, t) {
5385
+ ha(e, t.components || {}), ba(t.routes || []), _a(e, t.use || []), ya(e, t.directives || {}), va(t.storeModules || {}), rt(t.mockApis || []);
5343
5386
  }
5344
- function ya(e) {
5387
+ function ka(e) {
5345
5388
  var t;
5346
5389
  return {
5347
- components: { VIcon: ol },
5348
- directives: pa,
5390
+ components: { VIcon: sl },
5391
+ directives: fa,
5349
5392
  use: [
5350
5393
  S,
5351
5394
  oe,
5352
- [Zt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5395
+ [Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5353
5396
  ]
5354
5397
  };
5355
5398
  }
5356
5399
  export {
5357
- Ko as BaseSso,
5400
+ Wo as BaseSso,
5358
5401
  ye as Container,
5359
- Wo as DingTalk,
5402
+ Zo as DingTalk,
5360
5403
  ht as Layout,
5361
5404
  D as MenuType,
5362
- Zl as Message,
5405
+ Ql as Message,
5363
5406
  qe as MessageBox,
5364
5407
  L as PageType,
5365
- Qo as allSso,
5366
- _i as createAdmin,
5408
+ Xo as allSso,
5409
+ gi as createAdmin,
5367
5410
  z as eventBus,
5368
- sn as getCmp,
5411
+ an as getCmp,
5369
5412
  re as http,
5370
5413
  Re as instance,
5371
- hi as regViews,
5372
- fi as setCmp,
5373
- na as transRemoteModules,
5374
- bi as useHttp
5414
+ yi as regViews,
5415
+ _i as setCmp,
5416
+ aa as transRemoteModules,
5417
+ vi as useHttp
5375
5418
  };
5376
5419
  //# sourceMappingURL=index.es.js.map