@okiss/oms 0.0.46 → 0.0.47

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,7 +1,7 @@
1
1
  var $t = Object.defineProperty;
2
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";
3
+ var D = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as m, createVNode as p, computed as M, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as E, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as $, toRefs as Bt, ref as L, normalizeStyle as Ot, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as w, withDirectives as ie, vModelText as he, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
5
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
7
  import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
@@ -13,7 +13,7 @@ import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElC
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
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";
16
+ import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as ae, ElMain as pl, ElAside as ul, ElContainer as dl, ElDivider as nt, ElButton as pe, ElOption as Te, ElSelect as Be, ElFormItem as ot, ElForm as at, ElCol as de, ElDrawer as st, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Oe, ElTree as Sl, ElCard as Ae } from "element-plus/es";
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";
@@ -47,8 +47,8 @@ import { useEventListener as Tl } from "@vueuse/core";
47
47
  import "element-plus/es/components/alert/style/css";
48
48
  import "element-plus/es/components/card/style/css";
49
49
  import "element-plus/es/components/tree/style/css";
50
- import Ol from "vue3-markdown-it";
51
- import { MD5 as Bl } from "crypto-js";
50
+ import Bl from "vue3-markdown-it";
51
+ import { MD5 as Ol } from "crypto-js";
52
52
  import "element-plus/es/components/message/style/css";
53
53
  import ke from "nprogress";
54
54
  import "nprogress/nprogress.css";
