@okiss/oms 0.0.44 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,19 +1,19 @@
1
- var Et = Object.defineProperty;
2
- var $t = (e, t, l) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
- var M = (e, t, l) => ($t(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as q, onBeforeMount as ze, provide as It, resolveComponent as v, openBlock as i, createBlock as f, createVNode as u, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Ct, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as G, createCommentVNode as x, toRefs as Tt, ref as L, normalizeStyle as Ot, createElementVNode as b, Transition as Bt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as W, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as At, onMounted as Rt, isRef as Pt, getCurrentInstance as Lt, h as Mt, toRaw as Dt, createApp as jt } from "vue";
5
- import { addNewStyle as Nt, addNewStyleTag as Vt, queryParams as qt, logGroup as Ut, compactObject as Qe, showEleByClassName as Ht, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Xe } from "@okiss/utils";
1
+ var $t = Object.defineProperty;
2
+ var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
+ var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as f, createVNode as p, computed as j, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as S, renderList as B, toDisplayString as O, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as x, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as k, withDirectives as ie, vModelText as he, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
5
+ import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as be, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as $e, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
6
6
  import _e from "mockjs";
7
- import Wt, { cloneDeep as y, merge as A, get as ne, unset as Ye } from "lodash";
8
- import et from "element-plus/lib/locale/lang/zh-cn";
7
+ import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
8
+ import tt from "element-plus/lib/locale/lang/zh-cn";
9
9
  import Ie from "axios";
10
10
  import N from "js-cookie";
11
- import { createStore as Zt, useStore as tt, mapGetters as Ce } from "vuex";
11
+ import { createStore as Zt, useStore as lt, mapGetters as Ce } from "vuex";
12
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 { useRoute as pe, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
16
- import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as lt, ElButton as ue, ElOption as Te, ElSelect as Oe, ElFormItem as nt, ElForm as ot, ElCol as de, ElDrawer as at, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Be, ElTree as Sl, ElCard as Ae } from "element-plus/es";
15
+ import { useRoute as ue, onBeforeRouteLeave as nl, useRouter as ol, createRouter as al, createWebHashHistory as sl, onBeforeRouteUpdate as il } from "vue-router";
16
+ import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as pl, ElAside as ul, ElContainer as dl, ElDivider as nt, ElButton as pe, ElOption as Te, ElSelect as Oe, ElFormItem as ot, ElForm as at, ElCol as de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Be, ElTree as Sl, ElCard as Ae } from "element-plus/es";
17
17
  import "element-plus/es/components/base/style/css";
18
18
  import "element-plus/es/components/row/style/css";
19
19
  import "element-plus/es/components/drawer/style/css";
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
35
  import "element-plus/es/components/main/style/css";
