@okiss/oms 0.0.46 → 0.0.48

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