@@ -72,8 +72,8 @@ const Al = /* @__PURE__ */ q({
72
72
  font-family: iconfont !important;
73
73
  }`));
74
74
  }), (l = (t = window == null ? void 0 : window.OmsOptions) == null ? void 0 : t.form) != null && l.vsPath && Ct("vsPath", (o = (n = window == null ? void 0 : window.OmsOptions) == null ? void 0 : n.form) == null ? void 0 : o.vsPath), (a, s) => {
75
- const c = v("router-view");
76
- return i(), f(c);
75
+ const u = v("router-view");
76
+ return i(), m(u);
77
77
  };
78
78
  }
79
79
  });
@@ -773,8 +773,8 @@ function Ul() {
773
773
  Object.keys(we).forEach((e) => {
774
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 = 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);
776
+ const { url: o, type: a, body: s } = n, u = Ut(o), c = s ? JSON.parse(s) : {}, d = t.response({ query: u, data: c }), f = _e.mock(d);
777
+ return Ht(o, { type: a, query: u, data: c, response: f }), _e.mock(f);
778
778
  });
779
779
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
780
780
  }
@@ -783,7 +783,7 @@ function Me() {
783
783
  return N.get(Le) || "";
784
784
  }
785
785
  function Hl(e) {
786
- const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
786
+ const t = new Date((/* @__PURE__ */ new Date()).getTime() + (S.state.settings.tokenExpire || 864e5));
787
787
  return N.set(Le, e, { expires: t });
788
788
  }
789
789
  function pt() {
@@ -850,8 +850,8 @@ const Fl = {
850
850
  method: "POST",
851
851
  data: n
852
852
  }).then((s) => {
853
- var c;
854
- e("updateToken", (c = s.data) == null ? void 0 : c.token), o(!0);
853
+ var u;
854
+ e("updateToken", (u = s.data) == null ? void 0 : u.token), o(!0);
855
855
  }).catch((s) => {
856
856
  a(s);
857
857
  }) : a("http client not init");
@@ -866,9 +866,9 @@ const Fl = {
866
866
  url: "/user/info",
867
867
  method: "GET"
868
868
  }).then((o) => {
869
- var s, c, u, d, m;
869
+ var s, u, c, d, f;
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: (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);
871
+ e("updateState", { key: "name", value: (u = o.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (c = o.data) == null ? void 0 : c.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", (f = o.data) == null ? void 0 : f.name), l(!0);
872
872
  }).catch((o) => {
873
873
  n(o);
874
874
  }) : n("http client not init");
@@ -913,7 +913,8 @@ const Fl = {
913
913
  device: "desktop",
914
914
  pages: {},
915
915
  currentRouteMeta: {},
916
- builderSchema: {}
916
+ builderSchema: {},
917
+ baseURL: ""
917
918
  }, Wl = {
918
919
  namespaced: !0,
919
920
  state: Kl,
@@ -935,6 +936,9 @@ const Fl = {
935
936
  },
936
937
  SET_BUILDER_SCHEMA: (e, t) => {
937
938
  e.builderSchema = t;
939
+ },
940
+ SET_BASE_API: (e, t) => {
941
+ e.baseURL = t;
938
942
  }
939
943
  },
940
944
  actions: {
@@ -955,6 +959,9 @@ const Fl = {
955
959
  },
956
960
  setBuilderSchema({ commit: e }, t) {
957
961
  e("SET_BUILDER_SCHEMA", t);
962
+ },
963
+ setBaseAPI({ commit: e }, t) {
964
+ e("SET_BASE_API", t);
958
965
  }
959
966
  }
960
967
  }, Zl = {
@@ -973,7 +980,7 @@ const Fl = {
973
980
  e("SET_CURRENT_CELLITEM", t);
974
981
  }
975
982
  }
976
- }, E = Zt({
983
+ }, S = Zt({
977
984
  state: void 0,
978
985
  getters: {
979
986
  http: (e) => e.http,
@@ -1067,10 +1074,10 @@ function ln(e) {
1067
1074
  const nn = /* @__PURE__ */ q({
1068
1075
  name: "Dashboard",
1069
1076
  setup() {
1070
- const e = ln("test");
1077
+ const e = ln("dashboard");
1071
1078
  if (e)
1072
1079
  return () => p(e, null, null);
1073
- const t = lt(), l = j(() => t.getters.name);
1080
+ const t = lt(), l = M(() => t.getters.name);
1074
1081
  return () => p("div", {
1075
1082
  class: "dashboard-container"
1076
1083
  }, [p("div", {
@@ -1078,12 +1085,12 @@ const nn = /* @__PURE__ */ q({
1078
1085
  }, [g("Hi "), l.value, g(" 😄")])]);
1079
1086
  }
1080
1087
  });
1081
- const $ = (e, t) => {
1088
+ const I = (e, t) => {
1082
1089
  const l = e.__vccOpts || e;
1083
1090
  for (const [n, o] of t)
1084
1091
  l[n] = o;
1085
1092
  return l;
1086
- }, on = /* @__PURE__ */ $(nn, [["__scopeId", "data-v-10e6b4b6"]]);
1093
+ }, on = /* @__PURE__ */ I(nn, [["__scopeId", "data-v-e9e66e35"]]);
1087
1094
  const an = {
1088
1095
  data() {
1089
1096
  return {
@@ -1132,22 +1139,22 @@ const an = {
1132
1139
  class: "no-redirect"
1133
1140
  }, rn = ["onClick"];
1134
1141
  function cn(e, t, l, n, o, a) {
1135
- const s = rl, c = cl;
1136
- return i(), f(c, {
1142
+ const s = rl, u = cl;
1143
+ return i(), m(u, {
1137
1144
  class: "app-breadcrumb",
1138
1145
  separator: "/"
1139
1146
  }, {
1140
1147
  default: r(() => [
1141
1148
  p(Tt, { name: "breadcrumb" }, {
1142
1149
  default: r(() => [
1143
- (i(!0), h(S, null, B(o.levelList, (u, d) => (i(), f(s, {
1144
- key: u.path
1150
+ (i(!0), h(E, null, O(o.levelList, (c, d) => (i(), m(s, {
1151
+ key: c.path
1145
1152
  }, {
1146
1153
  default: r(() => [
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", {
1154
+ c.path.indexOf("/DIR_") === 0 && c.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, B(c.meta.title), 1)) : (i(), h("a", {
1148
1155
  key: 1,
1149
- onClick: (m) => a.handleLink(u)
1150
- }, O(u.meta.title), 9, rn))
1156
+ onClick: (f) => a.handleLink(c)
1157
+ }, B(c.meta.title), 9, rn))
1151
1158
  ]),
1152
1159
  _: 2
1153
1160
  }, 1024))), 128))
@@ -1158,7 +1165,7 @@ function cn(e, t, l, n, o, a) {
1158
1165
  _: 1
1159
1166
  });
1160
1167
  }
1161
- const pn = /* @__PURE__ */ $(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), un = {
1168
+ const pn = /* @__PURE__ */ I(an, [["render", cn], ["__scopeId", "data-v-fa74804e"]]), un = {
1162
1169
  name: "Hamburger",
1163
1170
  props: {
1164
1171
  isActive: {
@@ -1177,7 +1184,7 @@ function dn(e, t, l, n, o, a) {
1177
1184
  const s = v("v-icon");
1178
1185
  return i(), h("div", {
1179
1186
  style: { padding: "0 15px" },
1180
- onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
1187
+ onClick: t[0] || (t[0] = (...u) => a.toggleClick && a.toggleClick(...u))
1181
1188
  }, [
1182
1189
  p(s, {
1183
1190
  class: H({ "is-active": l.isActive }),
@@ -1185,11 +1192,11 @@ function dn(e, t, l, n, o, a) {
1185
1192
  }, null, 8, ["class"])
1186
1193
  ]);
1187
1194
  }
1188
- const mn = /* @__PURE__ */ $(un, [["render", dn]]);
1195
+ const mn = /* @__PURE__ */ I(un, [["render", dn]]);
1189
1196
  const fn = {};
1190
1197
  function hn(e, t) {
1191
1198
  const l = ae, n = pl, o = ul, a = dl;
1192
- return i(), f(a, { style: { width: "100%", height: "100%" } }, {
1199
+ return i(), m(a, { style: { width: "100%", height: "100%" } }, {
1193
1200
  default: r(() => [
1194
1201
  p(l, { class: "aside" }, {
1195
1202
  default: r(() => [
@@ -1220,7 +1227,7 @@ function hn(e, t) {
1220
1227
  _: 3
1221
1228
  });
1222
1229
  }
1223
- const dt = /* @__PURE__ */ $(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
1230
+ const dt = /* @__PURE__ */ I(fn, [["render", hn], ["__scopeId", "data-v-7c3d697b"]]), bn = {
1224
1231
  type: "input",
1225
1232
  name: "文本框",
1226
1233
  default: {
@@ -1917,7 +1924,7 @@ const ye = {
1917
1924
  Object.keys(Se).forEach((e) => {
1918
1925
  De.push({ value: e, label: Se[e].name });
1919
1926
  });
1920
- const On = {
1927
+ const Bn = {
1921
1928
  options: {
1922
1929
  submitButton: !1,
1923
1930
  cancelButton: !1
@@ -1949,7 +1956,7 @@ const On = {
1949
1956
  }
1950
1957
  }
1951
1958
  ]
1952
- }, Bn = {
1959
+ }, On = {
1953
1960
  components: { DevLayout: dt, VForm: z, VButton: Pe, JsonView: Re },
1954
1961
  props: {
1955
1962
  schema: {
@@ -1961,7 +1968,7 @@ const On = {
1961
1968
  data() {
1962
1969
  return {
1963
1970
  sqlOptions: {},
1964
- sqlSchema: On,
1971
+ sqlSchema: Bn,
1965
1972
  baseSchema: Tn,
1966
1973
  activeTab: "base",
1967
1974
  builderSchema: Object.assign(
@@ -2016,8 +2023,8 @@ const On = {
2016
2023
  const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
2017
2024
  if (o && Object.keys(o).length > 0) {
2018
2025
  if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2019
- const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2020
- this.builderSchema[s][c] = { ...o };
2026
+ const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2027
+ this.builderSchema[s][u] = { ...o };
2021
2028
  } else
2022
2029
  this.builderSchema[this.activeIndex] = o;
2023
2030
  this.key++;
@@ -2086,16 +2093,16 @@ const On = {
2086
2093
  }
2087
2094
  };
2088
2095
  function An(e, t, l, n, o, a) {
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
- return i(), f(U, null, {
2096
+ const s = v("v-form"), u = nt, c = pe, d = v("JsonView"), f = v("VButton"), _ = Te, k = Be, x = ot, J = at, U = v("dev-layout");
2097
+ return i(), m(U, null, {
2091
2098
  main: r(() => [
2092
- o.builderSchema.formItems ? (i(), f(s, F({
2099
+ o.builderSchema.formItems ? (i(), m(s, F({
2093
2100
  ref: "form",
2094
2101
  key: o.key,
2095
2102
  dev: !0
2096
- }, o.builderSchema), null, 16)) : x("", !0),
2097
- p(c),
2098
- p(u, {
2103
+ }, o.builderSchema), null, 16)) : $("", !0),
2104
+ p(u),
2105
+ p(c, {
2099
2106
  type: "primary",
2100
2107
  onClick: a.saveSchema
2101
2108
  }, {
@@ -2105,7 +2112,7 @@ function An(e, t, l, n, o, a) {
2105
2112
  _: 1
2106
2113
  }, 8, ["onClick"]),
2107
2114
  g("    "),
2108
- p(m, {
2115
+ p(f, {
2109
2116
  text: "PageSchema",
2110
2117
  type: "modal"
2111
2118
  }, {
@@ -2116,19 +2123,19 @@ function An(e, t, l, n, o, a) {
2116
2123
  })
2117
2124
  ]),
2118
2125
  "right-aside": r(() => [
2119
- o.activeIndex ? (i(), f(J, { key: 0 }, {
2126
+ o.activeIndex ? (i(), m(J, { key: 0 }, {
2120
2127
  default: r(() => [
2121
- p(w, { label: "控件类型" }, {
2128
+ p(x, { label: "控件类型" }, {
2122
2129
  default: r(() => [
2123
- p(T, {
2130
+ p(k, {
2124
2131
  modelValue: o.currentCtrlType,
2125
- "onUpdate:modelValue": t[0] || (t[0] = (C) => o.currentCtrlType = C)
2132
+ "onUpdate:modelValue": t[0] || (t[0] = (T) => o.currentCtrlType = T)
2126
2133
  }, {
2127
2134
  default: r(() => [
2128
- (i(!0), h(S, null, B(o.types, (C, Z) => (i(), f(_, {
2135
+ (i(!0), h(E, null, O(o.types, (T, Z) => (i(), m(_, {
2129
2136
  key: Z,
2130
- label: C.label,
2131
- value: C.value
2137
+ label: T.label,
2138
+ value: T.value
2132
2139
  }, null, 8, ["label", "value"]))), 128))
2133
2140
  ]),
2134
2141
  _: 1
@@ -2138,17 +2145,17 @@ function An(e, t, l, n, o, a) {
2138
2145
  })
2139
2146
  ]),
2140
2147
  _: 1
2141
- })) : x("", !0),
2142
- (i(), f(s, F({
2148
+ })) : $("", !0),
2149
+ (i(), m(s, F({
2143
2150
  key: o.ctrlKey,
2144
2151
  modelValue: o.ctrlOptions,
2145
- "onUpdate:modelValue": t[1] || (t[1] = (C) => o.ctrlOptions = C)
2152
+ "onUpdate:modelValue": t[1] || (t[1] = (T) => o.ctrlOptions = T)
2146
2153
  }, o.ctrlSchema), null, 16, ["modelValue"]))
2147
2154
  ]),
2148
2155
  _: 1
2149
2156
  });
2150
2157
  }
2151
- const Pn = /* @__PURE__ */ $(Bn, [["render", An], ["__scopeId", "data-v-875f0171"]]), Rn = {
2158
+ const Pn = /* @__PURE__ */ I(On, [["render", An], ["__scopeId", "data-v-875f0171"]]), Rn = {
2152
2159
  type: "input",
2153
2160
  name: "文本框",
2154
2161
  default: {
@@ -2858,7 +2865,7 @@ const Xn = {
2858
2865
  }
2859
2866
  },
2860
2867
  data() {
2861
- const e = Ot(this.$props.schema);
2868
+ const e = Bt(this.$props.schema);
2862
2869
  return delete e.listApi, e.list = [{}], {
2863
2870
  baseSchema: He,
2864
2871
  activeTab: "base",
@@ -2928,8 +2935,8 @@ const Xn = {
2928
2935
  const o = n.trans ? n.trans(e) : e;
2929
2936
  if (o && Object.keys(o).length > 0) {
2930
2937
  if (o.type = l, this.activeIndex.indexOf("[") > -1) {
2931
- const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2932
- this.builderSchema[s][c] = { ...o };
2938
+ const [a, s, u] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2939
+ this.builderSchema[s][u] = { ...o };
2933
2940
  } else
2934
2941
  this.builderSchema[this.activeIndex] = o;
2935
2942
  this.key++;
@@ -3032,12 +3039,12 @@ const Xn = {
3032
3039
  }
3033
3040
  };
3034
3041
  function Yn(e, t, l, n, o, a) {
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, {
3042
+ const s = de, u = pe, c = ae, d = v("v-table"), f = nt, _ = pe, k = v("JsonView"), x = v("VButton"), J = Te, U = Be, T = ot, Z = at, xt = v("v-form"), Et = v("dev-layout");
3043
+ return i(), m(Et, null, {
3037
3044
  "left-aside": r(() => [
3038
- p(u, { style: { width: "200px" } }, {
3045
+ p(c, { style: { width: "200px" } }, {
3039
3046
  default: r(() => [
3040
- p(u, null, {
3047
+ p(c, null, {
3041
3048
  default: r(() => [
3042
3049
  p(s, {
3043
3050
  class: "title",
@@ -3050,9 +3057,9 @@ function Yn(e, t, l, n, o, a) {
3050
3057
  }),
3051
3058
  p(s, { class: "ctrl" }, {
3052
3059
  default: r(() => [
3053
- p(c, {
3060
+ p(u, {
3054
3061
  class: "ctrl-btn",
3055
- onClick: t[0] || (t[0] = (I) => a.pushFilter("input"))
3062
+ onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3056
3063
  }, {
3057
3064
  default: r(() => [
3058
3065
  g("文本框")
@@ -3064,9 +3071,9 @@ function Yn(e, t, l, n, o, a) {
3064
3071
  }),
3065
3072
  p(s, { class: "ctrl" }, {
3066
3073
  default: r(() => [
3067
- p(c, {
3074
+ p(u, {
3068
3075
  class: "ctrl-btn",
3069
- onClick: t[1] || (t[1] = (I) => a.pushFilter("select"))
3076
+ onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3070
3077
  }, {
3071
3078
  default: r(() => [
3072
3079
  g("下拉框")
@@ -3078,9 +3085,9 @@ function Yn(e, t, l, n, o, a) {
3078
3085
  }),
3079
3086
  p(s, { class: "ctrl" }, {
3080
3087
  default: r(() => [
3081
- p(c, {
3088
+ p(u, {
3082
3089
  class: "ctrl-btn",
3083
- onClick: t[2] || (t[2] = (I) => a.pushFilter("date"))
3090
+ onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3084
3091
  }, {
3085
3092
  default: r(() => [
3086
3093
  g("日期")
@@ -3093,7 +3100,7 @@ function Yn(e, t, l, n, o, a) {
3093
3100
  ]),
3094
3101
  _: 1
3095
3102
  }),
3096
- p(u, null, {
3103
+ p(c, null, {
3097
3104
  default: r(() => [
3098
3105
  p(s, { class: "title" }, {
3099
3106
  default: r(() => [
@@ -3101,17 +3108,17 @@ function Yn(e, t, l, n, o, a) {
3101
3108
  ]),
3102
3109
  _: 1
3103
3110
  }),
3104
- (i(!0), h(S, null, B(Object.keys(o.ctrlMap.headers), (I, V) => (i(), f(s, {
3111
+ (i(!0), h(E, null, O(Object.keys(o.ctrlMap.headers), (C, V) => (i(), m(s, {
3105
3112
  key: `column-${V}`,
3106
3113
  class: "ctrl"
3107
3114
  }, {
3108
3115
  default: r(() => [
3109
- p(c, {
3116
+ p(u, {
3110
3117
  class: "ctrl-btn",
3111
- onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[I].type)
3118
+ onClick: (fe) => a.pushHeaders(o.ctrlMap.headers[C].type)
3112
3119
  }, {
3113
3120
  default: r(() => [
3114
- g(O(o.ctrlMap.headers[I].name), 1)
3121
+ g(B(o.ctrlMap.headers[C].name), 1)
3115
3122
  ]),
3116
3123
  _: 2
3117
3124
  }, 1032, ["onClick"])
@@ -3121,7 +3128,7 @@ function Yn(e, t, l, n, o, a) {
3121
3128
  ]),
3122
3129
  _: 1
3123
3130
  }),
3124
- p(u, null, {
3131
+ p(c, null, {
3125
3132
  default: r(() => [
3126
3133
  p(s, { class: "title" }, {
3127
3134
  default: r(() => [
@@ -3129,17 +3136,17 @@ function Yn(e, t, l, n, o, a) {
3129
3136
  ]),
3130
3137
  _: 1
3131
3138
  }),
3132
- (i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
3139
+ (i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3133
3140
  key: `column-${V}`,
3134
3141
  class: "ctrl"
3135
3142
  }, {
3136
3143
  default: r(() => [
3137
- p(c, {
3144
+ p(u, {
3138
3145
  class: "ctrl-btn",
3139
- onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[I].type)
3146
+ onClick: (fe) => a.pushRowButton(o.ctrlMap.buttons[C].type)
3140
3147
  }, {
3141
3148
  default: r(() => [
3142
- g(O(o.ctrlMap.buttons[I].name), 1)
3149
+ g(B(o.ctrlMap.buttons[C].name), 1)
3143
3150
  ]),
3144
3151
  _: 2
3145
3152
  }, 1032, ["onClick"])
@@ -3149,7 +3156,7 @@ function Yn(e, t, l, n, o, a) {
3149
3156
  ]),
3150
3157
  _: 1
3151
3158
  }),
3152
- p(u, null, {
3159
+ p(c, null, {
3153
3160
  default: r(() => [
3154
3161
  p(s, { class: "title" }, {
3155
3162
  default: r(() => [
@@ -3157,17 +3164,17 @@ function Yn(e, t, l, n, o, a) {
3157
3164
  ]),
3158
3165
  _: 1
3159
3166
  }),
3160
- (i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
3167
+ (i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3161
3168
  key: `column-${V}`,
3162
3169
  class: "ctrl"
3163
3170
  }, {
3164
3171
  default: r(() => [
3165
- p(c, {
3172
+ p(u, {
3166
3173
  class: "ctrl-btn",
3167
- onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[I].type)
3174
+ onClick: (fe) => a.pushNormalButton(o.ctrlMap.buttons[C].type)
3168
3175
  }, {
3169
3176
  default: r(() => [
3170
- g(O(o.ctrlMap.buttons[I].name), 1)
3177
+ g(B(o.ctrlMap.buttons[C].name), 1)
3171
3178
  ]),
3172
3179
  _: 2
3173
3180
  }, 1032, ["onClick"])
@@ -3176,7 +3183,7 @@ function Yn(e, t, l, n, o, a) {
3176
3183
  }, 1024))), 128)),
3177
3184
  p(s, { class: "ctrl" }, {
3178
3185
  default: r(() => [
3179
- p(c, { class: "ctrl-btn" }, {
3186
+ p(u, { class: "ctrl-btn" }, {
3180
3187
  default: r(() => [
3181
3188
  g("按钮组")
3182
3189
  ]),
@@ -3188,7 +3195,7 @@ function Yn(e, t, l, n, o, a) {
3188
3195
  ]),
3189
3196
  _: 1
3190
3197
  }),
3191
- p(u, null, {
3198
+ p(c, null, {
3192
3199
  default: r(() => [
3193
3200
  p(s, { class: "title" }, {
3194
3201
  default: r(() => [
@@ -3196,17 +3203,17 @@ function Yn(e, t, l, n, o, a) {
3196
3203
  ]),
3197
3204
  _: 1
3198
3205
  }),
3199
- (i(!0), h(S, null, B(Object.keys(o.ctrlMap.buttons), (I, V) => (i(), f(s, {
3206
+ (i(!0), h(E, null, O(Object.keys(o.ctrlMap.buttons), (C, V) => (i(), m(s, {
3200
3207
  key: `column-${V}`,
3201
3208
  class: "ctrl"
3202
3209
  }, {
3203
3210
  default: r(() => [
3204
- p(c, {
3211
+ p(u, {
3205
3212
  class: "ctrl-btn",
3206
- onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[I].type)
3213
+ onClick: (fe) => a.pushBatchButton(o.ctrlMap.buttons[C].type)
3207
3214
  }, {
3208
3215
  default: r(() => [
3209
- g(O(o.ctrlMap.buttons[I].name), 1)
3216
+ g(B(o.ctrlMap.buttons[C].name), 1)
3210
3217
  ]),
3211
3218
  _: 2
3212
3219
  }, 1032, ["onClick"])
@@ -3215,7 +3222,7 @@ function Yn(e, t, l, n, o, a) {
3215
3222
  }, 1024))), 128)),
3216
3223
  p(s, { class: "ctrl" }, {
3217
3224
  default: r(() => [
3218
- p(c, { class: "ctrl-btn" }, {
3225
+ p(u, { class: "ctrl-btn" }, {
3219
3226
  default: r(() => [
3220
3227
  g("按钮组")
3221
3228
  ]),
@@ -3232,12 +3239,12 @@ function Yn(e, t, l, n, o, a) {
3232
3239
  })
3233
3240
  ]),
3234
3241
  main: r(() => [
3235
- (i(), f(d, F({
3242
+ (i(), m(d, F({
3236
3243
  ref: "table",
3237
3244
  key: o.key,
3238
3245
  dev: !0
3239
3246
  }, o.builderSchema), null, 16)),
3240
- p(m),
3247
+ p(f),
3241
3248
  p(_, {
3242
3249
  type: "primary",
3243
3250
  onClick: a.saveSchema
@@ -3248,30 +3255,30 @@ function Yn(e, t, l, n, o, a) {
3248
3255
  _: 1
3249
3256
  }, 8, ["onClick"]),
3250
3257
  g("    "),
3251
- p(w, {
3258
+ p(x, {
3252
3259
  text: "PageSchema",
3253
3260
  type: "modal"
3254
3261
  }, {
3255
3262
  default: r(() => [
3256
- p(T, { data: a.getSaveSchema }, null, 8, ["data"])
3263
+ p(k, { data: a.getSaveSchema }, null, 8, ["data"])
3257
3264
  ]),
3258
3265
  _: 1
3259
3266
  })
3260
3267
  ]),
3261
3268
  "right-aside": r(() => [
3262
- o.activeIndex ? (i(), f(Z, { key: 0 }, {
3269
+ o.activeIndex ? (i(), m(Z, { key: 0 }, {
3263
3270
  default: r(() => [
3264
- p(C, { label: "控件类型" }, {
3271
+ p(T, { label: "控件类型" }, {
3265
3272
  default: r(() => [
3266
3273
  p(U, {
3267
3274
  modelValue: o.currentCtrlType,
3268
- "onUpdate:modelValue": t[3] || (t[3] = (I) => o.currentCtrlType = I)
3275
+ "onUpdate:modelValue": t[3] || (t[3] = (C) => o.currentCtrlType = C)
3269
3276
  }, {
3270
3277
  default: r(() => [
3271
- (i(!0), h(S, null, B(a.types, (I, V) => (i(), f(J, {
3278
+ (i(!0), h(E, null, O(a.types, (C, V) => (i(), m(J, {
3272
3279
  key: V,
3273
- label: I.label,
3274
- value: I.value
3280
+ label: C.label,
3281
+ value: C.value
3275
3282
  }, null, 8, ["label", "value"]))), 128))
3276
3283
  ]),
3277
3284
  _: 1
@@ -3281,34 +3288,34 @@ function Yn(e, t, l, n, o, a) {
3281
3288
  })
3282
3289
  ]),
3283
3290
  _: 1
3284
- })) : x("", !0),
3285
- (i(), f(xt, F({
3291
+ })) : $("", !0),
3292
+ (i(), m(xt, F({
3286
3293
  key: o.ctrlKey,
3287
3294
  modelValue: o.ctrlOptions,
3288
- "onUpdate:modelValue": t[4] || (t[4] = (I) => o.ctrlOptions = I)
3295
+ "onUpdate:modelValue": t[4] || (t[4] = (C) => o.ctrlOptions = C)
3289
3296
  }, o.ctrlSchema), null, 16, ["modelValue"]))
3290
3297
  ]),
3291
3298
  _: 1
3292
3299
  });
3293
3300
  }
3294
- const eo = /* @__PURE__ */ $(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
3301
+ const eo = /* @__PURE__ */ I(Xn, [["render", Yn], ["__scopeId", "data-v-e5209cb7"]]), to = {
3295
3302
  name: "PageEditor",
3296
3303
  components: { FormBuilder: Pn, TableBuilder: eo },
3297
3304
  setup() {
3298
- const e = L(!1), t = L(1), l = "rtl", n = ue(), o = j(() => E.state.app.pages[n.path]);
3305
+ const e = L(!1), t = L(1), l = "rtl", n = ue(), o = M(() => S.state.app.pages[n.path]);
3299
3306
  return { show: e, key: t, direction: l, pageSchema: o };
3300
3307
  }
3301
3308
  };
3302
3309
  function lo(e, t, l, n, o, a) {
3303
- const s = v("VIcon"), c = v("form-builder"), u = v("table-builder"), d = st;
3304
- return i(), h(S, null, [
3310
+ const s = v("VIcon"), u = v("form-builder"), c = v("table-builder"), d = st;
3311
+ return i(), h(E, null, [
3305
3312
  p(s, {
3306
3313
  name: "ra-set",
3307
- onClick: t[0] || (t[0] = (m) => n.show = !n.show)
3314
+ onClick: t[0] || (t[0] = (f) => n.show = !n.show)
3308
3315
  }),
3309
3316
  p(d, {
3310
3317
  modelValue: n.show,
3311
- "onUpdate:modelValue": t[1] || (t[1] = (m) => n.show = m),
3318
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => n.show = f),
3312
3319
  title: "页面设计",
3313
3320
  class: "my-drawer",
3314
3321
  direction: n.direction,
@@ -3317,20 +3324,20 @@ function lo(e, t, l, n, o, a) {
3317
3324
  "append-to-body": ""
3318
3325
  }, {
3319
3326
  default: r(() => [
3320
- n.pageSchema.formItems !== void 0 ? (i(), f(c, {
3327
+ n.pageSchema.formItems !== void 0 ? (i(), m(u, {
3321
3328
  key: 0,
3322
3329
  schema: n.pageSchema
3323
- }, null, 8, ["schema"])) : x("", !0),
3324
- n.pageSchema.headers !== void 0 ? (i(), f(u, {
3330
+ }, null, 8, ["schema"])) : $("", !0),
3331
+ n.pageSchema.headers !== void 0 ? (i(), m(c, {
3325
3332
  key: 1,
3326
3333
  schema: n.pageSchema
3327
- }, null, 8, ["schema"])) : x("", !0)
3334
+ }, null, 8, ["schema"])) : $("", !0)
3328
3335
  ]),
3329
3336
  _: 1
3330
3337
  }, 8, ["modelValue", "direction"])
3331
3338
  ], 64);
3332
3339
  }
3333
- const no = /* @__PURE__ */ $(to, [["render", lo]]);
3340
+ const no = /* @__PURE__ */ I(to, [["render", lo]]);
3334
3341
  const oo = {
3335
3342
  components: {
3336
3343
  Breadcrumb: pn,
@@ -3419,25 +3426,25 @@ const oo = {
3419
3426
  style: { padding: "0" }
3420
3427
  }, co = { class: "user-info" }, po = ["src"], uo = { class: "user-name" };
3421
3428
  function mo(e, t, l, n, o, a) {
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
- return i(), f(C, {
3429
+ const s = v("hamburger"), u = v("breadcrumb"), c = de, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), k = ml, x = fl, J = hl, U = st, T = ae;
3430
+ return i(), m(T, {
3424
3431
  ref: "header",
3425
3432
  class: "navbar",
3426
- style: Bt({ background: a.setting.envColor[a.user.env] })
3433
+ style: Ot({ background: a.setting.envColor[a.user.env] })
3427
3434
  }, {
3428
3435
  default: r(() => [
3429
- p(u, { span: 16 }, {
3436
+ p(c, { span: 16 }, {
3430
3437
  default: r(() => [
3431
3438
  p(s, {
3432
3439
  "is-active": e.sidebar.opened,
3433
3440
  class: "hamburger-container",
3434
3441
  onToggleClick: a.toggleSideBar
3435
3442
  }, null, 8, ["is-active", "onToggleClick"]),
3436
- p(c, { class: "breadcrumb-container" })
3443
+ p(u, { class: "breadcrumb-container" })
3437
3444
  ]),
3438
3445
  _: 1
3439
3446
  }),
3440
- p(u, { span: 8 }, {
3447
+ p(c, { span: 8 }, {
3441
3448
  default: r(() => [
3442
3449
  b("div", ao, [
3443
3450
  b("div", so, [
@@ -3447,8 +3454,8 @@ function mo(e, t, l, n, o, a) {
3447
3454
  }, null, 8, ["onClick"])
3448
3455
  ]),
3449
3456
  a.showPageJsonSchemaIcon ? (i(), h("div", io, [
3450
- p(m)
3451
- ])) : x("", !0),
3457
+ p(f)
3458
+ ])) : $("", !0),
3452
3459
  b("div", ro, [
3453
3460
  p(_, { buttons: e.nav }, null, 8, ["buttons"])
3454
3461
  ]),
@@ -3457,9 +3464,9 @@ function mo(e, t, l, n, o, a) {
3457
3464
  trigger: "click"
3458
3465
  }, {
3459
3466
  dropdown: r(() => [
3460
- p(w, { class: "user-dropdown" }, {
3467
+ p(x, { class: "user-dropdown" }, {
3461
3468
  default: r(() => [
3462
- p(T, {
3469
+ p(k, {
3463
3470
  icon: "oms-icon-index",
3464
3471
  onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3465
3472
  }, {
@@ -3468,7 +3475,7 @@ function mo(e, t, l, n, o, a) {
3468
3475
  ]),
3469
3476
  _: 1
3470
3477
  }),
3471
- p(T, {
3478
+ p(k, {
3472
3479
  divided: "",
3473
3480
  icon: "el-icon-switch-button",
3474
3481
  onClick: a.logout
@@ -3490,7 +3497,7 @@ function mo(e, t, l, n, o, a) {
3490
3497
  alt: "头像"
3491
3498
  }, null, 8, po),
3492
3499
  g(),
3493
- b("span", uo, O(e.nickname || e.name), 1)
3500
+ b("span", uo, B(e.nickname || e.name), 1)
3494
3501
  ])
3495
3502
  ]),
3496
3503
  _: 1
@@ -3499,16 +3506,16 @@ function mo(e, t, l, n, o, a) {
3499
3506
  ]),
3500
3507
  _: 1
3501
3508
  }),
3502
- o.showJsonSchema ? (i(), f(U, {
3509
+ o.showJsonSchema ? (i(), m(U, {
3503
3510
  key: 0,
3504
3511
  "with-header": !1,
3505
3512
  size: "50%"
3506
- })) : x("", !0)
3513
+ })) : $("", !0)
3507
3514
  ]),
3508
3515
  _: 1
3509
3516
  }, 8, ["style"]);
3510
3517
  }
3511
- const fo = /* @__PURE__ */ $(oo, [["render", mo], ["__scopeId", "data-v-9d0fb088"]]);
3518
+ const fo = /* @__PURE__ */ I(oo, [["render", mo], ["__scopeId", "data-v-99b3c688"]]);
3512
3519
  const ho = {
3513
3520
  name: "SidebarLogo",
3514
3521
  props: {
@@ -3536,7 +3543,7 @@ function wo(e, t, l, n, o, a) {
3536
3543
  }, [
3537
3544
  p(At, { name: "sidebarLogoFade" }, {
3538
3545
  default: r(() => [
3539
- l.collapse ? (i(), f(s, {
3546
+ l.collapse ? (i(), m(s, {
3540
3547
  key: "collapse",
3541
3548
  class: "sidebar-logo-link",
3542
3549
  to: "/"
@@ -3546,11 +3553,11 @@ function wo(e, t, l, n, o, a) {
3546
3553
  key: 0,
3547
3554
  src: a.logo,
3548
3555
  class: "sidebar-logo"
3549
- }, null, 8, _o)) : (i(), h("h1", yo, O(a.title), 1)),
3556
+ }, null, 8, _o)) : (i(), h("h1", yo, B(a.title), 1)),
3550
3557
  vo
3551
3558
  ]),
3552
3559
  _: 1
3553
- })) : (i(), f(s, {
3560
+ })) : (i(), m(s, {
3554
3561
  key: "expand",
3555
3562
  class: "sidebar-logo-link",
3556
3563
  to: "/"
@@ -3560,8 +3567,8 @@ function wo(e, t, l, n, o, a) {
3560
3567
  key: 0,
3561
3568
  src: a.logo,
3562
3569
  class: "sidebar-logo"
3563
- }, null, 8, go)) : x("", !0),
3564
- b("h1", ko, O(a.title), 1)
3570
+ }, null, 8, go)) : $("", !0),
3571
+ b("h1", ko, B(a.title), 1)
3565
3572
  ]),
3566
3573
  _: 1
3567
3574
  }))
@@ -3570,7 +3577,7 @@ function wo(e, t, l, n, o, a) {
3570
3577
  })
3571
3578
  ], 2);
3572
3579
  }
3573
- const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925"]]), xo = {
3580
+ const So = /* @__PURE__ */ I(ho, [["render", wo], ["__scopeId", "data-v-49084925"]]), xo = {
3574
3581
  props: {
3575
3582
  to: {
3576
3583
  type: String,
@@ -3604,14 +3611,14 @@ const So = /* @__PURE__ */ $(ho, [["render", wo], ["__scopeId", "data-v-49084925
3604
3611
  }
3605
3612
  };
3606
3613
  function Eo(e, t, l, n, o, a) {
3607
- return i(), f(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3614
+ return i(), m(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3608
3615
  default: r(() => [
3609
3616
  le(e.$slots, "default")
3610
3617
  ]),
3611
3618
  _: 3
3612
3619
  }, 16);
3613
3620
  }
3614
- const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
3621
+ const $o = /* @__PURE__ */ I(xo, [["render", Eo]]), Io = {
3615
3622
  computed: {
3616
3623
  // @ts-ignore
3617
3624
  device() {
@@ -3646,15 +3653,15 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
3646
3653
  setup(e) {
3647
3654
  return (t, l) => {
3648
3655
  const n = v("VIcon");
3649
- return i(), h(S, null, [
3656
+ return i(), h(E, null, [
3650
3657
  p(n, {
3651
3658
  name: e.meta.icon || "ra-all"
3652
3659
  }, null, 8, ["name"]),
3653
- b("span", Co, O(e.meta.title), 1)
3660
+ b("span", Co, B(e.meta.title), 1)
3654
3661
  ], 64);
3655
3662
  };
3656
3663
  }
3657
- }), Oo = {
3664
+ }), Bo = {
3658
3665
  name: "SidebarItem",
3659
3666
  components: {
3660
3667
  AppLink: $o,
@@ -3685,21 +3692,21 @@ const $o = /* @__PURE__ */ $(xo, [["render", Eo]]), Io = {
3685
3692
  }
3686
3693
  }
3687
3694
  }
3688
- }, Bo = {
3695
+ }, Oo = {
3689
3696
  key: 0,
3690
3697
  class: "menu-wrapper"
3691
3698
  };
3692
3699
  function Ao(e, t, l, n, o, a) {
3693
- const s = v("menu-content"), c = bl, u = v("app-link"), d = v("sidebar-item", !0), m = _l;
3694
- return l.item.hidden !== !1 ? (i(), h("div", Bo, [
3695
- l.item.meta && l.item.meta.menuType === 2 ? (i(), h(S, { key: 0 }, [
3696
- l.item.meta ? (i(), f(u, {
3700
+ const s = v("menu-content"), u = bl, c = v("app-link"), d = v("sidebar-item", !0), f = _l;
3701
+ return l.item.hidden !== !1 ? (i(), h("div", Oo, [
3702
+ l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
3703
+ l.item.meta ? (i(), m(c, {
3697
3704
  key: 0,
3698
3705
  to: l.to,
3699
3706
  "new-tab": l.item.meta.newTab
3700
3707
  }, {
3701
3708
  default: r(() => [
3702
- p(c, {
3709
+ p(u, {
3703
3710
  index: l.to,
3704
3711
  class: H({ "submenu-title-noDropdown": !l.isNest })
3705
3712
  }, {
@@ -3712,15 +3719,15 @@ function Ao(e, t, l, n, o, a) {
3712
3719
  }, 8, ["index", "class"])
3713
3720
  ]),
3714
3721
  _: 1
3715
- }, 8, ["to", "new-tab"])) : x("", !0)
3716
- ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
3722
+ }, 8, ["to", "new-tab"])) : $("", !0)
3723
+ ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), m(f, {
3717
3724
  key: 1,
3718
3725
  ref: "subMenu",
3719
3726
  index: l.to,
3720
3727
  class: H({ "submenu-title-noDropdown": !l.isNest })
3721
3728
  }, {
3722
3729
  title: r(() => [
3723
- l.item.redirect && l.item.redirect !== "#" ? (i(), f(u, {
3730
+ l.item.redirect && l.item.redirect !== "#" ? (i(), m(c, {
3724
3731
  key: 0,
3725
3732
  to: l.to
3726
3733
  }, {
@@ -3730,13 +3737,13 @@ function Ao(e, t, l, n, o, a) {
3730
3737
  }, null, 8, ["meta"])
3731
3738
  ]),
3732
3739
  _: 1
3733
- }, 8, ["to"])) : (i(), f(s, {
3740
+ }, 8, ["to"])) : (i(), m(s, {
3734
3741
  key: 1,
3735
3742
  meta: l.item.meta
3736
3743
  }, null, 8, ["meta"]))
3737
3744
  ]),
3738
3745
  default: r(() => [
3739
- (i(!0), h(S, null, B(l.item.children, (_) => (i(), f(d, {
3746
+ (i(!0), h(E, null, O(l.item.children, (_) => (i(), m(d, {
3740
3747
  key: _.path,
3741
3748
  "is-nest": !0,
3742
3749
  item: _,
@@ -3745,10 +3752,10 @@ function Ao(e, t, l, n, o, a) {
3745
3752
  }, null, 8, ["item", "to"]))), 128))
3746
3753
  ]),
3747
3754
  _: 1
3748
- }, 8, ["index", "class"])) : x("", !0)
3749
- ])) : x("", !0);
3755
+ }, 8, ["index", "class"])) : $("", !0)
3756
+ ])) : $("", !0);
3750
3757
  }
3751
- const Po = /* @__PURE__ */ $(Oo, [["render", Ao]]);
3758
+ const Po = /* @__PURE__ */ I(Bo, [["render", Ao]]);
3752
3759
  function ft(e) {
3753
3760
  return e.filter((t) => {
3754
3761
  var l;
@@ -3788,8 +3795,8 @@ const Ro = {
3788
3795
  }
3789
3796
  };
3790
3797
  function Lo(e, t, l, n, o, a) {
3791
- const s = Te, c = yl, u = Oe;
3792
- return i(), f(u, {
3798
+ const s = Te, u = yl, c = Be;
3799
+ return i(), m(c, {
3793
3800
  modelValue: o.selected,
3794
3801
  "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
3795
3802
  filterable: "",
@@ -3798,28 +3805,28 @@ function Lo(e, t, l, n, o, a) {
3798
3805
  onChange: a.onselected
3799
3806
  }, {
3800
3807
  default: r(() => [
3801
- (i(!0), h(S, null, B(a.filterRoutes, (d) => (i(), h(S, {
3808
+ (i(!0), h(E, null, O(a.filterRoutes, (d) => (i(), h(E, {
3802
3809
  key: d.path
3803
3810
  }, [
3804
- d.children !== void 0 ? (i(), h(S, { key: 0 }, [
3805
- d.meta.menuType !== 0 ? (i(), f(c, {
3811
+ d.children !== void 0 ? (i(), h(E, { key: 0 }, [
3812
+ d.meta.menuType !== 0 ? (i(), m(u, {
3806
3813
  key: d.path + "-",
3807
3814
  label: d.meta.title
3808
3815
  }, {
3809
3816
  default: r(() => [
3810
- (i(!0), h(S, null, B(d.children, (m, _) => (i(), h(S, {
3811
- key: m.path
3817
+ (i(!0), h(E, null, O(d.children, (f, _) => (i(), h(E, {
3818
+ key: f.path
3812
3819
  }, [
3813
- d.meta.menuType !== 0 ? (i(), f(s, {
3820
+ d.meta.menuType !== 0 ? (i(), m(s, {
3814
3821
  key: 0,
3815
- label: (_ === d.children.length - 1 ? "└─" : "├─") + m.meta.title,
3816
- value: a.getJumpPath(m)
3817
- }, null, 8, ["label", "value"])) : x("", !0)
3822
+ label: (_ === d.children.length - 1 ? "└─" : "├─") + f.meta.title,
3823
+ value: a.getJumpPath(f)
3824
+ }, null, 8, ["label", "value"])) : $("", !0)
3818
3825
  ], 64))), 128))
3819
3826
  ]),
3820
3827
  _: 2
3821
- }, 1032, ["label"])) : x("", !0)
3822
- ], 64)) : (i(), f(s, {
3828
+ }, 1032, ["label"])) : $("", !0)
3829
+ ], 64)) : (i(), m(s, {
3823
3830
  key: 1,
3824
3831
  label: "" + d.meta.title,
3825
3832
  value: a.getJumpPath(d)
@@ -3829,8 +3836,8 @@ function Lo(e, t, l, n, o, a) {
3829
3836
  _: 1
3830
3837
  }, 8, ["modelValue", "onChange"]);
3831
3838
  }
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 || {});
3839
+ const Mo = /* @__PURE__ */ I(Ro, [["render", Lo], ["__scopeId", "data-v-7a867c34"]]);
3840
+ var j = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(j || {}), R = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(R || {});
3834
3841
  const Do = q({
3835
3842
  components: { SidebarItem: Po, Logo: So, SearchMenu: Mo },
3836
3843
  computed: {
@@ -3883,17 +3890,17 @@ const Do = q({
3883
3890
  }
3884
3891
  });
3885
3892
  function jo(e, t, l, n, o, a) {
3886
- const s = v("logo"), c = v("search-menu"), u = v("sidebar-item"), d = vl, m = gl;
3893
+ const s = v("logo"), u = v("search-menu"), c = v("sidebar-item"), d = vl, f = gl;
3887
3894
  return i(), h("div", {
3888
3895
  class: H({ "has-logo": e.showLogo })
3889
3896
  }, [
3890
- e.showLogo ? (i(), f(s, {
3897
+ e.showLogo ? (i(), m(s, {
3891
3898
  key: 0,
3892
3899
  collapse: e.isCollapse
3893
- }, null, 8, ["collapse"])) : x("", !0),
3894
- p(m, { "wrap-class": "scrollbar-wrapper" }, {
3900
+ }, null, 8, ["collapse"])) : $("", !0),
3901
+ p(f, { "wrap-class": "scrollbar-wrapper" }, {
3895
3902
  default: r(() => [
3896
- e.isCollapse ? x("", !0) : (i(), f(c, { key: 0 })),
3903
+ e.isCollapse ? $("", !0) : (i(), m(u, { key: 0 })),
3897
3904
  p(d, {
3898
3905
  "default-active": e.activeMenu,
3899
3906
  collapse: e.isCollapse,
@@ -3905,13 +3912,13 @@ function jo(e, t, l, n, o, a) {
3905
3912
  mode: "vertical"
3906
3913
  }, {
3907
3914
  default: r(() => [
3908
- (i(!0), h(S, null, B(e.routes, (_, T) => (i(), h(S, {
3909
- key: T + "-module"
3915
+ (i(!0), h(E, null, O(e.routes, (_, k) => (i(), h(E, {
3916
+ key: k + "-module"
3910
3917
  }, [
3911
- (i(!0), h(S, null, B(e.filterRoute(_.routes), (w) => (i(), f(u, {
3912
- key: w.path,
3913
- item: w,
3914
- to: e.$router.resolve(w.redirect ? w.redirect : w).fullPath
3918
+ (i(!0), h(E, null, O(e.filterRoute(_.routes), (x) => (i(), m(c, {
3919
+ key: x.path,
3920
+ item: x,
3921
+ to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
3915
3922
  }, null, 8, ["item", "to"]))), 128))
3916
3923
  ], 64))), 128))
3917
3924
  ]),
@@ -3922,7 +3929,7 @@ function jo(e, t, l, n, o, a) {
3922
3929
  })
3923
3930
  ], 2);
3924
3931
  }
3925
- const No = /* @__PURE__ */ $(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
3932
+ const No = /* @__PURE__ */ I(Do, [["render", jo], ["__scopeId", "data-v-d252f828"]]);
3926
3933
  const Vo = { class: "app-main" }, qo = {
3927
3934
  __name: "AppMain",
3928
3935
  setup(e) {
@@ -3931,57 +3938,57 @@ const Vo = { class: "app-main" }, qo = {
3931
3938
  var o;
3932
3939
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3933
3940
  }), (o, a) => {
3934
- const s = v("router-view"), c = kl;
3941
+ const s = v("router-view"), u = kl;
3935
3942
  return i(), h("section", Vo, [
3936
- (i(), f(s, {
3937
- key: o.$route.fullPath + k(n)
3943
+ (i(), m(s, {
3944
+ key: o.$route.fullPath + w(n)
3938
3945
  })),
3939
- p(c, { bottom: 50 })
3946
+ p(u, { bottom: 50 })
3940
3947
  ]);
3941
3948
  };
3942
3949
  }
3943
- }, Uo = /* @__PURE__ */ $(qo, [["__scopeId", "data-v-ca0f0d98"]]);
3950
+ }, Uo = /* @__PURE__ */ I(qo, [["__scopeId", "data-v-ca0f0d98"]]);
3944
3951
  const Ho = { class: "main-container" }, Fo = 992, Go = {
3945
3952
  __name: "index",
3946
3953
  setup(e) {
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(() => ({
3954
+ const t = lt(), { body: l } = document, n = M(() => t.state.app.sidebar), o = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
3948
3955
  hideSidebar: !n.value.opened,
3949
3956
  openSidebar: n.value.opened,
3950
3957
  withoutAnimation: n.value.withoutAnimation,
3951
3958
  mobile: o.value === "mobile"
3952
- })), c = () => l.getBoundingClientRect().width - 1 < Fo;
3959
+ })), u = () => l.getBoundingClientRect().width - 1 < Fo;
3953
3960
  Tl(window, "resize", () => d());
3954
- const u = () => {
3961
+ const c = () => {
3955
3962
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3956
3963
  }, d = () => {
3957
3964
  if (!document.hidden) {
3958
- const m = c();
3959
- t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3965
+ const f = u();
3966
+ t.dispatch("app/toggleDevice", f ? "mobile" : "desktop"), f && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3960
3967
  }
3961
3968
  };
3962
- return (m, _) => (i(), h("div", {
3963
- class: H([k(s), "app-wrapper"])
3969
+ return (f, _) => (i(), h("div", {
3970
+ class: H([w(s), "app-wrapper"])
3964
3971
  }, [
3965
- k(o) === "mobile" && k(n).opened ? (i(), h("div", {
3972
+ w(o) === "mobile" && w(n).opened ? (i(), h("div", {
3966
3973
  key: 0,
3967
3974
  class: "drawer-bg",
3968
- onClick: u
3969
- })) : x("", !0),
3970
- p(k(No), { class: "sidebar-container" }),
3975
+ onClick: c
3976
+ })) : $("", !0),
3977
+ p(w(No), { class: "sidebar-container" }),
3971
3978
  b("div", Ho, [
3972
3979
  b("div", {
3973
- class: H({ "fixed-header": k(a) })
3980
+ class: H({ "fixed-header": w(a) })
3974
3981
  }, [
3975
- p(k(fo))
3982
+ p(w(fo))
3976
3983
  ], 2),
3977
- p(k(Uo))
3984
+ p(w(Uo))
3978
3985
  ])
3979
3986
  ], 2));
3980
3987
  }
3981
- }, ht = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-957442cd"]]);
3988
+ }, ht = /* @__PURE__ */ I(Go, [["__scopeId", "data-v-957442cd"]]);
3982
3989
  class Jo {
3983
3990
  constructor() {
3984
- M(this, "type", "qrcode");
3991
+ D(this, "type", "qrcode");
3985
3992
  }
3986
3993
  flag() {
3987
3994
  }
@@ -3994,14 +4001,14 @@ class Jo {
3994
4001
  class zo extends Jo {
3995
4002
  constructor(l) {
3996
4003
  super();
3997
- M(this, "type", "qrcode");
3998
- M(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
3999
- M(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4000
- M(this, "elId", "");
4001
- M(this, "appid", "");
4002
- M(this, "iframe", new HTMLIFrameElement());
4003
- M(this, "redirectUri", "");
4004
- M(this, "style", "");
4004
+ D(this, "type", "qrcode");
4005
+ D(this, "qrCodeUrl", "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}");
4006
+ D(this, "reloadUrl", "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}");
4007
+ D(this, "elId", "");
4008
+ D(this, "appid", "");
4009
+ D(this, "iframe", new HTMLIFrameElement());
4010
+ D(this, "redirectUri", "");
4011
+ D(this, "style", "");
4005
4012
  }
4006
4013
  flag() {
4007
4014
  const l = Gt("code");
@@ -4022,8 +4029,8 @@ class zo extends Jo {
4022
4029
  };
4023
4030
  return Q(this.qrCodeUrl, a);
4024
4031
  }, o = (a) => {
4025
- const { origin: s, data: c } = a;
4026
- s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: c }));
4032
+ const { origin: s, data: u } = a;
4033
+ s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: u }));
4027
4034
  };
4028
4035
  this.iframe.src = n(), Jt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4029
4036
  "message",
@@ -4036,76 +4043,76 @@ const Ko = {
4036
4043
  dingtalk: (e) => new zo(e)
4037
4044
  };
4038
4045
  function Wo() {
4039
- return A(E.state.settings.sso || {}, Ko);
4046
+ return A(S.state.settings.sso || {}, Ko);
4040
4047
  }
4041
4048
  function Zo(e) {
4042
- const t = Wo(), l = E.state.settings.activeSsoKey || "", n = t[l];
4049
+ const t = Wo(), l = S.state.settings.activeSsoKey || "", n = t[l];
4043
4050
  if (n !== void 0)
4044
4051
  return n(e);
4045
4052
  }
4046
4053
  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({
4047
4054
  __name: "login",
4048
4055
  setup(e) {
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({
4056
+ const t = ol(), l = ue(), n = M(() => S.state.settings.loginTips), o = M(() => (console.log(S.state.app), S.state.app.baseURL)), a = L(0), s = () => a.value++, u = M(() => c.value.username.length > 0 && c.value.password.length >= 4 && c.value.captcha.length === 4), c = L({
4050
4057
  username: "",
4051
4058
  password: "",
4052
4059
  captcha: "",
4053
4060
  sing: ""
4054
- }), u = () => {
4061
+ }), d = () => {
4055
4062
  if (c.value.username === "" || c.value.password === "" || c.value.captcha === "") {
4056
4063
  wl.error("用户名, 密码, 验证码是必须的");
4057
4064
  return;
4058
4065
  }
4059
- c.value.sing = Bl(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), E.dispatch("user/login", c.value).then((d) => {
4060
- var m;
4061
- t.push({ path: ((m = l.query) == null ? void 0 : m.redirect) || "/" });
4066
+ c.value.sing = Ol(`${c.value.username}${c.value.password}${c.value.captcha}`).toString(), S.dispatch("user/login", c.value).then((f) => {
4067
+ var _;
4068
+ t.push({ path: ((_ = l.query) == null ? void 0 : _.redirect) || "/" });
4062
4069
  });
4063
4070
  };
4064
- return L(), (d, m) => (i(), h("div", Qo, [
4071
+ return L(), (f, _) => (i(), h("div", Qo, [
4065
4072
  Xo,
4066
4073
  b("form", Yo, [
4067
4074
  ie(b("input", {
4068
- "onUpdate:modelValue": m[0] || (m[0] = (_) => k(c).username = _),
4075
+ "onUpdate:modelValue": _[0] || (_[0] = (k) => w(c).username = k),
4069
4076
  type: "text",
4070
4077
  placeholder: "用户名",
4071
4078
  class: "input"
4072
4079
  }, null, 512), [
4073
- [he, k(c).username]
4080
+ [he, w(c).username]
4074
4081
  ]),
4075
4082
  ie(b("input", {
4076
- "onUpdate:modelValue": m[1] || (m[1] = (_) => k(c).password = _),
4083
+ "onUpdate:modelValue": _[1] || (_[1] = (k) => w(c).password = k),
4077
4084
  type: "password",
4078
4085
  placeholder: "密码",
4079
4086
  class: "input"
4080
4087
  }, null, 512), [
4081
- [he, k(c).password]
4088
+ [he, w(c).password]
4082
4089
  ]),
4083
4090
  b("div", ea, [
4084
4091
  ie(b("input", {
4085
- "onUpdate:modelValue": m[2] || (m[2] = (_) => k(c).captcha = _),
4092
+ "onUpdate:modelValue": _[2] || (_[2] = (k) => w(c).captcha = k),
4086
4093
  type: "text",
4087
4094
  placeholder: "验证码",
4088
4095
  class: "input-captcha"
4089
4096
  }, null, 512), [
4090
- [he, k(c).captcha]
4097
+ [he, w(c).captcha]
4091
4098
  ]),
4092
4099
  b("img", {
4093
4100
  class: "captcha-img",
4094
- src: "/xapi/user/captcha?ts=" + k(o),
4101
+ src: o.value + "/user/captcha?ts=" + w(a),
4095
4102
  title: "点击刷新",
4096
- onClick: a
4103
+ onClick: s
4097
4104
  }, null, 8, ta)
4098
4105
  ]),
4099
4106
  b("div", {
4100
- class: H({ input: !0, button: !0, "no-ready": !s.value }),
4101
- onClick: u
4107
+ class: H({ input: !0, button: !0, "no-ready": !u.value }),
4108
+ onClick: d
4102
4109
  }, "登录", 2),
4103
4110
  b("div", la, [
4104
- b("div", null, O(n.value), 1)
4111
+ b("div", null, B(n.value), 1)
4105
4112
  ]),
4106
4113
  b("div", na, [
4107
4114
  oa,
4108
- (i(!0), h(S, null, B(Object.keys([]), (_) => (i(), h("div", { key: _ }, O(_), 1))), 128))
4115
+ (i(!0), h(E, null, O(Object.keys([]), (k) => (i(), h("div", { key: k }, B(k), 1))), 128))
4109
4116
  ])
4110
4117
  ])
4111
4118
  ]));
@@ -4184,7 +4191,7 @@ const sa = {
4184
4191
  function ua(e, t, l, n, o, a) {
4185
4192
  return i(), h("div", ia, pa);
4186
4193
  }
4187
- const da = /* @__PURE__ */ $(sa, [["render", ua], ["__scopeId", "data-v-26068803"]]), ma = [
4194
+ const da = /* @__PURE__ */ I(sa, [["render", ua], ["__scopeId", "data-v-26068803"]]), ma = [
4188
4195
  {
4189
4196
  path: "/",
4190
4197
  component: ht,
@@ -4223,30 +4230,30 @@ function fa(e) {
4223
4230
  e.beforeEach((t, l, n) => {
4224
4231
  ke.start(), t.preHash = location.hash.replace("#", ""), n();
4225
4232
  }), e.afterEach((t) => {
4226
- t.matched.length > 0 && E.commit("user/updateState", {
4233
+ t.matched.length > 0 && S.commit("user/updateState", {
4227
4234
  key: "path",
4228
4235
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4229
4236
  }), ke.done();
4230
4237
  });
4231
4238
  }
4232
4239
  function ha() {
4233
- return E.state.user.isLodeRemoteRoutes;
4240
+ return S.state.user.isLodeRemoteRoutes;
4234
4241
  }
4235
4242
  function _t() {
4236
- return E.state.settings.whiteRoutes || [];
4243
+ return S.state.settings.whiteRoutes || [];
4237
4244
  }
4238
4245
  function ba() {
4239
- return E.state.user.token;
4246
+ return S.state.user.token;
4240
4247
  }
4241
4248
  function _a(e) {
4242
4249
  e.beforeEach(async (t, l, n) => {
4243
- var u, d;
4250
+ var c, d;
4244
4251
  if (_t().indexOf(t.path) !== -1) {
4245
4252
  n();
4246
4253
  return;
4247
4254
  }
4248
4255
  if (ba()) {
4249
- (u = t.query) != null && u.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4256
+ (c = t.query) != null && c.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4250
4257
  return;
4251
4258
  }
4252
4259
  const a = t.query.redirect || t.path, s = Zo({});
@@ -4254,8 +4261,8 @@ function _a(e) {
4254
4261
  n(`/login?redirect=${a}`);
4255
4262
  return;
4256
4263
  }
4257
- const c = s.flag();
4258
- if (c && await E.dispatch("user/login", { ticket: c })) {
4264
+ const u = s.flag();
4265
+ if (u && await S.dispatch("user/login", { ticket: u })) {
4259
4266
  n();
4260
4267
  return;
4261
4268
  }
@@ -4268,7 +4275,7 @@ const ya = {}, va = { class: "loading preloader" }, ga = /* @__PURE__ */ b("div"
4268
4275
  function wa(e, t) {
4269
4276
  return i(), h("div", va, ka);
4270
4277
  }
4271
- const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
4278
+ const yt = /* @__PURE__ */ I(ya, [["render", wa]]), Sa = {
4272
4279
  name: "VNotice",
4273
4280
  props: {
4274
4281
  dataApi: {
@@ -4298,12 +4305,12 @@ const yt = /* @__PURE__ */ $(ya, [["render", wa]]), Sa = {
4298
4305
  }
4299
4306
  };
4300
4307
  function xa(e, t, l, n, o, a) {
4301
- const s = Be;
4308
+ const s = Oe;
4302
4309
  return i(), h("div", null, [
4303
- o.hasNotice ? (i(), f(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : x("", !0)
4310
+ o.hasNotice ? (i(), m(s, G(F({ key: 0 }, o.noticeProps)), null, 16)) : $("", !0)
4304
4311
  ]);
4305
4312
  }
4306
- const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
4313
+ const vt = /* @__PURE__ */ I(Sa, [["render", xa]]), Ea = q({
4307
4314
  components: { VLoading: yt, VNotice: vt },
4308
4315
  props: {
4309
4316
  schemaHandler: {
@@ -4341,37 +4348,37 @@ const vt = /* @__PURE__ */ $(Sa, [["render", xa]]), Ea = q({
4341
4348
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4342
4349
  this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, $e(o.notice) ? this.notice = {
4343
4350
  title: o.notice
4344
- } : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4351
+ } : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), S.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4345
4352
  });
4346
4353
  }
4347
4354
  });
4348
4355
  const $a = ["innerHTML"];
4349
4356
  function Ia(e, t, l, n, o, a) {
4350
- const s = Be, c = vt, u = yt;
4351
- return i(), h(S, null, [
4352
- e.owners.length > 0 ? (i(), f(s, {
4357
+ const s = Oe, u = vt, c = yt;
4358
+ return i(), h(E, null, [
4359
+ e.owners.length > 0 ? (i(), m(s, {
4353
4360
  key: 0,
4354
4361
  title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
4355
4362
  type: "info",
4356
4363
  style: { margin: "0 0 20px 0" },
4357
4364
  closable: !1
4358
- }, null, 8, ["title"])) : x("", !0),
4365
+ }, null, 8, ["title"])) : $("", !0),
4359
4366
  e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
4360
4367
  key: 1,
4361
4368
  class: "offline-notice",
4362
4369
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4363
- }, null, 8, $a)) : (i(), h(S, { key: 2 }, [
4364
- e.haveNotice ? (i(), f(c, {
4370
+ }, null, 8, $a)) : (i(), h(E, { key: 2 }, [
4371
+ e.haveNotice ? (i(), m(u, {
4365
4372
  key: 0,
4366
4373
  notice: e.notice,
4367
4374
  style: { margin: "0 0 20px 0" },
4368
4375
  "data-api": e.noticeApi
4369
- }, null, 8, ["notice", "data-api"])) : x("", !0),
4370
- e.loading ? (i(), f(u, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4376
+ }, null, 8, ["notice", "data-api"])) : $("", !0),
4377
+ e.loading ? (i(), m(c, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4371
4378
  ], 64))
4372
4379
  ], 64);
4373
4380
  }
4374
- const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), gt = {
4381
+ const se = /* @__PURE__ */ I(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709"]]), gt = {
4375
4382
  __name: "table",
4376
4383
  setup(e) {
4377
4384
  const t = (l, n) => {
@@ -4387,9 +4394,9 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4387
4394
  o.indexOf(a) === -1 && delete l[a];
4388
4395
  }), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
4389
4396
  };
4390
- return (l, n) => (i(), f(se, { "schema-handler": t }, {
4397
+ return (l, n) => (i(), m(se, { "schema-handler": t }, {
4391
4398
  default: r((o) => [
4392
- p(k(oe), G(Y(o)), null, 16)
4399
+ p(w(oe), G(Y(o)), null, 16)
4393
4400
  ]),
4394
4401
  _: 1
4395
4402
  }));
@@ -4412,9 +4419,9 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4412
4419
  mod: t.params.id ? "edit" : "create"
4413
4420
  }, n), n;
4414
4421
  };
4415
- return (n, o) => (i(), f(se, { "schema-handler": l }, {
4422
+ return (n, o) => (i(), m(se, { "schema-handler": l }, {
4416
4423
  default: r((a) => [
4417
- p(k(z), G(Y(a)), null, 16)
4424
+ p(w(z), G(Y(a)), null, 16)
4418
4425
  ]),
4419
4426
  _: 1
4420
4427
  }));
@@ -4562,13 +4569,13 @@ const se = /* @__PURE__ */ $(Ea, [["render", Ia], ["__scopeId", "data-v-4965a709
4562
4569
  }
4563
4570
  }
4564
4571
  });
4565
- const Ta = { class: "card-header" }, Oa = /* @__PURE__ */ b("span", null, "列表", -1), Ba = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
4572
+ const Ta = { class: "card-header" }, Ba = /* @__PURE__ */ b("span", null, "列表", -1), Oa = { class: "tree-action" }, Aa = { key: 0 }, Pa = {
4566
4573
  key: 1,
4567
4574
  style: { color: "#E6A23C" }
4568
4575
  }, Ra = { class: "card-header" };
4569
4576
  function La(e, t, l, n, o, a) {
4570
- const s = pe, c = Sl, u = Ae, d = de, m = v("v-form"), _ = ae;
4571
- return i(), f(_, {
4577
+ const s = pe, u = Sl, c = Ae, d = de, f = v("v-form"), _ = ae;
4578
+ return i(), m(_, {
4572
4579
  class: "tree-box",
4573
4580
  gutter: 20
4574
4581
  }, {
@@ -4578,10 +4585,10 @@ function La(e, t, l, n, o, a) {
4578
4585
  class: "tree-tree"
4579
4586
  }, {
4580
4587
  default: r(() => [
4581
- p(u, { shadow: "never" }, {
4588
+ p(c, { shadow: "never" }, {
4582
4589
  header: r(() => [
4583
4590
  b("div", Ta, [
4584
- Oa,
4591
+ Ba,
4585
4592
  p(s, {
4586
4593
  type: "text",
4587
4594
  onClick: t[0] || (t[0] = () => e.appendNew())
@@ -4594,7 +4601,7 @@ function La(e, t, l, n, o, a) {
4594
4601
  ])
4595
4602
  ]),
4596
4603
  default: r(() => [
4597
- (e.treeData || []).length > 0 ? (i(), f(c, F({
4604
+ (e.treeData || []).length > 0 ? (i(), m(u, F({
4598
4605
  key: 0,
4599
4606
  style: { height: "100vh" },
4600
4607
  data: e.treeData,
@@ -4605,48 +4612,48 @@ function La(e, t, l, n, o, a) {
4605
4612
  "allow-drop": e.allowDrop,
4606
4613
  onNodeDragEnd: e.handleDragEnd
4607
4614
  }), {
4608
- default: r(({ node: T, data: w }) => [
4609
- b("span", Ba, [
4610
- w[e.localTreeProps.props.label] ? (i(), h("span", Aa, O(w[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
4615
+ default: r(({ node: k, data: x }) => [
4616
+ b("span", Oa, [
4617
+ x[e.localTreeProps.props.label] ? (i(), h("span", Aa, B(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", Pa, "请在右侧表单中修改 --> ")),
4611
4618
  b("span", null, [
4612
- w[e.localTreeProps.props.label] ? (i(), f(s, {
4619
+ x[e.localTreeProps.props.label] ? (i(), m(s, {
4613
4620
  key: 0,
4614
4621
  class: "button",
4615
4622
  type: "text",
4616
- onClick: () => e.onclick(w)
4623
+ onClick: () => e.onclick(x)
4617
4624
  }, {
4618
4625
  default: r(() => [
4619
4626
  g("编辑")
4620
4627
  ]),
4621
4628
  _: 2
4622
- }, 1032, ["onClick"])) : x("", !0),
4623
- e.canAppend(w, T) ? (i(), f(s, {
4629
+ }, 1032, ["onClick"])) : $("", !0),
4630
+ e.canAppend(x, k) ? (i(), m(s, {
4624
4631
  key: 1,
4625
4632
  class: "button",
4626
4633
  type: "text",
4627
- onClick: () => e.append(w, T)
4634
+ onClick: () => e.append(x, k)
4628
4635
  }, {
4629
4636
  default: r(() => [
4630
4637
  g("添加")
4631
4638
  ]),
4632
4639
  _: 2
4633
- }, 1032, ["onClick"])) : x("", !0),
4634
- w.children === void 0 || w.children.length === 0 ? (i(), f(s, {
4640
+ }, 1032, ["onClick"])) : $("", !0),
4641
+ x.children === void 0 || x.children.length === 0 ? (i(), m(s, {
4635
4642
  key: 2,
4636
4643
  class: "button",
4637
4644
  type: "text",
4638
- onClick: () => e.remove(w)
4645
+ onClick: () => e.remove(x)
4639
4646
  }, {
4640
4647
  default: r(() => [
4641
4648
  g("删除")
4642
4649
  ]),
4643
4650
  _: 2
4644
- }, 1032, ["onClick"])) : x("", !0)
4651
+ }, 1032, ["onClick"])) : $("", !0)
4645
4652
  ])
4646
4653
  ])
4647
4654
  ]),
4648
4655
  _: 1
4649
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : x("", !0)
4656
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
4650
4657
  ]),
4651
4658
  _: 1
4652
4659
  })
@@ -4658,24 +4665,24 @@ function La(e, t, l, n, o, a) {
4658
4665
  class: "tree-form"
4659
4666
  }, {
4660
4667
  default: r(() => [
4661
- e.type ? (i(), f(u, {
4668
+ e.type ? (i(), m(c, {
4662
4669
  key: 0,
4663
4670
  shadow: "never"
4664
4671
  }, {
4665
4672
  header: r(() => [
4666
4673
  b("div", Ra, [
4667
- b("span", null, O(e.formType), 1)
4674
+ b("span", null, B(e.formType), 1)
4668
4675
  ])
4669
4676
  ]),
4670
4677
  default: r(() => [
4671
- (i(), f(m, F({
4678
+ (i(), m(f, F({
4672
4679
  key: e.formkey,
4673
4680
  modelValue: e.formData,
4674
- "onUpdate:modelValue": t[1] || (t[1] = (T) => e.formData = T)
4681
+ "onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
4675
4682
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4676
4683
  ]),
4677
4684
  _: 1
4678
- })) : x("", !0)
4685
+ })) : $("", !0)
4679
4686
  ]),
4680
4687
  _: 1
4681
4688
  })
@@ -4683,7 +4690,7 @@ function La(e, t, l, n, o, a) {
4683
4690
  _: 1
4684
4691
  });
4685
4692
  }
4686
- const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
4693
+ const Fe = /* @__PURE__ */ I(Ca, [["render", La]]), Ma = {
4687
4694
  __name: "tree",
4688
4695
  setup(e) {
4689
4696
  const t = (l, n) => {
@@ -4692,7 +4699,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
4692
4699
  o.indexOf(a) === -1 && delete l[a];
4693
4700
  }), l;
4694
4701
  };
4695
- return (l, n) => (i(), f(se, { "schema-handler": t }, {
4702
+ return (l, n) => (i(), m(se, { "schema-handler": t }, {
4696
4703
  default: r((o) => [
4697
4704
  p(Fe, G(Y(o)), null, 16)
4698
4705
  ]),
@@ -4707,7 +4714,7 @@ const Fe = /* @__PURE__ */ $(Ca, [["render", La]]), Ma = {
4707
4714
  t.value++;
4708
4715
  }), (l, n) => {
4709
4716
  const o = v("router-view");
4710
- return i(), f(o);
4717
+ return i(), m(o);
4711
4718
  };
4712
4719
  }
4713
4720
  }, Da = {
@@ -4745,20 +4752,20 @@ function ja(e, t, l) {
4745
4752
  let n = A({}, Da);
4746
4753
  if (n.title.text = e, $e(t)) {
4747
4754
  const o = [], a = Object.keys(l[0]);
4748
- let s = a[0], c = a.filter((d, m) => m > 0), u = t;
4755
+ let s = a[0], u = a.filter((d, f) => f > 0), c = t;
4749
4756
  if (t.indexOf(":") > -1) {
4750
- const d = t.split(":"), m = d[1].split(",");
4751
- u = d[0], s = m[0], c = m.filter((_, T) => T > 0);
4757
+ const d = t.split(":"), f = d[1].split(",");
4758
+ c = d[0], s = f[0], u = f.filter((_, k) => k > 0);
4752
4759
  }
4753
- c.forEach((d) => {
4754
- const m = [];
4760
+ u.forEach((d) => {
4761
+ const f = [];
4755
4762
  l.forEach((_) => {
4756
- m.push(_[d]);
4763
+ f.push(_[d]);
4757
4764
  }), n.series.push({
4758
4765
  name: d,
4759
- type: u,
4766
+ type: c,
4760
4767
  smooth: !0,
4761
- data: m
4768
+ data: f
4762
4769
  }), n.legend.data.push(d);
4763
4770
  }), l.forEach((d) => {
4764
4771
  o.push(d[s]);
@@ -4779,22 +4786,22 @@ const Na = q({
4779
4786
  }
4780
4787
  }), Va = { class: "number-panel-title" }, qa = { class: "number" }, Ua = { class: "name" };
4781
4788
  function Ha(e, t, l, n, o, a) {
4782
- return i(!0), h(S, null, B(e.dataList, (s, c) => (i(), h("span", { key: c }, [
4789
+ return i(!0), h(E, null, O(e.dataList, (s, u) => (i(), h("span", { key: u }, [
4783
4790
  b("div", Va, [
4784
- (i(!0), h(S, null, B(Object.keys(s), (u, d) => (i(), h("div", {
4791
+ (i(!0), h(E, null, O(Object.keys(s), (c, d) => (i(), h("div", {
4785
4792
  key: d,
4786
4793
  class: "title-inner"
4787
4794
  }, [
4788
- b("p", qa, O(s[u]), 1),
4789
- b("p", Ua, O(u), 1)
4795
+ b("p", qa, B(s[c]), 1),
4796
+ b("p", Ua, B(c), 1)
4790
4797
  ]))), 128))
4791
4798
  ])
4792
4799
  ]))), 128);
4793
4800
  }
4794
- const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
4801
+ const Fa = /* @__PURE__ */ I(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293"]]), Ga = {
4795
4802
  components: {
4796
4803
  Chart: El,
4797
- Md: Ol,
4804
+ Md: Bl,
4798
4805
  Json: Re,
4799
4806
  Table: oe,
4800
4807
  Number: Fa,
@@ -4828,7 +4835,7 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4828
4835
  if (!Ye(n.data))
4829
4836
  return { showPagination: !1 };
4830
4837
  const a = [];
4831
- return n.data[0] && Object.keys(n.data[0]).forEach((s, c) => {
4838
+ return n.data[0] && Object.keys(n.data[0]).forEach((s, u) => {
4832
4839
  a.push({ field: s, label: s });
4833
4840
  }), {
4834
4841
  headers: a,
@@ -4843,20 +4850,20 @@ const Fa = /* @__PURE__ */ $(Na, [["render", Ha], ["__scopeId", "data-v-cc0d8293
4843
4850
  }
4844
4851
  };
4845
4852
  function Ja(e, t, l, n, o, a) {
4846
- const s = Ae, c = Pt("resize");
4847
- return ie((i(), f(s, {
4853
+ const s = Ae, u = Pt("resize");
4854
+ return ie((i(), m(s, {
4848
4855
  shadow: "never",
4849
4856
  class: "part"
4850
4857
  }, {
4851
4858
  default: r(() => [
4852
- (i(), f(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
4859
+ (i(), m(Ze(n.comptype()), G(Y(n.compprops(l.option))), null, 16))
4853
4860
  ]),
4854
4861
  _: 1
4855
4862
  })), [
4856
- [c, !0]
4863
+ [u, !0]
4857
4864
  ]);
4858
4865
  }
4859
- const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
4866
+ const za = /* @__PURE__ */ I(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1"]]), Ka = /* @__PURE__ */ q({
4860
4867
  __name: "index",
4861
4868
  props: {
4862
4869
  filter: {
@@ -4874,8 +4881,8 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4874
4881
  });
4875
4882
  const n = L({});
4876
4883
  ze(() => {
4877
- var m;
4878
- (m = t.filter) == null || m.forEach((_) => {
4884
+ var f;
4885
+ (f = t.filter) == null || f.forEach((_) => {
4879
4886
  _.default !== null && (n.value[_.field] = _.default);
4880
4887
  });
4881
4888
  });
@@ -4889,36 +4896,36 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4889
4896
  cancelButton: {
4890
4897
  text: "重置"
4891
4898
  }
4892
- }, a = L(1), s = L(t.filter), c = L(t.dataPart), u = j(() => {
4893
- let m = l.params.id;
4894
- if (!m) {
4899
+ }, a = L(1), s = L(t.filter), u = L(t.dataPart), c = M(() => {
4900
+ let f = l.params.id;
4901
+ if (!f) {
4895
4902
  const _ = l.path.split("/");
4896
- m = _[_.length - 1];
4903
+ f = _[_.length - 1];
4897
4904
  }
4898
- return "/focusbi_report/view/" + m;
4899
- }), d = (m) => {
4900
- ms.get(u.value, { params: m }).then(({ data: _ }) => {
4901
- s.value = _.filter, c.value = _.dataPart, a.value++;
4905
+ return "/focusbi_report/view/" + f;
4906
+ }), d = (f) => {
4907
+ ms.get(c.value, { params: f }).then(({ data: _ }) => {
4908
+ s.value = _.filter, u.value = _.dataPart, a.value++;
4902
4909
  });
4903
4910
  };
4904
- return (m, _) => {
4905
- const T = Ae, w = de, J = Be, U = ae;
4906
- return i(), f(U, null, {
4911
+ return (f, _) => {
4912
+ const k = Ae, x = de, J = Oe, U = ae;
4913
+ return i(), m(U, null, {
4907
4914
  default: r(() => [
4908
- k(s).length > 0 ? (i(), f(w, {
4915
+ w(s).length > 0 ? (i(), m(x, {
4909
4916
  key: 0,
4910
4917
  span: 24
4911
4918
  }, {
4912
4919
  default: r(() => [
4913
- p(T, {
4920
+ p(k, {
4914
4921
  shadow: "never",
4915
4922
  class: "part-filter"
4916
4923
  }, {
4917
4924
  default: r(() => [
4918
- p(k(z), {
4919
- modelValue: k(n),
4920
- "onUpdate:modelValue": _[0] || (_[0] = (C) => Lt(n) ? n.value = C : null),
4921
- "form-items": k(s),
4925
+ p(w(z), {
4926
+ modelValue: w(n),
4927
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => Lt(n) ? n.value = T : null),
4928
+ "form-items": w(s),
4922
4929
  options: o,
4923
4930
  onSubmit: d
4924
4931
  }, null, 8, ["modelValue", "form-items"])
@@ -4927,28 +4934,28 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4927
4934
  })
4928
4935
  ]),
4929
4936
  _: 1
4930
- })) : x("", !0),
4931
- p(w, { span: 24 }, {
4937
+ })) : $("", !0),
4938
+ p(x, { span: 24 }, {
4932
4939
  default: r(() => [
4933
4940
  p(U, { gutter: 20 }, {
4934
4941
  default: r(() => [
4935
- (i(!0), h(S, null, B(k(c), (C, Z) => (i(), f(w, {
4942
+ (i(!0), h(E, null, O(w(u), (T, Z) => (i(), m(x, {
4936
4943
  key: Z,
4937
- span: C.col || 24
4944
+ span: T.col || 24
4938
4945
  }, {
4939
4946
  default: r(() => [
4940
- C.errMsg ? (i(), f(J, {
4947
+ T.errMsg ? (i(), m(J, {
4941
4948
  key: 1,
4942
- title: C.id + " 片段执行出错",
4949
+ title: T.id + " 片段执行出错",
4943
4950
  type: "error"
4944
4951
  }, {
4945
4952
  default: r(() => [
4946
- g(O(C.errMsg), 1)
4953
+ g(B(T.errMsg), 1)
4947
4954
  ]),
4948
4955
  _: 2
4949
- }, 1032, ["title"])) : (i(), f(za, {
4950
- key: k(a),
4951
- option: C
4956
+ }, 1032, ["title"])) : (i(), m(za, {
4957
+ key: w(a),
4958
+ option: T
4952
4959
  }, null, 8, ["option"]))
4953
4960
  ]),
4954
4961
  _: 2
@@ -4968,7 +4975,7 @@ const za = /* @__PURE__ */ $(Ga, [["render", Ja], ["__scopeId", "data-v-a5a65cc1
4968
4975
  const Wa = {
4969
4976
  __name: "report",
4970
4977
  setup(e) {
4971
- const t = useRoute(), l = j(() => {
4978
+ const t = useRoute(), l = M(() => {
4972
4979
  let n = t.params.id;
4973
4980
  if (!n) {
4974
4981
  const o = t.path.split("/");
@@ -4976,7 +4983,7 @@ const Wa = {
4976
4983
  }
4977
4984
  return "/focusbi_report/view/" + n;
4978
4985
  });
4979
- return (n, o) => (i(), f(se, { "schema-api": k(l) }, {
4986
+ return (n, o) => (i(), m(se, { "schema-api": w(l) }, {
4980
4987
  default: r((a) => [
4981
4988
  p(Ka, G(Y(a)), null, 16)
4982
4989
  ]),
@@ -5036,14 +5043,14 @@ function je(e) {
5036
5043
  children: []
5037
5044
  };
5038
5045
  return e.forEach((l) => {
5039
- var s, c;
5046
+ var s, u;
5040
5047
  let n = Object.assign({}, l);
5041
5048
  if (X((s = n.props) == null ? void 0 : s.style)) {
5042
- let u = "";
5043
- Object.keys((c = n.props) == null ? void 0 : c.style).forEach((d) => {
5044
- var m;
5045
- u += d + ":" + ((m = n.props) == null ? void 0 : m.style[d]) + ";";
5046
- }), n.props.style = u;
5049
+ let c = "";
5050
+ Object.keys((u = n.props) == null ? void 0 : u.style).forEach((d) => {
5051
+ var f;
5052
+ c += d + ":" + ((f = n.props) == null ? void 0 : f.style[d]) + ";";
5053
+ }), n.props.style = c;
5047
5054
  }
5048
5055
  const o = {
5049
5056
  span: n.span ?? 24,
@@ -5081,9 +5088,9 @@ const wt = (e) => {
5081
5088
  __name: "custom",
5082
5089
  setup(e) {
5083
5090
  const t = L([]), l = (n, o) => (t.value = jt(n), n);
5084
- return (n, o) => (i(), f(se, { "schema-handler": l }, {
5091
+ return (n, o) => (i(), m(se, { "schema-handler": l }, {
5085
5092
  default: r(() => [
5086
- p(k(es), { schema: k(t) }, null, 8, ["schema"])
5093
+ p(w(es), { schema: w(t) }, null, 8, ["schema"])
5087
5094
  ]),
5088
5095
  _: 1
5089
5096
  }));
@@ -5101,25 +5108,25 @@ const ls = (e) => {
5101
5108
  if (e.path === "#")
5102
5109
  return ge;
5103
5110
  switch (e.page_type) {
5104
- case D.list:
5111
+ case j.list:
5105
5112
  return gt;
5106
- case D.form:
5113
+ case j.form:
5107
5114
  return xe;
5108
- case D.custom:
5109
- case D.localComp:
5115
+ case j.custom:
5116
+ case j.localComp:
5110
5117
  return t(e.view || "");
5111
- case D.tree:
5118
+ case j.tree:
5112
5119
  return Ma;
5113
- case D.report:
5120
+ case j.report:
5114
5121
  return Wa;
5115
- case D.customSchema:
5122
+ case j.customSchema:
5116
5123
  return ts;
5117
5124
  }
5118
5125
  return ge;
5119
5126
  };
5120
5127
  function ns(e) {
5121
5128
  let t = e.path;
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;
5129
+ return e.type === R.menu && e.page_type === j.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5123
5130
  }
5124
5131
  function os(e) {
5125
5132
  return (e.path + e.name).split("/").filter((t) => t).join("_");
@@ -5141,7 +5148,7 @@ const St = (e) => {
5141
5148
  },
5142
5149
  children: e.children ? e.children.map((n) => St(n)) : []
5143
5150
  };
5144
- if (e.page_type === D.entity) {
5151
+ if (e.page_type === j.entity) {
5145
5152
  const n = e.path + "/list", o = e.path + "/form", a = e.path + "/:id", s = [{
5146
5153
  path: n,
5147
5154
  name: e.name + "列表" + e.id,
@@ -5223,30 +5230,30 @@ function ss(e) {
5223
5230
  n();
5224
5231
  return;
5225
5232
  }
5226
- await E.dispatch("user/info");
5227
- const o = await E.dispatch("user/loadRemoteRoutes"), a = as(o);
5233
+ await S.dispatch("user/info");
5234
+ const o = await S.dispatch("user/loadRemoteRoutes"), a = as(o);
5228
5235
  a.forEach((s) => {
5229
- s.routes.forEach((c) => {
5236
+ s.routes.forEach((u) => {
5230
5237
  e.addRoute({
5231
5238
  path: "/",
5232
5239
  component: ht,
5233
- children: [c]
5240
+ children: [u]
5234
5241
  });
5235
5242
  });
5236
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5243
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), S.commit("user/updateRemoteRouter", a), await e.replace(t), n();
5237
5244
  });
5238
5245
  }
5239
5246
  function is(e) {
5240
5247
  e.beforeEach(async (t, l, n) => {
5241
- var c;
5242
- const a = [E.state.settings.title || ""], s = t.matched.length;
5243
- for (let u = s; u > s - 3; u--) {
5244
- const d = t.matched[u - 1];
5245
- (c = d == null ? void 0 : d.meta) != null && c.title && a.push(d.meta.title + "");
5248
+ var u;
5249
+ const a = [S.state.settings.title || ""], s = t.matched.length;
5250
+ for (let c = s; c > s - 3; c--) {
5251
+ const d = t.matched[c - 1];
5252
+ (u = d == null ? void 0 : d.meta) != null && u.title && a.push(d.meta.title + "");
5246
5253
  }
5247
5254
  a.length > 1 && (document.title = a.reverse().join("-")), n();
5248
5255
  }), e.afterEach(async (t, l, n) => {
5249
- Object.keys(t.meta).length > 0 && await E.dispatch("app/setCurrentMeta", t.meta);
5256
+ Object.keys(t.meta).length > 0 && await S.dispatch("app/setCurrentMeta", t.meta);
5250
5257
  });
5251
5258
  }
5252
5259
  function rs(e) {
@@ -5254,7 +5261,7 @@ function rs(e) {
5254
5261
  }
5255
5262
  rs(K);
5256
5263
  function cs() {
5257
- return E.state.user.token;
5264
+ return S.state.user.token;
5258
5265
  }
5259
5266
  function Ge(e) {
5260
5267
  Xl({
@@ -5273,9 +5280,9 @@ const ps = {
5273
5280
  }
5274
5281
  }, us = {
5275
5282
  onFulfilled(e) {
5276
- var n, o, a, s, c, u, d;
5283
+ var n, o, a, s, u, c, d;
5277
5284
  if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
5278
- const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5285
+ const f = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5279
5286
  if (e.data.code === 401) {
5280
5287
  Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5281
5288
  showClose: !1,
@@ -5288,12 +5295,12 @@ const ps = {
5288
5295
  });
5289
5296
  return;
5290
5297
  } else
5291
- Ge(m);
5292
- return Promise.reject(m);
5298
+ Ge(f);
5299
+ return Promise.reject(f);
5293
5300
  }
5294
- let l = (c = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : c._message_box;
5301
+ let l = (u = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : u._message_box;
5295
5302
  return l !== void 0 && ($e(l) && (l = {
5296
- message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
5303
+ message: (d = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : d._message_box
5297
5304
  }), Ue({
5298
5305
  title: "提示",
5299
5306
  type: "success",
@@ -5356,7 +5363,7 @@ const _s = {
5356
5363
  return;
5357
5364
  let l = e;
5358
5365
  if (t.value.parent)
5359
- for (let u = 0; u < t.value.parent; u++)
5366
+ for (let c = 0; c < t.value.parent; c++)
5360
5367
  l.parentElement && (l = l.parentElement);
5361
5368
  l.classList.add("devtool-hover");
5362
5369
  const n = document.createElement("i");
@@ -5366,14 +5373,14 @@ const _s = {
5366
5373
  const o = document.createElement("span");
5367
5374
  o.className = "dev-action-edit", o.title = "编辑";
5368
5375
  const a = document.createElement("i");
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 } });
5376
+ a.className = "iconfont ra-editor1", o.appendChild(a), o.onclick = (c) => {
5377
+ W.emit("dev-action", { event: c, data: { type: "edit", devId: t.value.devId } });
5371
5378
  }, n.appendChild(o);
5372
5379
  const s = document.createElement("span");
5373
5380
  s.className = "dev-action-del", s.title = "删除";
5374
- const c = document.createElement("i");
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 } });
5381
+ const u = document.createElement("i");
5382
+ u.className = "iconfont ra-cut", s.appendChild(u), s.onclick = (c) => {
5383
+ W.emit("dev-action", { event: c, data: { type: "del", devId: t.value.devId } });
5377
5384
  }, n.appendChild(s), l.insertBefore(n, l.firstChild);
5378
5385
  }
5379
5386
  }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5391,7 +5398,7 @@ function $i(e) {
5391
5398
  const t = A(me, e), l = Nt(Al), n = Es(t), o = t.plugins || [];
5392
5399
  o.unshift(n), o.forEach((a) => {
5393
5400
  xs(l, a);
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(() => ({
5401
+ }), t != null && t.mock && Ul(), ce = Ne(t.axios), S.dispatch("setHttp", ce).then(), S.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), S.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ce, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, $l(() => ({
5395
5402
  "X-Token": Me()
5396
5403
  })), K.isReady().then(() => l.mount("#app"));
5397
5404
  }
@@ -5403,7 +5410,7 @@ function vs(e, t = {}) {
5403
5410
  function gs(e = []) {
5404
5411
  e.forEach((t) => {
5405
5412
  K.addRoute(t);
5406
- }), E.commit("user/setCustomRoutes", e);
5413
+ }), S.commit("user/setCustomRoutes", e);
5407
5414
  }
5408
5415
  function ks(e, t) {
5409
5416
  t.forEach((l) => {
@@ -5422,7 +5429,7 @@ function Ss(e = {}) {
5422
5429
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5423
5430
  return;
5424
5431
  }
5425
- E.registerModule(l, e[l]);
5432
+ S.registerModule(l, e[l]);
5426
5433
  });
5427
5434
  }
5428
5435
  function xs(e, t) {
@@ -5434,7 +5441,7 @@ function Es(e) {
5434
5441
  components: { VIcon: Il },
5435
5442
  directives: ys,
5436
5443
  use: [
5437
- E,
5444
+ S,
5438
5445
  K,
5439
5446
  [Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5440
5447
  ]
@@ -5448,7 +5455,7 @@ export {
5448
5455
  R as MenuType,
5449
5456
  Xl as Message,
5450
5457
  Ue as MessageBox,
5451
- D as PageType,
5458
+ j as PageType,
5452
5459
  Wo as allSso,
5453
5460
  $i as createAdmin,
5454
5461
  W as eventBus,