36
- import { VForm as J, VBtn as Re, JsonView as Pe, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
36
+ import { VForm as z, VBtn as Pe, JsonView as Re, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
39
  import Cl from "mitt";
@@ -65,20 +65,20 @@ const Al = /* @__PURE__ */ q({
65
65
  return ze(() => {
66
66
  var s;
67
67
  const a = document.getElementById("preloader");
68
- a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Nt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), Vt(`.iconfont {
68
+ a !== null && (document.body.removeChild(a), (s = document.getElementById("preloader")) == null || s.remove(), Vt("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), qt(`.iconfont {
69
69
  font-size: 19px;
70
70
  font-style: normal;
71
71
  -webkit-font-smoothing: antialiased;
72
72
  font-family: iconfont !important;
73
73
  }`));
74
- }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && It("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
74
+ }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
75
75
  const c = v("router-view");
76
76
  return i(), f(c);
77
77
  };
78
78
  }
79
79
  });
80
80
  var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
81
- const Rl = {
81
+ const Pl = {
82
82
  saveApi: "/save",
83
83
  afterSubmit: "",
84
84
  afterReset: "goback",
@@ -467,7 +467,7 @@ const Rl = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], Pl = {
470
+ ], Rl = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -673,7 +673,7 @@ const Rl = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, jl = { form: Rl, table: Pl, listMock: Ll, layoutForm: Ml, layoutSection: Dl }, Nl = [
676
+ }, jl = { form: Pl, table: Rl, listMock: Ll, layoutForm: Ml, layoutSection: Dl }, Nl = [
677
677
  {
678
678
  method: ee.POST,
679
679
  url: "/login",
@@ -726,7 +726,7 @@ const Rl = {
726
726
  withCredentials: !0,
727
727
  timeout: 5e3,
728
728
  cacheEnable: !0
729
- }, st = {
729
+ }, it = {
730
730
  title: "oms",
731
731
  fixedHeader: !1,
732
732
  sidebarLogo: !0,
@@ -740,7 +740,7 @@ const Rl = {
740
740
  ElementPlus: {
741
741
  size: "default",
742
742
  zIndex: 3e3,
743
- locale: et
743
+ locale: tt
744
744
  },
745
745
  nav: [],
746
746
  whiteRoutes: ["/login"],
@@ -753,28 +753,28 @@ const Rl = {
753
753
  serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~"
754
754
  }, me = {
755
755
  axios: ql,
756
- settings: st,
756
+ settings: it,
757
757
  plugins: [],
758
758
  mock: !1
759
759
  }, we = {};
760
- function it(e) {
760
+ function rt(e) {
761
761
  e.forEach((t) => {
762
- const l = rt(t);
762
+ const l = ct(t);
763
763
  we[`${t.method}::${l}`] = t;
764
764
  });
765
765
  }
766
- it(Vl);
767
- function rt(e) {
766
+ rt(Vl);
767
+ function ct(e) {
768
768
  var n;
769
769
  let t = e.url, l = e.baseURL || ((n = me.axios) == null ? void 0 : n.baseURL);
770
770
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
771
771
  }
772
772
  function Ul() {
773
773
  Object.keys(we).forEach((e) => {
774
- const t = we[e], l = rt(t);
774
+ const t = we[e], l = ct(t);
775
775
  _e.mock(l, t.method, function(n) {
776
- const { url: o, type: a, body: s } = n, c = qt(o), p = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: p }), m = _e.mock(d);
777
- return Ut(o, { type: a, query: c, data: p, response: m }), _e.mock(m);
776
+ const { url: o, type: a, body: s } = n, c = Ut(o), u = s ? JSON.parse(s) : {}, d = t.response({ query: c, data: u }), m = _e.mock(d);
777
+ return Ht(o, { type: a, query: c, data: u, response: m }), _e.mock(m);
778
778
  });
779
779
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
780
780
  }
@@ -786,7 +786,7 @@ function Hl(e) {
786
786
  const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
787
787
  return N.set(Le, e, { expires: t });
788
788
  }
789
- function ct() {
789
+ function pt() {
790
790
  return N.remove(Le);
791
791
  }
792
792
  const Fl = {
@@ -810,7 +810,7 @@ const Fl = {
810
810
  e.token = t, Hl(t);
811
811
  },
812
812
  removeToken(e) {
813
- e.token = "", ct();
813
+ e.token = "", pt();
814
814
  },
815
815
  updateRemoteRouter(e, t) {
816
816
  e.remoteRouter = t, e.isLodeRemoteRoutes = !0;
@@ -866,9 +866,9 @@ const Fl = {
866
866
  url: "/user/info",
867
867
  method: "GET"
868
868
  }).then((o) => {
869
- var s, c, p, d, m;
869
+ var s, c, u, d, m;
870
870
  const a = ((s = o.data) == null ? void 0 : s.role_ids) || [];
871
- e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (p = o.data) == null ? void 0 : p.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !N.get("username") && N.set("username", (m = o.data) == null ? void 0 : m.name), l(!0);
871
+ e("updateState", { key: "name", value: (c = o.data) == null ? void 0 : c.name }), e("updateState", { key: "nickname", value: (u = o.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (d = o.data) == null ? void 0 : d.env }), !N.get("username") && N.set("username", (m = o.data) == null ? void 0 : m.name), l(!0);
872
872
  }).catch((o) => {
873
873
  n(o);
874
874
  }) : n("http client not init");
@@ -892,7 +892,7 @@ const Fl = {
892
892
  });
893
893
  }
894
894
  }
895
- }, Jl = y(st), zl = {
895
+ }, Jl = y(it), zl = {
896
896
  namespaced: !0,
897
897
  state: Jl,
898
898
  mutations: {
@@ -1069,11 +1069,11 @@ const nn = /* @__PURE__ */ q({
1069
1069
  setup() {
1070
1070
  const e = ln("test");
1071
1071
  if (e)
1072
- return () => u(e, null, null);
1073
- const t = tt(), l = j(() => t.getters.name);
1074
- return () => u("div", {
1072
+ return () => p(e, null, null);
1073
+ const t = lt(), l = j(() => t.getters.name);
1074
+ return () => p("div", {
1075
1075
  class: "dashboard-container"
1076
- }, [u("div", {
1076
+ }, [p("div", {
1077
1077
  class: "dashboard-text"
1078
1078
  }, [g("Hi "), l.value, g(" 😄")])]);
1079
1079
  }
@@ -1138,16 +1138,16 @@ function cn(e, t, l, n, o, a) {
1138
1138
  separator: "/"
1139
1139
  }, {
1140
1140
  default: r(() => [
1141
- u(Ct, { name: "breadcrumb" }, {
1141
+ p(Tt, { name: "breadcrumb" }, {
1142
1142
  default: r(() => [
1143
- (i(!0), h(S, null, B(o.levelList, (p, d) => (i(), f(s, {
1144
- key: p.path
1143
+ (i(!0), h(S, null, B(o.levelList, (u, d) => (i(), f(s, {
1144
+ key: u.path
1145
1145
  }, {
1146
1146
  default: r(() => [
1147
- p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, O(p.meta.title), 1)) : (i(), h("a", {
1147
+ u.path.indexOf("/DIR_") === 0 && u.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, O(u.meta.title), 1)) : (i(), h("a", {
1148
1148
  key: 1,
1149
- onClick: (m) => a.handleLink(p)
1150
- }, O(p.meta.title), 9, rn))
1149
+ onClick: (m) => a.handleLink(u)
1150
+ }, O(u.meta.title), 9, rn))
1151
1151
  ]),
1152
1152
  _: 2
1153
1153
  }, 1024))), 128))
@@ -1158,7 +1158,7 @@ function cn(e, t, l, n, o, a) {
1158
1158
  _: 1
1159
1159
  });
1160
1160
  }
1161
- const un = /* @__PURE__ */ $(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), pn = {
1161
+ const pn = /* @__PURE__ */ $(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), un = {
1162
1162
  name: "Hamburger",
1163
1163
  props: {
1164
1164
  isActive: {
@@ -1179,25 +1179,25 @@ function dn(e, t, l, n, o, a) {
1179
1179
  style: { padding: "0 15px" },
1180
1180
  onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
1181
1181
  }, [
1182
- u(s, {
1182
+ p(s, {
1183
1183
  class: H({ "is-active": l.isActive }),
1184
1184
  name: "ra-leftalignment"
1185
1185
  }, null, 8, ["class"])
1186
1186
  ]);
1187
1187
  }
1188
- const mn = /* @__PURE__ */ $(pn, [["render", dn]]);
1188
+ const mn = /* @__PURE__ */ $(un, [["render", dn]]);
1189
1189
  const fn = {};
1190
1190
  function hn(e, t) {
1191
- const l = ae, n = ul, o = pl, a = dl;
1191
+ const l = ae, n = pl, o = ul, a = dl;
1192
1192
  return i(), f(a, { style: { width: "100%", height: "100%" } }, {
1193
1193
  default: r(() => [
1194
- u(l, { class: "aside" }, {
1194
+ p(l, { class: "aside" }, {
1195
1195
  default: r(() => [
1196
1196
  le(e.$slots, "left-aside", {}, void 0, !0)
1197
1197
  ]),
1198
1198
  _: 3
1199
1199
  }),
1200
- u(n, {
1200
+ p(n, {
1201
1201
  class: "main",
1202
1202
  style: { margin: "0 10px" }
1203
1203
  }, {
@@ -1206,7 +1206,7 @@ function hn(e, t) {
1206
1206
  ]),
1207
1207
  _: 3
1208
1208
  }),
1209
- u(o, {
1209
+ p(o, {
1210
1210
  class: "aside",
1211
1211
  width: "350px",
1212
1212
  style: { padding: "20px" }
@@ -1220,7 +1220,7 @@ function hn(e, t) {
1220
1220
  _: 3
1221
1221
  });
1222
1222
  }
1223
- const pt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
1223
+ const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
1224
1224
  type: "input",
1225
1225
  name: "文本框",
1226
1226
  default: {
@@ -1793,24 +1793,24 @@ const pt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b
1793
1793
  }
1794
1794
  }
1795
1795
  ]
1796
- }, dt = {};
1797
- function R(e) {
1798
- dt[e.type] = e;
1796
+ }, mt = {};
1797
+ function P(e) {
1798
+ mt[e.type] = e;
1799
1799
  }
1800
- R(bn);
1801
- R(vn);
1802
- R(_n);
1803
- R(yn);
1804
- R(kn);
1805
- R(In);
1806
- R(gn);
1807
- R(Cn);
1808
- R(wn);
1809
- R(Sn);
1810
- R(xn);
1811
- R($n);
1812
- R(En);
1813
- const Se = dt, Tn = {
1800
+ P(bn);
1801
+ P(vn);
1802
+ P(_n);
1803
+ P(yn);
1804
+ P(kn);
1805
+ P(In);
1806
+ P(gn);
1807
+ P(Cn);
1808
+ P(wn);
1809
+ P(Sn);
1810
+ P(xn);
1811
+ P($n);
1812
+ P(En);
1813
+ const Se = mt, Tn = {
1814
1814
  options: {
1815
1815
  labelPosition: "top",
1816
1816
  submitButton: !1,
@@ -1950,7 +1950,7 @@ const On = {
1950
1950
  }
1951
1951
  ]
1952
1952
  }, Bn = {
1953
- components: { DevLayout: pt, VForm: J, VButton: Re, JsonView: Pe },
1953
+ components: { DevLayout: dt, VForm: z, VButton: Pe, JsonView: Re },
1954
1954
  props: {
1955
1955
  schema: {
1956
1956
  type: Object,
@@ -2037,12 +2037,12 @@ const On = {
2037
2037
  }
2038
2038
  },
2039
2039
  beforeCreate() {
2040
- K.on("dev-action", ({ event: e, data: t }) => {
2040
+ W.on("dev-action", ({ event: e, data: t }) => {
2041
2041
  this.onDevAction(t.type, t.devId);
2042
2042
  });
2043
2043
  },
2044
2044
  unmounted() {
2045
- K.off("dev-action");
2045
+ W.off("dev-action");
2046
2046
  },
2047
2047
  methods: {
2048
2048
  onDevAction(e, t) {
@@ -2058,7 +2058,7 @@ const On = {
2058
2058
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2059
2059
  },
2060
2060
  removeOne() {
2061
- Ye(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2061
+ et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2062
2062
  },
2063
2063
  clicklabel() {
2064
2064
  const e = this.activeIndex;
@@ -2086,16 +2086,16 @@ const On = {
2086
2086
  }
2087
2087
  };
2088
2088
  function An(e, t, l, n, o, a) {
2089
- const s = v("v-form"), c = lt, p = ue, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = nt, F = ot, U = v("dev-layout");
2089
+ const s = v("v-form"), c = nt, u = pe, d = v("JsonView"), m = v("VButton"), _ = Te, T = Oe, w = ot, J = at, U = v("dev-layout");
2090
2090
  return i(), f(U, null, {
2091
2091
  main: r(() => [
2092
- o.builderSchema.formItems ? (i(), f(s, G({
2092
+ o.builderSchema.formItems ? (i(), f(s, F({
2093
2093
  ref: "form",
2094
2094
  key: o.key,
2095
2095
  dev: !0
2096
2096
  }, o.builderSchema), null, 16)) : x("", !0),
2097
- u(c),
2098
- u(p, {
2097
+ p(c),
2098
+ p(u, {
2099
2099
  type: "primary",
2100
2100
  onClick: a.saveSchema
2101
2101
  }, {
@@ -2105,22 +2105,22 @@ function An(e, t, l, n, o, a) {
2105
2105
  _: 1
2106
2106
  }, 8, ["onClick"]),
2107
2107
  g("    "),
2108
- u(m, {
2108
+ p(m, {
2109
2109
  text: "PageSchema",
2110
2110
  type: "modal"
2111
2111
  }, {
2112
2112
  default: r(() => [
2113
- u(d, { data: a.getSaveSchema }, null, 8, ["data"])
2113
+ p(d, { data: a.getSaveSchema }, null, 8, ["data"])
2114
2114
  ]),
2115
2115
  _: 1
2116
2116
  })
2117
2117
  ]),
2118
2118
  "right-aside": r(() => [
2119
- o.activeIndex ? (i(), f(F, { key: 0 }, {
2119
+ o.activeIndex ? (i(), f(J, { key: 0 }, {
2120
2120
  default: r(() => [
2121
- u(w, { label: "控件类型" }, {
2121
+ p(w, { label: "控件类型" }, {
2122
2122
  default: r(() => [
2123
- u(T, {
2123
+ p(T, {
2124
2124
  modelValue: o.currentCtrlType,
2125
2125
  "onUpdate:modelValue": t[0] || (t[0] = (C) => o.currentCtrlType = C)
2126
2126
  }, {
@@ -2139,7 +2139,7 @@ function An(e, t, l, n, o, a) {
2139
2139
  ]),
2140
2140
  _: 1
2141
2141
  })) : x("", !0),
2142
- (i(), f(s, G({
2142
+ (i(), f(s, F({
2143
2143
  key: o.ctrlKey,
2144
2144
  modelValue: o.ctrlOptions,
2145
2145
  "onUpdate:modelValue": t[1] || (t[1] = (C) => o.ctrlOptions = C)
@@ -2148,7 +2148,7 @@ function An(e, t, l, n, o, a) {
2148
2148
  _: 1
2149
2149
  });
2150
2150
  }
2151
- const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171"]]), Pn = {
2151
+ const Pn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171"]]), Rn = {
2152
2152
  type: "input",
2153
2153
  name: "文本框",
2154
2154
  default: {
@@ -2849,7 +2849,7 @@ const Rn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171
2849
2849
  table: Zn
2850
2850
  };
2851
2851
  const Xn = {
2852
- components: { JsonView: Pe, DevLayout: pt, VTable: oe, VForm: J, VButton: Re },
2852
+ components: { JsonView: Re, DevLayout: dt, VTable: oe, VForm: z, VButton: Pe },
2853
2853
  props: {
2854
2854
  schema: {
2855
2855
  type: Object,
@@ -2858,7 +2858,7 @@ const Xn = {
2858
2858
  }
2859
2859
  },
2860
2860
  data() {
2861
- const e = Tt(this.$props.schema);
2861
+ const e = Ot(this.$props.schema);
2862
2862
  return delete e.listApi, e.list = [{}], {
2863
2863
  baseSchema: He,
2864
2864
  activeTab: "base",
@@ -2877,7 +2877,7 @@ const Xn = {
2877
2877
  ctrlName: "",
2878
2878
  activeIndex: void 0,
2879
2879
  ctrlMap: {
2880
- filter: { input: Pn, select: Ln, date: Mn },
2880
+ filter: { input: Rn, select: Ln, date: Mn },
2881
2881
  headers: Jn,
2882
2882
  buttons: Qn
2883
2883
  },
@@ -2952,12 +2952,12 @@ const Xn = {
2952
2952
  }
2953
2953
  },
2954
2954
  beforeCreate() {
2955
- K.on("dev-action", ({ event: e, data: t }) => {
2955
+ W.on("dev-action", ({ event: e, data: t }) => {
2956
2956
  this.onDevAction(t.type, t.devId);
2957
2957
  });
2958
2958
  },
2959
2959
  unmounted() {
2960
- K.off("dev-action");
2960
+ W.off("dev-action");
2961
2961
  },
2962
2962
  methods: {
2963
2963
  updateBuilderSchema() {
@@ -2993,7 +2993,7 @@ const Xn = {
2993
2993
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2994
2994
  },
2995
2995
  removeOne() {
2996
- Ye(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2996
+ et(this.builderSchema, this.activeIndex), this.builderSchema = y(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2997
2997
  },
2998
2998
  clicklabel() {
2999
2999
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
@@ -3032,14 +3032,14 @@ const Xn = {
3032
3032
  }
3033
3033
  };
3034
3034
  function Yn(e, t, l, n, o, a) {
3035
- const s = de, c = ue, p = ae, d = v("v-table"), m = lt, _ = ue, T = v("JsonView"), w = v("VButton"), F = Te, U = Oe, C = nt, Z = ot, St = v("v-form"), xt = v("dev-layout");
3036
- return i(), f(xt, null, {
3035
+ const s = de, c = pe, u = ae, d = v("v-table"), m = nt, _ = pe, T = v("JsonView"), w = v("VButton"), J = Te, U = Oe, C = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
3036
+ return i(), f(Et, null, {
3037
3037
  "left-aside": r(() => [
3038
- u(p, { style: { width: "200px" } }, {
3038
+ p(u, { style: { width: "200px" } }, {
3039
3039
  default: r(() => [
3040
- u(p, null, {
3040
+ p(u, null, {
3041
3041
  default: r(() => [
3042
- u(s, {
3042
+ p(s, {
3043
3043
  class: "title",
3044
3044
  "data-id": 22222
3045
3045
  }, {
@@ -3048,9 +3048,9 @@ function Yn(e, t, l, n, o, a) {
3048
3048
  ]),
3049
3049
  _: 1
3050
3050
  }),
3051
- u(s, { class: "ctrl" }, {
3051
+ p(s, { class: "ctrl" }, {
3052
3052
  default: r(() => [
3053
- u(c, {
3053
+ p(c, {
3054
3054
  class: "ctrl-btn",
3055
3055
  onClick: t[0] || (t[0] = (I) => a.pushFilter("input"))
3056
3056
  }, {
@@ -3062,9 +3062,9 @@ function Yn(e, t, l, n, o, a) {
3062
3062
  ]),
3063
3063
  _: 1
3064
3064
  }),
3065
- u(s, { class: "ctrl" }, {
3065
+ p(s, { class: "ctrl" }, {
3066
3066
  default: r(() => [
3067
- u(c, {
3067
+ p(c, {
3068
3068
  class: "ctrl-btn",
3069
3069
  onClick: t[1] || (t[1] = (I) => a.pushFilter("select"))
3070
3070
  }, {
@@ -3076,9 +3076,9 @@ function Yn(e, t, l, n, o, a) {
3076
3076
  ]),
3077
3077
  _: 1
3078
3078
  }),
3079
- u(s, { class: "ctrl" }, {
3079
+ p(s, { class: "ctrl" }, {
3080
3080
  default: r(() => [
3081
- u(c, {
3081
+ p(c, {
3082
3082
  class: "ctrl-btn",
3083
3083
  onClick: t[2] || (t[2] = (I) => a.pushFilter("date"))
3084
3084
  }, {
@@ -3093,9 +3093,9 @@ function Yn(e, t, l, n, o, a) {
3093
3093
  ]),
3094
3094
  _: 1
3095
3095
  }),
3096
- u(p, null, {
3096
+ p(u, null, {
3097
3097
  default: r(() => [
3098
- u(s, { class: "title" }, {
3098
+ p(s, { class: "title" }, {
3099
3099
  default: r(() => [
3100
3100
  g("添加列表项")
3101
3101
  ]),
@@ -3106,7 +3106,7 @@ function Yn(e, t, l, n, o, a) {
3106
3106
  class: "ctrl"
3107
3107
  }, {
3108
3108
  default: r(() => [
3109
- u(c, {
3109
+ p(c, {
3110
3110
  class: "ctrl-btn",
3111
3111
  onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[I].type)
3112
3112
  }, {
@@ -3121,9 +3121,9 @@ function Yn(e, t, l, n, o, a) {
3121
3121
  ]),
3122
3122
  _: 1
3123
3123
  }),
3124
- u(p, null, {
3124
+ p(u, null, {
3125
3125
  default: r(() => [
3126
- u(s, { class: "title" }, {
3126
+ p(s, { class: "title" }, {
3127
3127
  default: r(() => [
3128
3128
  g("添加行按钮")
3129
3129
  ]),
@@ -3134,7 +3134,7 @@ function Yn(e, t, l, n, o, a) {
3134
3134
  class: "ctrl"
3135
3135
  }, {
3136
3136
  default: r(() => [
3137
- u(c, {
3137
+ p(c, {
3138
3138
  class: "ctrl-btn",
3139
3139
  onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[I].type)
3140
3140
  }, {
@@ -3149,9 +3149,9 @@ function Yn(e, t, l, n, o, a) {
3149
3149
  ]),
3150
3150
  _: 1
3151
3151
  }),
3152
- u(p, null, {
3152
+ p(u, null, {
3153
3153
  default: r(() => [
3154
- u(s, { class: "title" }, {
3154
+ p(s, { class: "title" }, {
3155
3155
  default: r(() => [
3156
3156
  g("添加常规按钮")
3157
3157
  ]),
@@ -3162,7 +3162,7 @@ function Yn(e, t, l, n, o, a) {
3162
3162
  class: "ctrl"
3163
3163
  }, {
3164
3164
  default: r(() => [
3165
- u(c, {
3165
+ p(c, {
3166
3166
  class: "ctrl-btn",
3167
3167
  onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[I].type)
3168
3168
  }, {
@@ -3174,9 +3174,9 @@ function Yn(e, t, l, n, o, a) {
3174
3174
  ]),
3175
3175
  _: 2
3176
3176
  }, 1024))), 128)),
3177
- u(s, { class: "ctrl" }, {
3177
+ p(s, { class: "ctrl" }, {
3178
3178
  default: r(() => [
3179
- u(c, { class: "ctrl-btn" }, {
3179
+ p(c, { class: "ctrl-btn" }, {
3180
3180
  default: r(() => [
3181
3181
  g("按钮组")
3182
3182
  ]),
@@ -3188,9 +3188,9 @@ function Yn(e, t, l, n, o, a) {
3188
3188
  ]),
3189
3189
  _: 1
3190
3190
  }),
3191
- u(p, null, {
3191
+ p(u, null, {
3192
3192
  default: r(() => [
3193
- u(s, { class: "title" }, {
3193
+ p(s, { class: "title" }, {
3194
3194
  default: r(() => [
3195
3195
  g("添加批量按钮")
3196
3196
  ]),
@@ -3201,7 +3201,7 @@ function Yn(e, t, l, n, o, a) {
3201
3201
  class: "ctrl"
3202
3202
  }, {
3203
3203
  default: r(() => [
3204
- u(c, {
3204
+ p(c, {
3205
3205
  class: "ctrl-btn",
3206
3206
  onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[I].type)
3207
3207
  }, {
@@ -3213,9 +3213,9 @@ function Yn(e, t, l, n, o, a) {
3213
3213
  ]),
3214
3214
  _: 2
3215
3215
  }, 1024))), 128)),
3216
- u(s, { class: "ctrl" }, {
3216
+ p(s, { class: "ctrl" }, {
3217
3217
  default: r(() => [
3218
- u(c, { class: "ctrl-btn" }, {
3218
+ p(c, { class: "ctrl-btn" }, {
3219
3219
  default: r(() => [
3220
3220
  g("按钮组")
3221
3221
  ]),
@@ -3232,13 +3232,13 @@ function Yn(e, t, l, n, o, a) {
3232
3232
  })
3233
3233
  ]),
3234
3234
  main: r(() => [
3235
- (i(), f(d, G({
3235
+ (i(), f(d, F({
3236
3236
  ref: "table",
3237
3237
  key: o.key,
3238
3238
  dev: !0
3239
3239
  }, o.builderSchema), null, 16)),
3240
- u(m),
3241
- u(_, {
3240
+ p(m),
3241
+ p(_, {
3242
3242
  type: "primary",
3243
3243
  onClick: a.saveSchema
3244
3244
  }, {
@@ -3248,12 +3248,12 @@ function Yn(e, t, l, n, o, a) {
3248
3248
  _: 1
3249
3249
  }, 8, ["onClick"]),
3250
3250
  g("    "),
3251
- u(w, {
3251
+ p(w, {
3252
3252
  text: "PageSchema",
3253
3253
  type: "modal"
3254
3254
  }, {
3255
3255
  default: r(() => [
3256
- u(T, { data: a.getSaveSchema }, null, 8, ["data"])
3256
+ p(T, { data: a.getSaveSchema }, null, 8, ["data"])
3257
3257
  ]),
3258
3258
  _: 1
3259
3259
  })
@@ -3261,14 +3261,14 @@ function Yn(e, t, l, n, o, a) {
3261
3261
  "right-aside": r(() => [
3262
3262
  o.activeIndex ? (i(), f(Z, { key: 0 }, {
3263
3263
  default: r(() => [
3264
- u(C, { label: "控件类型" }, {
3264
+ p(C, { label: "控件类型" }, {
3265
3265
  default: r(() => [
3266
- u(U, {
3266
+ p(U, {
3267
3267
  modelValue: o.currentCtrlType,
3268
3268
  "onUpdate:modelValue": t[3] || (t[3] = (I) => o.currentCtrlType = I)
3269
3269
  }, {
3270
3270
  default: r(() => [
3271
- (i(!0), h(S, null, B(a.types, (I, V) => (i(), f(F, {
3271
+ (i(!0), h(S, null, B(a.types, (I, V) => (i(), f(J, {
3272
3272
  key: V,
3273
3273
  label: I.label,
3274
3274
  value: I.value
@@ -3282,7 +3282,7 @@ function Yn(e, t, l, n, o, a) {
3282
3282
  ]),
3283
3283
  _: 1
3284
3284
  })) : x("", !0),
3285
- (i(), f(St, G({
3285
+ (i(), f(xt, F({
3286
3286
  key: o.ctrlKey,
3287
3287
  modelValue: o.ctrlOptions,
3288
3288
  "onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
@@ -3293,20 +3293,20 @@ function Yn(e, t, l, n, o, a) {
3293
3293
  }
3294
3294
  const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
3295
3295
  name: "PageEditor",
3296
- components: { FormBuilder: Rn, TableBuilder: eo },
3296
+ components: { FormBuilder: Pn, TableBuilder: eo },
3297
3297
  setup() {
3298
- const e = L(!1), t = L(1), l = "rtl", n = pe(), o = j(() => E.state.app.pages[n.path]);
3298
+ const e = L(!1), t = L(1), l = "rtl", n = ue(), o = j(() => E.state.app.pages[n.path]);
3299
3299
  return { show: e, key: t, direction: l, pageSchema: o };
3300
3300
  }
3301
3301
  };
3302
3302
  function lo(e, t, l, n, o, a) {
3303
- const s = v("VIcon"), c = v("form-builder"), p = v("table-builder"), d = at;
3303
+ const s = v("VIcon"), c = v("form-builder"), u = v("table-builder"), d = st;
3304
3304
  return i(), h(S, null, [
3305
- u(s, {
3305
+ p(s, {
3306
3306
  name: "ra-set",
3307
3307
  onClick: t[0] || (t[0] = (m) => n.show = !n.show)
3308
3308
  }),
3309
- u(d, {
3309
+ p(d, {
3310
3310
  modelValue: n.show,
3311
3311
  "onUpdate:modelValue": t[1] || (t[1] = (m) => n.show = m),
3312
3312
  title: "页面设计",
@@ -3321,7 +3321,7 @@ function lo(e, t, l, n, o, a) {
3321
3321
  key: 0,
3322
3322
  schema: n.pageSchema
3323
3323
  }, null, 8, ["schema"])) : x("", !0),
3324
- n.pageSchema.headers !== void 0 ? (i(), f(p, {
3324
+ n.pageSchema.headers !== void 0 ? (i(), f(u, {
3325
3325
  key: 1,
3326
3326
  schema: n.pageSchema
3327
3327
  }, null, 8, ["schema"])) : x("", !0)
@@ -3333,9 +3333,9 @@ function lo(e, t, l, n, o, a) {
3333
3333
  const no = /* @__PURE__ */ $(to, [["render", lo]]);
3334
3334
  const oo = {
3335
3335
  components: {
3336
- Breadcrumb: un,
3336
+ Breadcrumb: pn,
3337
3337
  Hamburger: mn,
3338
- VButton: Re,
3338
+ VButton: Pe,
3339
3339
  PageEditor: no
3340
3340
  },
3341
3341
  data() {
@@ -3367,7 +3367,7 @@ const oo = {
3367
3367
  }
3368
3368
  },
3369
3369
  mounted() {
3370
- Ht("el-submenu is-active");
3370
+ Xe("el-submenu is-active");
3371
3371
  const e = this.getSetting("navBarNotice");
3372
3372
  e.length > 0 && !this.getSetting("closeNavNotice") && this.showNotice(e) && this.$notify({
3373
3373
  title: "提示",
@@ -3417,49 +3417,49 @@ const oo = {
3417
3417
  }, ro = {
3418
3418
  class: "right-item-button",
3419
3419
  style: { padding: "0" }
3420
- }, co = { class: "user-info" }, uo = ["src"], po = { class: "user-name" };
3420
+ }, co = { class: "user-info" }, po = ["src"], uo = { class: "user-name" };
3421
3421
  function mo(e, t, l, n, o, a) {
3422
- const s = v("hamburger"), c = v("breadcrumb"), p = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, F = hl, U = at, C = ae;
3422
+ const s = v("hamburger"), c = v("breadcrumb"), u = de, d = v("VIcon"), m = v("PageEditor"), _ = v("v-button"), T = ml, w = fl, J = hl, U = st, C = ae;
3423
3423
  return i(), f(C, {
3424
3424
  ref: "header",
3425
3425
  class: "navbar",
3426
- style: Ot({ background: a.setting.envColor[a.user.env] })
3426
+ style: Bt({ background: a.setting.envColor[a.user.env] })
3427
3427
  }, {
3428
3428
  default: r(() => [
3429
- u(p, { span: 16 }, {
3429
+ p(u, { span: 16 }, {
3430
3430
  default: r(() => [
3431
- u(s, {
3431
+ p(s, {
3432
3432
  "is-active": e.sidebar.opened,
3433
3433
  class: "hamburger-container",
3434
3434
  onToggleClick: a.toggleSideBar
3435
3435
  }, null, 8, ["is-active", "onToggleClick"]),
3436
- u(c, { class: "breadcrumb-container" })
3436
+ p(c, { class: "breadcrumb-container" })
3437
3437
  ]),
3438
3438
  _: 1
3439
3439
  }),
3440
- u(p, { span: 8 }, {
3440
+ p(u, { span: 8 }, {
3441
3441
  default: r(() => [
3442
3442
  b("div", ao, [
3443
3443
  b("div", so, [
3444
- u(d, {
3444
+ p(d, {
3445
3445
  name: "ra-code",
3446
3446
  onClick: a.gotoMenuEdit
3447
3447
  }, null, 8, ["onClick"])
3448
3448
  ]),
3449
3449
  a.showPageJsonSchemaIcon ? (i(), h("div", io, [
3450
- u(m)
3450
+ p(m)
3451
3451
  ])) : x("", !0),
3452
3452
  b("div", ro, [
3453
- u(_, { buttons: e.nav }, null, 8, ["buttons"])
3453
+ p(_, { buttons: e.nav }, null, 8, ["buttons"])
3454
3454
  ]),
3455
- u(F, {
3455
+ p(J, {
3456
3456
  class: "right-item",
3457
3457
  trigger: "click"
3458
3458
  }, {
3459
3459
  dropdown: r(() => [
3460
- u(w, { class: "user-dropdown" }, {
3460
+ p(w, { class: "user-dropdown" }, {
3461
3461
  default: r(() => [
3462
- u(T, {
3462
+ p(T, {
3463
3463
  icon: "oms-icon-index",
3464
3464
  onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3465
3465
  }, {
@@ -3468,7 +3468,7 @@ function mo(e, t, l, n, o, a) {
3468
3468
  ]),
3469
3469
  _: 1
3470
3470
  }),
3471
- u(T, {
3471
+ p(T, {
3472
3472
  divided: "",
3473
3473
  icon: "el-icon-switch-button",
3474
3474
  onClick: a.logout
@@ -3488,9 +3488,9 @@ function mo(e, t, l, n, o, a) {
3488
3488
  src: e.avatar ? e.avatar : o.defaultAvatar,
3489
3489
  class: "user-avatar",
3490
3490
  alt: "头像"
3491
- }, null, 8, uo),
3491
+ }, null, 8, po),
3492
3492
  g(),
3493
- b("span", po, O(e.nickname || e.name), 1)
3493
+ b("span", uo, O(e.nickname || e.name), 1)
3494
3494
  ])
3495
3495
  ]),
3496
3496
  _: 1
@@ -3534,7 +3534,7 @@ function wo(e, t, l, n, o, a) {
3534
3534
  return i(), h("div", {
3535
3535
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3536
3536
  }, [
3537
- u(Bt, { name: "sidebarLogoFade" }, {
3537
+ p(At, { name: "sidebarLogoFade" }, {
3538
3538
  default: r(() => [
3539
3539
  l.collapse ? (i(), f(s, {
3540
3540
  key: "collapse",
@@ -3604,7 +3604,7 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
3604
3604
  }
3605
3605
  };
3606
3606
  function Eo(e, t, l, n, o, a) {
3607
- return i(), f(Ze(a.compType(l.to)), W(Y(a.linkProps(l.to))), {
3607
+ return i(), f(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3608
3608
  default: r(() => [
3609
3609
  le(e.$slots, "default")
3610
3610
  ]),
@@ -3647,7 +3647,7 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
3647
3647
  return (t, l) => {
3648
3648
  const n = v("VIcon");
3649
3649
  return i(), h(S, null, [
3650
- u(n, {
3650
+ p(n, {
3651
3651
  name: e.meta.icon || "ra-all"
3652
3652
  }, null, 8, ["name"]),
3653
3653
  b("span", Co, O(e.meta.title), 1)
@@ -3690,21 +3690,21 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
3690
3690
  class: "menu-wrapper"
3691
3691
  };
3692
3692
  function Ao(e, t, l, n, o, a) {
3693
- const s = v("menu-content"), c = bl, p = v("app-link"), d = v("sidebar-item", !0), m = _l;
3693
+ const s = v("menu-content"), c = bl, u = v("app-link"), d = v("sidebar-item", !0), m = _l;
3694
3694
  return l.item.hidden !== !1 ? (i(), h("div", Bo, [
3695
3695
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(S, { key: 0 }, [
3696
- l.item.meta ? (i(), f(p, {
3696
+ l.item.meta ? (i(), f(u, {
3697
3697
  key: 0,
3698
3698
  to: l.to,
3699
3699
  "new-tab": l.item.meta.newTab
3700
3700
  }, {
3701
3701
  default: r(() => [
3702
- u(c, {
3702
+ p(c, {
3703
3703
  index: l.to,
3704
3704
  class: H({ "submenu-title-noDropdown": !l.isNest })
3705
3705
  }, {
3706
3706
  default: r(() => [
3707
- u(s, {
3707
+ p(s, {
3708
3708
  meta: l.item.meta
3709
3709
  }, null, 8, ["meta"])
3710
3710
  ]),
@@ -3720,12 +3720,12 @@ function Ao(e, t, l, n, o, a) {
3720
3720
  class: H({ "submenu-title-noDropdown": !l.isNest })
3721
3721
  }, {
3722
3722
  title: r(() => [
3723
- l.item.redirect && l.item.redirect !== "#" ? (i(), f(p, {
3723
+ l.item.redirect && l.item.redirect !== "#" ? (i(), f(u, {
3724
3724
  key: 0,
3725
3725
  to: l.to
3726
3726
  }, {
3727
3727
  default: r(() => [
3728
- u(s, {
3728
+ p(s, {
3729
3729
  meta: l.item.meta
3730
3730
  }, null, 8, ["meta"])
3731
3731
  ]),
@@ -3748,14 +3748,14 @@ function Ao(e, t, l, n, o, a) {
3748
3748
  }, 8, ["index", "class"])) : x("", !0)
3749
3749
  ])) : x("", !0);
3750
3750
  }
3751
- const Ro = /* @__PURE__ */ $(Oo, [["render", Ao]]);
3752
- function mt(e) {
3751
+ const Po = /* @__PURE__ */ $(Oo, [["render", Ao]]);
3752
+ function ft(e) {
3753
3753
  return e.filter((t) => {
3754
3754
  var l;
3755
- return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = mt(t.children), t.children.length === 0 && delete t.children), !0);
3755
+ 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);
3756
3756
  });
3757
3757
  }
3758
- const Po = {
3758
+ const Ro = {
3759
3759
  data() {
3760
3760
  return {
3761
3761
  selected: ""
@@ -3767,24 +3767,35 @@ const Po = {
3767
3767
  let e = [];
3768
3768
  return this.remoteRouter.forEach((t) => {
3769
3769
  e = e.concat(y(t.routes));
3770
- }), mt(e);
3770
+ }), ft(e);
3771
3771
  }
3772
3772
  },
3773
3773
  methods: {
3774
- onSelected: function(e) {
3774
+ getJumpPath: function(e) {
3775
+ let t = e;
3776
+ if (e.meta.menuType === 1 && e.children.length > 0) {
3777
+ for (let l = 0; l < e.children.length; l++)
3778
+ if (e.children[l].path.indexOf("/:") === -1) {
3779
+ t = e.children[l];
3780
+ break;
3781
+ }
3782
+ }
3783
+ return this.$router.resolve(t.redirect ? t.redirect : t).fullPath;
3784
+ },
3785
+ onselected: function(e) {
3775
3786
  this.$router.push(e), this.selected = "";
3776
3787
  }
3777
3788
  }
3778
3789
  };
3779
3790
  function Lo(e, t, l, n, o, a) {
3780
- const s = Te, c = yl, p = Oe;
3781
- return i(), f(p, {
3791
+ const s = Te, c = yl, u = Oe;
3792
+ return i(), f(u, {
3782
3793
  modelValue: o.selected,
3783
3794
  "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
3784
3795
  filterable: "",
3785
3796
  placeholder: "搜索菜单...",
3786
3797
  class: "search-menu",
3787
- onChange: a.onSelected
3798
+ onChange: a.onselected
3788
3799
  }, {
3789
3800
  default: r(() => [
3790
3801
  (i(!0), h(S, null, B(a.filterRoutes, (d) => (i(), h(S, {
@@ -3802,7 +3813,7 @@ function Lo(e, t, l, n, o, a) {
3802
3813
  d.meta.menuType !== 0 ? (i(), f(s, {
3803
3814
  key: 0,
3804
3815
  label: (_ === d.children.length - 1 ? "└─" : "├─") + m.meta.title,
3805
- value: m.path
3816
+ value: a.getJumpPath(m)
3806
3817
  }, null, 8, ["label", "value"])) : x("", !0)
3807
3818
  ], 64))), 128))
3808
3819
  ]),
@@ -3811,17 +3822,17 @@ function Lo(e, t, l, n, o, a) {
3811
3822
  ], 64)) : (i(), f(s, {
3812
3823
  key: 1,
3813
3824
  label: "" + d.meta.title,
3814
- value: d.path
3825
+ value: a.getJumpPath(d)
3815
3826
  }, null, 8, ["label", "value"]))
3816
3827
  ], 64))), 128))
3817
3828
  ]),
3818
3829
  _: 1
3819
3830
  }, 8, ["modelValue", "onChange"]);
3820
3831
  }
3821
- const Mo = /* @__PURE__ */ $(Po, [["render", Lo], ["__scopeId", "data-v-e8e61700"]]);
3822
- var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), P = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(P || {});
3832
+ const Mo = /* @__PURE__ */ $(Ro, [["render", Lo], ["__scopeId", "data-v-7a867c34"]]);
3833
+ var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), R = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(R || {});
3823
3834
  const Do = q({
3824
- components: { SidebarItem: Ro, Logo: So, SearchMenu: Mo },
3835
+ components: { SidebarItem: Po, Logo: So, SearchMenu: Mo },
3825
3836
  computed: {
3826
3837
  ...Ce(["sidebar", "remoteRouter", "customRouter"]),
3827
3838
  routes() {
@@ -3840,7 +3851,7 @@ const Do = q({
3840
3851
  const e = this.$route.matched;
3841
3852
  for (let t = e.length - 1; t >= 0; t--) {
3842
3853
  const l = e[t];
3843
- if (l.meta.menuType === P.menu)
3854
+ if (l.meta.menuType === R.menu)
3844
3855
  return this.showActive(), this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
3845
3856
  }
3846
3857
  return "";
@@ -3864,17 +3875,15 @@ const Do = q({
3864
3875
  },
3865
3876
  methods: {
3866
3877
  showActive() {
3867
- setTimeout(() => {
3868
- document.getElementsByClassName("is-active")[0].scrollIntoView();
3869
- }, 200);
3878
+ Xe("is-active", 200);
3870
3879
  },
3871
3880
  filterRoute(e) {
3872
- return e.filter((t) => [P.dir, P.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3881
+ return e.filter((t) => [R.dir, R.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3873
3882
  }
3874
3883
  }
3875
3884
  });
3876
3885
  function jo(e, t, l, n, o, a) {
3877
- const s = v("logo"), c = v("search-menu"), p = v("sidebar-item"), d = vl, m = gl;
3886
+ const s = v("logo"), c = v("search-menu"), u = v("sidebar-item"), d = vl, m = gl;
3878
3887
  return i(), h("div", {
3879
3888
  class: H({ "has-logo": e.showLogo })
3880
3889
  }, [
@@ -3882,10 +3891,10 @@ function jo(e, t, l, n, o, a) {
3882
3891
  key: 0,
3883
3892
  collapse: e.isCollapse
3884
3893
  }, null, 8, ["collapse"])) : x("", !0),
3885
- u(m, { "wrap-class": "scrollbar-wrapper" }, {
3894
+ p(m, { "wrap-class": "scrollbar-wrapper" }, {
3886
3895
  default: r(() => [
3887
3896
  e.isCollapse ? x("", !0) : (i(), f(c, { key: 0 })),
3888
- u(d, {
3897
+ p(d, {
3889
3898
  "default-active": e.activeMenu,
3890
3899
  collapse: e.isCollapse,
3891
3900
  "background-color": e.variables.menuBg,
@@ -3899,7 +3908,7 @@ function jo(e, t, l, n, o, a) {
3899
3908
  (i(!0), h(S, null, B(e.routes, (_, T) => (i(), h(S, {
3900
3909
  key: T + "-module"
3901
3910
  }, [
3902
- (i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(p, {
3911
+ (i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(u, {
3903
3912
  key: w.path,
3904
3913
  item: w,
3905
3914
  to: e.$router.resolve(w.redirect ? w.redirect : w).fullPath
@@ -3913,11 +3922,11 @@ function jo(e, t, l, n, o, a) {
3913
3922
  })
3914
3923
  ], 2);
3915
3924
  }
3916
- const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-0383ed05"]]);
3925
+ const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
3917
3926
  const Vo = { class: "app-main" }, qo = {
3918
3927
  __name: "AppMain",
3919
3928
  setup(e) {
3920
- const t = pe(), l = [], n = L(0);
3929
+ const t = ue(), l = [], n = L(0);
3921
3930
  return nl(() => {
3922
3931
  var o;
3923
3932
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
@@ -3927,7 +3936,7 @@ const Vo = { class: "app-main" }, qo = {
3927
3936
  (i(), f(s, {
3928
3937
  key: o.$route.fullPath + k(n)
3929
3938
  })),
3930
- u(c, { bottom: 50 })
3939
+ p(c, { bottom: 50 })
3931
3940
  ]);
3932
3941
  };
3933
3942
  }
@@ -3935,14 +3944,14 @@ const Vo = { class: "app-main" }, qo = {
3935
3944
  const Ho = { class: "main-container" }, Fo = 992, Go = {
3936
3945
  __name: "index",
3937
3946
  setup(e) {
3938
- const t = tt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3947
+ const t = lt(), { body: l } = document, n = j(() => t.state.app.sidebar), o = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3939
3948
  hideSidebar: !n.value.opened,
3940
3949
  openSidebar: n.value.opened,
3941
3950
  withoutAnimation: n.value.withoutAnimation,
3942
3951
  mobile: o.value === "mobile"
3943
3952
  })), c = () => l.getBoundingClientRect().width - 1 < Fo;
3944
3953
  Tl(window, "resize", () => d());
3945
- const p = () => {
3954
+ const u = () => {
3946
3955
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3947
3956
  }, d = () => {
3948
3957
  if (!document.hidden) {
@@ -3956,20 +3965,20 @@ const Ho = { class: "main-container" }, Fo = 992, Go = {
3956
3965
  k(o) === "mobile" && k(n).opened ? (i(), h("div", {
3957
3966
  key: 0,
3958
3967
  class: "drawer-bg",
3959
- onClick: p
3968
+ onClick: u
3960
3969
  })) : x("", !0),
3961
- u(k(No), { class: "sidebar-container" }),
3970
+ p(k(No), { class: "sidebar-container" }),
3962
3971
  b("div", Ho, [
3963
3972
  b("div", {
3964
3973
  class: H({ "fixed-header": k(a) })
3965
3974
  }, [
3966
- u(k(fo))
3975
+ p(k(fo))
3967
3976
  ], 2),
3968
- u(k(Uo))
3977
+ p(k(Uo))
3969
3978
  ])
3970
3979
  ], 2));
3971
3980
  }
3972
- }, ft = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
3981
+ }, ht = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
3973
3982
  class Jo {
3974
3983
  constructor() {
3975
3984
  M(this, "type", "qrcode");
@@ -4037,12 +4046,12 @@ function Zo(e) {
4037
4046
  const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Yo = { id: "form" }, ea = { class: "captcha" }, ta = ["src"], la = { class: "tips" }, na = { class: "sso" }, oa = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), aa = /* @__PURE__ */ q({
4038
4047
  __name: "login",
4039
4048
  setup(e) {
4040
- const t = ol(), l = pe(), n = j(() => E.state.settings.loginTips), o = L(0), a = () => o.value++, s = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
4049
+ const t = ol(), l = ue(), n = j(() => E.state.settings.loginTips), o = L(0), a = () => o.value++, s = j(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
4041
4050
  username: "",
4042
4051
  password: "",
4043
4052
  captcha: "",
4044
4053
  sing: ""
4045
- }), p = () => {
4054
+ }), u = () => {
4046
4055
  if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
4047
4056
  wl.error("用户名, 密码, 验证码是必须的");
4048
4057
  return;
@@ -4089,7 +4098,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
4089
4098
  ]),
4090
4099
  b("div", {
4091
4100
  class: H({ input: !0, button: !0, "no-ready": !s.value }),
4092
- onClick: p
4101
+ onClick: u
4093
4102
  }, "登录", 2),
4094
4103
  b("div", la, [
4095
4104
  b("div", null, O(n.value), 1)
@@ -4104,7 +4113,7 @@ const Qo = { id: "login" }, Xo = /* @__PURE__ */ b("h1", { id: "title" }, "登
4104
4113
  });
4105
4114
  const sa = {
4106
4115
  name: "NotFoundPage"
4107
- }, ht = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ ht(() => /* @__PURE__ */ b("svg", {
4116
+ }, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), ia = { class: "not-found" }, ra = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
4108
4117
  width: "380px",
4109
4118
  height: "500px",
4110
4119
  viewBox: "0 0 837 1045",
@@ -4157,7 +4166,7 @@ const sa = {
4157
4166
  "sketch:type": "MSShapeGroup"
4158
4167
  })
4159
4168
  ])
4160
- ], -1)), ca = /* @__PURE__ */ ht(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4169
+ ], -1)), ca = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4161
4170
  /* @__PURE__ */ b("h1", null, "404"),
4162
4171
  /* @__PURE__ */ b("p", null, "Page not found"),
4163
4172
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4168,17 +4177,17 @@ const sa = {
4168
4177
  }, "Go to Home Page")
4169
4178
  ])
4170
4179
  ])
4171
- ], -1)), ua = [
4180
+ ], -1)), pa = [
4172
4181
  ra,
4173
4182
  ca
4174
4183
  ];
4175
- function pa(e, t, l, n, o, a) {
4176
- return i(), h("div", ia, ua);
4184
+ function ua(e, t, l, n, o, a) {
4185
+ return i(), h("div", ia, pa);
4177
4186
  }
4178
- const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803"]]), ma = [
4187
+ const da = /* @__PURE__ */ $(sa, [["render", ua], ["__scopeId", "data-v-26068803"]]), ma = [
4179
4188
  {
4180
4189
  path: "/",
4181
- component: ft,
4190
+ component: ht,
4182
4191
  redirect: "/dashboard",
4183
4192
  name: "Root",
4184
4193
  meta: {
@@ -4205,7 +4214,7 @@ const da = /* @__PURE__ */ $(sa, [["render", pa], ["__scopeId", "data-v-26068803
4205
4214
  meta: { menuType: 0 },
4206
4215
  hidden: !0
4207
4216
  }
4208
- ], z = al({
4217
+ ], K = al({
4209
4218
  history: sl(),
4210
4219
  routes: ma
4211
4220
  });
@@ -4223,7 +4232,7 @@ function fa(e) {
4223
4232
  function ha() {
4224
4233
  return E.state.user.isLodeRemoteRoutes;
4225
4234
  }
4226
- function bt() {
4235
+ function _t() {
4227
4236
  return E.state.settings.whiteRoutes || [];
4228
4237
  }
4229
4238
  function ba() {
@@ -4231,13 +4240,13 @@ function ba() {
4231
4240
  }
4232
4241
  function _a(e) {
4233
4242
  e.beforeEach(async (t, l, n) => {
4234
- var p, d;
4235
- if (bt().indexOf(t.path) !== -1) {
4243
+ var u, d;
4244
+ if (_t().indexOf(t.path) !== -1) {
4236
4245
  n();
4237
4246
  return;
4238
4247
  }
4239
4248
  if (ba()) {
4240
- (p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4249
+ (u = t.query) != null && u.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4241
4250
  return;
4242
4251
  }
4243
4252
  const a = t.query.redirect || t.path, s = Zo({});
@@ -4259,7 +4268,7 @@ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ b("div"
4259
4268
  function wa(e, t) {
4260
4269
  return i(), h("div", va, ka);
4261
4270
  }
4262
- const _t = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
4271
+ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
4263
4272
  name: "VNotice",
4264
4273
  props: {
4265
4274
  dataApi: {
@@ -4274,31 +4283,28 @@ const _t = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
4274
4283
  },
4275
4284
  data() {
4276
4285
  return {
4277
- title: "",
4286
+ noticeProps: {},
4278
4287
  hasNotice: !1
4279
4288
  };
4280
4289
  },
4281
- beforeCreate() {
4282
- if (this.$props.dataApi) {
4290
+ mounted() {
4291
+ if (console.log("dataApi", !!this.$props.dataApi), this.$props.dataApi) {
4283
4292
  this.$http.get(this.$props.dataApi).then(({ data: e }) => {
4284
- this.title = e.title, this.hasNotice = !!e.title;
4293
+ this.noticeProps = e, this.hasNotice = !!e;
4285
4294
  });
4286
4295
  return;
4287
4296
  } else
4288
- this.title = this.notice.title;
4297
+ this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4289
4298
  }
4290
4299
  };
4291
4300
  function xa(e, t, l, n, o, a) {
4292
4301
  const s = Be;
4293
4302
  return i(), h("div", null, [
4294
- o.hasNotice ? (i(), f(s, {
4295
- key: 0,
4296
- title: o.title
4297
- }, null, 8, ["title"])) : x("", !0)
4303
+ o.hasNotice ? (i(), f(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : x("", !0)
4298
4304
  ]);
4299
4305
  }
4300
- const yt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
4301
- components: { VLoading: _t, VNotice: yt },
4306
+ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
4307
+ components: { VLoading: yt, VNotice: vt },
4302
4308
  props: {
4303
4309
  schemaHandler: {
4304
4310
  type: Function,
@@ -4341,7 +4347,7 @@ const yt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
4341
4347
  });
4342
4348
  const $a = ["innerHTML"];
4343
4349
  function Ia(e, t, l, n, o, a) {
4344
- const s = Be, c = yt, p = _t;
4350
+ const s = Be, c = vt, u = yt;
4345
4351
  return i(), h(S, null, [
4346
4352
  e.owners.length > 0 ? (i(), f(s, {
4347
4353
  key: 0,
@@ -4361,11 +4367,11 @@ function Ia(e, t, l, n, o, a) {
4361
4367
  style: { margin: "0 0 20px 0" },
4362
4368
  "data-api": e.noticeApi
4363
4369
  }, null, 8, ["notice", "data-api"])) : x("", !0),
4364
- e.loading ? (i(), f(p, { key: 1 })) : le(e.$slots, "default", W(G({ key: 2 }, e.schema)), void 0, !0)
4370
+ e.loading ? (i(), f(u, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4365
4371
  ], 64))
4366
4372
  ], 64);
4367
4373
  }
4368
- const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8"]]), vt = {
4374
+ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), gt = {
4369
4375
  __name: "table",
4370
4376
  setup(e) {
4371
4377
  const t = (l, n) => {
@@ -4383,7 +4389,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4383
4389
  };
4384
4390
  return (l, n) => (i(), f(se, { "schema-handler": t }, {
4385
4391
  default: r((o) => [
4386
- u(k(oe), W(Y(o)), null, 16)
4392
+ p(k(oe), G(Y(o)), null, 16)
4387
4393
  ]),
4388
4394
  _: 1
4389
4395
  }));
@@ -4391,8 +4397,8 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4391
4397
  }, xe = {
4392
4398
  __name: "form",
4393
4399
  setup(e) {
4394
- const t = pe(), l = (n, o) => {
4395
- const a = Object.keys(J.props);
4400
+ const t = ue(), l = (n, o) => {
4401
+ const a = Object.keys(z.props);
4396
4402
  return Object.keys(n).forEach((s) => {
4397
4403
  if (a.indexOf(s) === -1) {
4398
4404
  delete n[s];
@@ -4408,7 +4414,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4408
4414
  };
4409
4415
  return (n, o) => (i(), f(se, { "schema-handler": l }, {
4410
4416
  default: r((a) => [
4411
- u(k(J), W(Y(a)), null, 16)
4417
+ p(k(z), G(Y(a)), null, 16)
4412
4418
  ]),
4413
4419
  _: 1
4414
4420
  }));
@@ -4416,7 +4422,7 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4416
4422
  }, Ca = q({
4417
4423
  name: "VTree",
4418
4424
  components: {
4419
- VForm: J
4425
+ VForm: z
4420
4426
  },
4421
4427
  props: {
4422
4428
  treeApi: {
@@ -4556,27 +4562,27 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-015774e8
4556
4562
  }
4557
4563
  }
4558
4564
  });
4559
- const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Ra = {
4565
+ const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
4560
4566
  key: 1,
4561
4567
  style: { color: "#E6A23C" }
4562
- }, Pa = { class: "card-header" };
4568
+ }, Ra = { class: "card-header" };
4563
4569
  function La(e, t, l, n, o, a) {
4564
- const s = ue, c = Sl, p = Ae, d = de, m = v("v-form"), _ = ae;
4570
+ const s = pe, c = Sl, u = Ae, d = de, m = v("v-form"), _ = ae;
4565
4571
  return i(), f(_, {
4566
4572
  class: "tree-box",
4567
4573
  gutter: 20
4568
4574
  }, {
4569
4575
  default: r(() => [
4570
- u(d, {
4576
+ p(d, {
4571
4577
  span: 8,
4572
4578
  class: "tree-tree"
4573
4579
  }, {
4574
4580
  default: r(() => [
4575
- u(p, { shadow: "never" }, {
4581
+ p(u, { shadow: "never" }, {
4576
4582
  header: r(() => [
4577
4583
  b("div", Ta, [
4578
4584
  Oa,
4579
- u(s, {
4585
+ p(s, {
4580
4586
  type: "text",
4581
4587
  onClick: t[0] || (t[0] = () => e.appendNew())
4582
4588
  }, {
@@ -4588,7 +4594,7 @@ function La(e, t, l, n, o, a) {
4588
4594
  ])
4589
4595
  ]),
4590
4596
  default: r(() => [
4591
- (e.treeData || []).length > 0 ? (i(), f(c, G({
4597
+ (e.treeData || []).length > 0 ? (i(), f(c, F({
4592
4598
  key: 0,
4593
4599
  style: { height: "100vh" },
4594
4600
  data: e.treeData,
@@ -4601,7 +4607,7 @@ function La(e, t, l, n, o, a) {
4601
4607
  }), {
4602
4608
  default: r(({ node: T, data: w }) => [
4603
4609
  b("span", Ba, [
4604
- w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ra, "请在右侧表单中修改 --> ")),
4610
+ w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
4605
4611
  b("span", null, [
4606
4612
  w[e.localTreeProps.props.label] ? (i(), f(s, {
4607
4613
  key: 0,
@@ -4647,22 +4653,22 @@ function La(e, t, l, n, o, a) {
4647
4653
  ]),
4648
4654
  _: 1
4649
4655
  }),
4650
- u(d, {
4656
+ p(d, {
4651
4657
  span: 16,
4652
4658
  class: "tree-form"
4653
4659
  }, {
4654
4660
  default: r(() => [
4655
- e.type ? (i(), f(p, {
4661
+ e.type ? (i(), f(u, {
4656
4662
  key: 0,
4657
4663
  shadow: "never"
4658
4664
  }, {
4659
4665
  header: r(() => [
4660
- b("div", Pa, [
4666
+ b("div", Ra, [
4661
4667
  b("span", null, O(e.formType), 1)
4662
4668
  ])
4663
4669
  ]),
4664
4670
  default: r(() => [
4665
- (i(), f(m, G({
4671
+ (i(), f(m, F({
4666
4672
  key: e.formkey,
4667
4673
  modelValue: e.formData,
4668
4674
  "onUpdate:modelValue": t[1] || (t[1] = (T) => e.formData = T)
@@ -4688,7 +4694,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
4688
4694
  };
4689
4695
  return (l, n) => (i(), f(se, { "schema-handler": t }, {
4690
4696
  default: r((o) => [
4691
- u(Fe, W(Y(o)), null, 16)
4697
+ p(Fe, G(Y(o)), null, 16)
4692
4698
  ]),
4693
4699
  _: 1
4694
4700
  }));
@@ -4739,10 +4745,10 @@ function ja(e, t, l) {
4739
4745
  let n = A({}, Da);
4740
4746
  if (n.title.text = e, $e(t)) {
4741
4747
  const o = [], a = Object.keys(l[0]);
4742
- let s = a[0], c = a.filter((d, m) => m > 0), p = t;
4748
+ let s = a[0], c = a.filter((d, m) => m > 0), u = t;
4743
4749
  if (t.indexOf(":") > -1) {
4744
4750
  const d = t.split(":"), m = d[1].split(",");
4745
- p = d[0], s = m[0], c = m.filter((_, T) => T > 0);
4751
+ u = d[0], s = m[0], c = m.filter((_, T) => T > 0);
4746
4752
  }
4747
4753
  c.forEach((d) => {
4748
4754
  const m = [];
@@ -4750,7 +4756,7 @@ function ja(e, t, l) {
4750
4756
  m.push(_[d]);
4751
4757
  }), n.series.push({
4752
4758
  name: d,
4753
- type: p,
4759
+ type: u,
4754
4760
  smooth: !0,
4755
4761
  data: m
4756
4762
  }), n.legend.data.push(d);
@@ -4775,12 +4781,12 @@ const Na = q({
4775
4781
  function Ha(e, t, l, n, o, a) {
4776
4782
  return i(!0), h(S, null, B(e.dataList, (s, c) => (i(), h("span", { key: c }, [
4777
4783
  b("div", Va, [
4778
- (i(!0), h(S, null, B(Object.keys(s), (p, d) => (i(), h("div", {
4784
+ (i(!0), h(S, null, B(Object.keys(s), (u, d) => (i(), h("div", {
4779
4785
  key: d,
4780
4786
  class: "title-inner"
4781
4787
  }, [
4782
- b("p", qa, O(s[p]), 1),
4783
- b("p", Ua, O(p), 1)
4788
+ b("p", qa, O(s[u]), 1),
4789
+ b("p", Ua, O(u), 1)
4784
4790
  ]))), 128))
4785
4791
  ])
4786
4792
  ]))), 128);
@@ -4789,7 +4795,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4789
4795
  components: {
4790
4796
  Chart: El,
4791
4797
  Md: Ol,
4792
- Json: Pe,
4798
+ Json: Re,
4793
4799
  Table: oe,
4794
4800
  Number: Fa,
4795
4801
  Html: ""
@@ -4819,7 +4825,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4819
4825
  source: n.data
4820
4826
  };
4821
4827
  if (o === "table") {
4822
- if (!Xe(n.data))
4828
+ if (!Ye(n.data))
4823
4829
  return { showPagination: !1 };
4824
4830
  const a = [];
4825
4831
  return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
@@ -4837,13 +4843,13 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4837
4843
  }
4838
4844
  };
4839
4845
  function Ja(e, t, l, n, o, a) {
4840
- const s = Ae, c = At("resize");
4846
+ const s = Ae, c = Pt("resize");
4841
4847
  return ie((i(), f(s, {
4842
4848
  shadow: "never",
4843
4849
  class: "part"
4844
4850
  }, {
4845
4851
  default: r(() => [
4846
- (i(), f(Ze(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
4852
+ (i(), f(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
4847
4853
  ]),
4848
4854
  _: 1
4849
4855
  })), [
@@ -4883,7 +4889,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4883
4889
  cancelButton: {
4884
4890
  text: "重置"
4885
4891
  }
4886
- }, a = L(1), s = L(t.filter), c = L(t.dataPart), p = j(() => {
4892
+ }, a = L(1), s = L(t.filter), c = L(t.dataPart), u = j(() => {
4887
4893
  let m = l.params.id;
4888
4894
  if (!m) {
4889
4895
  const _ = l.path.split("/");
@@ -4891,12 +4897,12 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4891
4897
  }
4892
4898
  return "/focusbi_report/view/" + m;
4893
4899
  }), d = (m) => {
4894
- ms.get(p.value, { params: m }).then(({ data: _ }) => {
4900
+ ms.get(u.value, { params: m }).then(({ data: _ }) => {
4895
4901
  s.value = _.filter, c.value = _.dataPart, a.value++;
4896
4902
  });
4897
4903
  };
4898
4904
  return (m, _) => {
4899
- const T = Ae, w = de, F = Be, U = ae;
4905
+ const T = Ae, w = de, J = Be, U = ae;
4900
4906
  return i(), f(U, null, {
4901
4907
  default: r(() => [
4902
4908
  k(s).length > 0 ? (i(), f(w, {
@@ -4904,14 +4910,14 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4904
4910
  span: 24
4905
4911
  }, {
4906
4912
  default: r(() => [
4907
- u(T, {
4913
+ p(T, {
4908
4914
  shadow: "never",
4909
4915
  class: "part-filter"
4910
4916
  }, {
4911
4917
  default: r(() => [
4912
- u(k(J), {
4918
+ p(k(z), {
4913
4919
  modelValue: k(n),
4914
- "onUpdate:modelValue": _[0] || (_[0] = (C) => Pt(n) ? n.value = C : null),
4920
+ "onUpdate:modelValue": _[0] || (_[0] = (C) => Lt(n) ? n.value = C : null),
4915
4921
  "form-items": k(s),
4916
4922
  options: o,
4917
4923
  onSubmit: d
@@ -4922,16 +4928,16 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4922
4928
  ]),
4923
4929
  _: 1
4924
4930
  })) : x("", !0),
4925
- u(w, { span: 24 }, {
4931
+ p(w, { span: 24 }, {
4926
4932
  default: r(() => [
4927
- u(U, { gutter: 20 }, {
4933
+ p(U, { gutter: 20 }, {
4928
4934
  default: r(() => [
4929
4935
  (i(!0), h(S, null, B(k(c), (C, Z) => (i(), f(w, {
4930
4936
  key: Z,
4931
4937
  span: C.col || 24
4932
4938
  }, {
4933
4939
  default: r(() => [
4934
- C.errMsg ? (i(), f(F, {
4940
+ C.errMsg ? (i(), f(J, {
4935
4941
  key: 1,
4936
4942
  title: C.id + " 片段执行出错",
4937
4943
  type: "error"
@@ -4972,15 +4978,15 @@ const Wa = {
4972
4978
  });
4973
4979
  return (n, o) => (i(), f(se, { "schema-api": k(l) }, {
4974
4980
  default: r((a) => [
4975
- u(Ka, W(Y(a)), null, 16)
4981
+ p(Ka, G(Y(a)), null, 16)
4976
4982
  ]),
4977
4983
  _: 1
4978
4984
  }, 8, ["schema-api"]));
4979
4985
  }
4980
4986
  };
4981
- const Za = (e) => u("div", null, [e.test]), Qa = {
4987
+ const Za = (e) => p("div", null, [e.test]), Qa = {
4982
4988
  card: el,
4983
- form: J,
4989
+ form: z,
4984
4990
  table: oe,
4985
4991
  test: Za,
4986
4992
  row: tl,
@@ -5033,11 +5039,11 @@ function je(e) {
5033
5039
  var s, c;
5034
5040
  let n = Object.assign({}, l);
5035
5041
  if (X((s = n.props) == null ? void 0 : s.style)) {
5036
- let p = "";
5042
+ let u = "";
5037
5043
  Object.keys((c = n.props) == null ? void 0 : c.style).forEach((d) => {
5038
5044
  var m;
5039
- p += d + ":" + ((m = n.props) == null ? void 0 : m.style[d]) + ";";
5040
- }), n.props.style = p;
5045
+ u += d + ":" + ((m = n.props) == null ? void 0 : m.style[d]) + ";";
5046
+ }), n.props.style = u;
5041
5047
  }
5042
5048
  const o = {
5043
5049
  span: n.span ?? 24,
@@ -5054,7 +5060,7 @@ function je(e) {
5054
5060
  n = A({
5055
5061
  props: {}
5056
5062
  }, Xa[n.type] || {}, n);
5057
- const a = gt(n.children);
5063
+ const a = kt(n.children);
5058
5064
  a.length && (n.children = je(a)), t.children.push({
5059
5065
  type: "col",
5060
5066
  props: o,
@@ -5062,22 +5068,22 @@ function je(e) {
5062
5068
  });
5063
5069
  }), [t];
5064
5070
  }
5065
- function gt(e) {
5066
- return Xe(e) ? e : X(e) ? [e] : [];
5071
+ function kt(e) {
5072
+ return Ye(e) ? e : X(e) ? [e] : [];
5067
5073
  }
5068
5074
  let Ee = {};
5069
- const kt = (e) => {
5075
+ const wt = (e) => {
5070
5076
  const t = Qa[e.type] || Ee[e.type] || e.type;
5071
- return Mt(t, e.props, {
5072
- default: () => gt(e.children).map((l) => kt(l))
5077
+ return Dt(t, e.props, {
5078
+ default: () => kt(e.children).map((l) => wt(l))
5073
5079
  });
5074
- }, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Lt().appContext.components), je(Object.values(e.schema)).map((l) => kt(l))), ts = {
5080
+ }, es = (e) => (Object.keys(Ee).length === 0 && (Ee = Mt().appContext.components), je(Object.values(e.schema)).map((l) => wt(l))), ts = {
5075
5081
  __name: "custom",
5076
5082
  setup(e) {
5077
- const t = L([]), l = (n, o) => (t.value = Dt(n), n);
5083
+ const t = L([]), l = (n, o) => (t.value = jt(n), n);
5078
5084
  return (n, o) => (i(), f(se, { "schema-handler": l }, {
5079
5085
  default: r(() => [
5080
- u(k(es), { schema: k(t) }, null, 8, ["schema"])
5086
+ p(k(es), { schema: k(t) }, null, 8, ["schema"])
5081
5087
  ]),
5082
5088
  _: 1
5083
5089
  }));
@@ -5096,7 +5102,7 @@ const ls = (e) => {
5096
5102
  return ge;
5097
5103
  switch (e.page_type) {
5098
5104
  case D.list:
5099
- return vt;
5105
+ return gt;
5100
5106
  case D.form:
5101
5107
  return xe;
5102
5108
  case D.custom:
@@ -5113,13 +5119,13 @@ const ls = (e) => {
5113
5119
  };
5114
5120
  function ns(e) {
5115
5121
  let t = e.path;
5116
- return e.type === P.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5122
+ return e.type === R.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5117
5123
  }
5118
5124
  function os(e) {
5119
5125
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5120
5126
  }
5121
- const wt = (e) => {
5122
- const t = e.type !== P.page, l = {
5127
+ const St = (e) => {
5128
+ const t = e.type !== R.page, l = {
5123
5129
  path: ns(e),
5124
5130
  name: e.id + "_" + os(e) + "_" + e.path.replaceAll("/", "_"),
5125
5131
  component: ls(e),
@@ -5133,18 +5139,18 @@ const wt = (e) => {
5133
5139
  menuType: e.type,
5134
5140
  keepAlive: !1
5135
5141
  },
5136
- children: e.children ? e.children.map((n) => wt(n)) : []
5142
+ children: e.children ? e.children.map((n) => St(n)) : []
5137
5143
  };
5138
5144
  if (e.page_type === D.entity) {
5139
5145
  const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5140
5146
  path: n,
5141
5147
  name: e.name + "列表" + e.id,
5142
- component: vt,
5148
+ component: gt,
5143
5149
  meta: {
5144
5150
  id: e.id + 99999,
5145
5151
  title: "列表",
5146
5152
  hidden: !0,
5147
- menuType: P.hidden,
5153
+ menuType: R.hidden,
5148
5154
  keepAlive: !1,
5149
5155
  pageId: e.id,
5150
5156
  path: e.path
@@ -5157,7 +5163,7 @@ const wt = (e) => {
5157
5163
  id: e.id + 99999 + 1,
5158
5164
  title: "新建",
5159
5165
  hidden: !0,
5160
- menuType: P.hidden,
5166
+ menuType: R.hidden,
5161
5167
  keepAlive: !1,
5162
5168
  pageId: e.id,
5163
5169
  path: e.path
@@ -5170,7 +5176,7 @@ const wt = (e) => {
5170
5176
  id: e.id + 99999 + 2,
5171
5177
  title: "编辑",
5172
5178
  hidden: !0,
5173
- menuType: P.hidden,
5179
+ menuType: R.hidden,
5174
5180
  keepAlive: !1,
5175
5181
  pageId: e.id,
5176
5182
  path: e.path
@@ -5182,8 +5188,8 @@ const wt = (e) => {
5182
5188
  let n = !0;
5183
5189
  if (l.children.forEach((o) => {
5184
5190
  o.meta && !o.meta.hidden && (n = !1);
5185
- }), l.meta && (l.meta.menuType = t ? P.dir : P.hidden), n) {
5186
- l.meta && (l.meta.menuType = P.menu);
5191
+ }), l.meta && (l.meta.menuType = t ? R.dir : R.hidden), n) {
5192
+ l.meta && (l.meta.menuType = R.menu);
5187
5193
  let o = "/";
5188
5194
  for (let a = 0; a < l.children.length; a++)
5189
5195
  if (l.children[a].path.indexOf("/:") === -1) {
@@ -5203,13 +5209,13 @@ const wt = (e) => {
5203
5209
  routes: []
5204
5210
  };
5205
5211
  l.routes.forEach((o) => {
5206
- n.routes.push(wt(o));
5212
+ n.routes.push(St(o));
5207
5213
  }), t.push(n);
5208
5214
  }), t;
5209
5215
  };
5210
5216
  function ss(e) {
5211
5217
  e.beforeEach(async (t, l, n) => {
5212
- if (bt().indexOf(t.path) !== -1) {
5218
+ if (_t().indexOf(t.path) !== -1) {
5213
5219
  n();
5214
5220
  return;
5215
5221
  }
@@ -5223,7 +5229,7 @@ function ss(e) {
5223
5229
  s.routes.forEach((c) => {
5224
5230
  e.addRoute({
5225
5231
  path: "/",
5226
- component: ft,
5232
+ component: ht,
5227
5233
  children: [c]
5228
5234
  });
5229
5235
  });
@@ -5234,8 +5240,8 @@ function is(e) {
5234
5240
  e.beforeEach(async (t, l, n) => {
5235
5241
  var c;
5236
5242
  const a = [E.state.settings.title || ""], s = t.matched.length;
5237
- for (let p = s; p > s - 3; p--) {
5238
- const d = t.matched[p - 1];
5243
+ for (let u = s; u > s - 3; u--) {
5244
+ const d = t.matched[u - 1];
5239
5245
  (c = d == null ? void 0 : d.meta) != null && c.title && a.push(d.meta.title + "");
5240
5246
  }
5241
5247
  a.length > 1 && (document.title = a.reverse().join("-")), n();
@@ -5246,7 +5252,7 @@ function is(e) {
5246
5252
  function rs(e) {
5247
5253
  _a(e), fa(e), ss(e), is(e);
5248
5254
  }
5249
- rs(z);
5255
+ rs(K);
5250
5256
  function cs() {
5251
5257
  return E.state.user.token;
5252
5258
  }
@@ -5258,16 +5264,16 @@ function Ge(e) {
5258
5264
  grouping: !0
5259
5265
  });
5260
5266
  }
5261
- const us = {
5267
+ const ps = {
5262
5268
  onFulfilled: function(e) {
5263
5269
  var l;
5264
5270
  e.headers = e.headers || {};
5265
5271
  const t = cs();
5266
- return t && (e.headers["X-Token"] = t), (l = z.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = z.currentRoute.value.meta.path), e;
5272
+ return t && (e.headers["X-Token"] = t), (l = K.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = K.currentRoute.value.meta.path), e;
5267
5273
  }
5268
- }, ps = {
5274
+ }, us = {
5269
5275
  onFulfilled(e) {
5270
- var n, o, a, s, c, p, d;
5276
+ var n, o, a, s, c, u, d;
5271
5277
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
5272
5278
  const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5273
5279
  if (e.data.code === 401) {
@@ -5277,7 +5283,7 @@ const us = {
5277
5283
  showCancelButton: !0,
5278
5284
  cancelButtonText: "取消",
5279
5285
  callback: (_) => {
5280
- _ === "confirm" && (ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5286
+ _ === "confirm" && (pt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5281
5287
  }
5282
5288
  });
5283
5289
  return;
@@ -5287,7 +5293,7 @@ const us = {
5287
5293
  }
5288
5294
  let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
5289
5295
  return l !== void 0 && ($e(l) && (l = {
5290
- message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
5296
+ message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
5291
5297
  }), Ue({
5292
5298
  title: "提示",
5293
5299
  type: "success",
@@ -5305,8 +5311,8 @@ const us = {
5305
5311
  response: tn
5306
5312
  },
5307
5313
  {
5308
- request: us,
5309
- response: ps
5314
+ request: ps,
5315
+ response: us
5310
5316
  }
5311
5317
  ];
5312
5318
  function Ne(e = {}) {
@@ -5328,10 +5334,10 @@ const fs = {
5328
5334
  unmounted(e) {
5329
5335
  document.body.removeEventListener("click", e.clickOutsideEvent);
5330
5336
  }
5331
- }, K = Cl(), hs = {
5337
+ }, W = Cl(), hs = {
5332
5338
  mounted: (e, t) => {
5333
5339
  e !== null && (t.value, e.oncontextmenu = (l) => {
5334
- l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && K.emit("right-click", { event: l, data: t.value });
5340
+ l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
5335
5341
  });
5336
5342
  }
5337
5343
  }, bs = {
@@ -5350,7 +5356,7 @@ const _s = {
5350
5356
  return;
5351
5357
  let l = e;
5352
5358
  if (t.value.parent)
5353
- for (let p = 0; p < t.value.parent; p++)
5359
+ for (let u = 0; u < t.value.parent; u++)
5354
5360
  l.parentElement && (l = l.parentElement);
5355
5361
  l.classList.add("devtool-hover");
5356
5362
  const n = document.createElement("i");
@@ -5360,14 +5366,14 @@ const _s = {
5360
5366
  const o = document.createElement("span");
5361
5367
  o.className = "dev-action-edit", o.title = "编辑";
5362
5368
  const a = document.createElement("i");
5363
- a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (p) => {
5364
- K.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
5369
+ a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (u) => {
5370
+ W.emit("dev-action", { event: u, data: { type: "edit", devId: t.value.devId } });
5365
5371
  }, n.appendChild(o);
5366
5372
  const s = document.createElement("span");
5367
5373
  s.className = "dev-action-del", s.title = "删除";
5368
5374
  const c = document.createElement("i");
5369
- c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (p) => {
5370
- K.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
5375
+ c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (u) => {
5376
+ W.emit("dev-action", { event: u, data: { type: "del", devId: t.value.devId } });
5371
5377
  }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5372
5378
  }
5373
5379
  }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5382,12 +5388,12 @@ function Ei(e) {
5382
5388
  return e ? Ne(A(me.axios, e)) : ce;
5383
5389
  }
5384
5390
  function $i(e) {
5385
- const t = A(me, e), l = jt(Al), n = Es(t), o = t.plugins || [];
5391
+ const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
5386
5392
  o.unshift(n), o.forEach((a) => {
5387
5393
  xs(l, a);
5388
- }), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = z, window.App = l, window.OmsOptions = t, $l(() => ({
5394
+ }), t != null && t.mock && Ul(), ce = Ne(t.axios), E.dispatch("setHttp", ce).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, $l(() => ({
5389
5395
  "X-Token": Me()
5390
- })), z.isReady().then(() => l.mount("#app"));
5396
+ })), K.isReady().then(() => l.mount("#app"));
5391
5397
  }
5392
5398
  function vs(e, t = {}) {
5393
5399
  Object.keys(t).forEach((l) => {
@@ -5396,7 +5402,7 @@ function vs(e, t = {}) {
5396
5402
  }
5397
5403
  function gs(e = []) {
5398
5404
  e.forEach((t) => {
5399
- z.addRoute(t);
5405
+ K.addRoute(t);
5400
5406
  }), E.commit("user/setCustomRoutes", e);
5401
5407
  }
5402
5408
  function ks(e, t) {
@@ -5420,7 +5426,7 @@ function Ss(e = {}) {
5420
5426
  });
5421
5427
  }
5422
5428
  function xs(e, t) {
5423
- vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), it(t.mockApis || []);
5429
+ vs(e, t.components || {}), gs(t.routes || []), ks(e, t.use || []), ws(e, t.directives || {}), Ss(t.storeModules || {}), rt(t.mockApis || []);
5424
5430
  }
5425
5431
  function Es(e) {
5426
5432
  var t;
@@ -5429,8 +5435,8 @@ function Es(e) {
5429
5435
  directives: ys,
5430
5436
  use: [
5431
5437
  E,
5432
- z,
5433
- [Qt, { locale: et, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5438
+ K,
5439
+ [Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5434
5440
  ]
5435
5441
  };
5436
5442
  }
@@ -5438,14 +5444,14 @@ export {
5438
5444
  Jo as BaseSso,
5439
5445
  ge as Container,
5440
5446
  zo as DingTalk,
5441
- ft as Layout,
5442
- P as MenuType,
5447
+ ht as Layout,
5448
+ R as MenuType,
5443
5449
  Xl as Message,
5444
5450
  Ue as MessageBox,
5445
5451
  D as PageType,
5446
5452
  Wo as allSso,
5447
5453
  $i as createAdmin,
5448
- K as eventBus,
5454
+ W as eventBus,
5449
5455
  ln as getCmp,
5450
5456
  ce as http,
5451
5457
  Ne as instance,