@okiss/oms 0.0.52 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,19 +1,19 @@
1
1
  var At = Object.defineProperty;
2
2
  var Pt = (e, t, l) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
3
  var R = (e, t, l) => (Pt(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as v, openBlock as i, createBlock as f, createVNode as p, computed as j, createTextVNode as k, withCtx as c, TransitionGroup as Lt, 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 Mt, ref as M, normalizeStyle as jt, createElementVNode as _, Transition as Dt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as G, guardReactiveProps as Y, unref as S, withDirectives as ie, vModelText as he, onMounted as Qe, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
5
- import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Xe, showEleByClassName as Ye, waterMarker as Zt, Cache as be, isExternal as Ve, getQueryParam as et, createIFrame as Qt, strVarReplace as Q, obj2Param as Xt, isObject as X, isString as $e, effectDataTrans as Yt, isArray as tt } from "@okiss/utils";
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Rt, resolveComponent as w, openBlock as i, createBlock as f, createVNode as p, computed as M, createTextVNode as S, withCtx as c, TransitionGroup as Lt, createElementBlock as h, Fragment as I, renderList as O, toDisplayString as B, normalizeClass as H, renderSlot as le, mergeProps as F, createCommentVNode as E, toRefs as Mt, ref as D, normalizeStyle as Dt, createElementVNode as b, Transition as jt, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Xe, normalizeProps as G, guardReactiveProps as Y, unref as x, withDirectives as ie, vModelText as be, onMounted as Ze, onUnmounted as Nt, resolveDirective as Vt, isRef as qt, getCurrentInstance as Ut, h as Ht, toRaw as Ft, createApp as Gt } from "vue";
5
+ import { addNewStyle as Jt, addNewStyleTag as zt, queryParams as Kt, logGroup as Wt, compactObject as Qe, showEleByClassName as Ye, waterMarker as Xt, Cache as re, isExternal as Ve, getQueryParam as et, createIFrame as Zt, strVarReplace as Z, obj2Param as Qt, isObject as Q, isString as Ie, effectDataTrans as Yt, isArray as tt } from "@okiss/utils";
6
6
  import _e from "mockjs";
7
- import el, { cloneDeep as y, merge as A, get as ne, unset as lt, isObject as tl } from "lodash";
7
+ import el, { cloneDeep as v, merge as A, get as ne, unset as lt, isObject as tl } from "lodash";
8
8
  import nt from "element-plus/lib/locale/lang/zh-cn";
9
- import Ie from "axios";
9
+ import $e from "axios";
10
10
  import N from "js-cookie";
11
11
  import { createStore as ll, useStore as ot, mapGetters as Ce } from "vuex";
12
12
  import nl, { ElMessage as ol, ElMessageBox as at, ElCard as al, ElRow as sl, ElCol as il } from "element-plus";
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
- import { useRoute as pe, onBeforeRouteLeave as rl, useRouter as st, createRouter as cl, createWebHashHistory as ul, onBeforeRouteUpdate as pl } from "vue-router";
16
- import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as ue, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as de, ElDrawer as ut, ElDropdownItem as _l, ElDropdownMenu as yl, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as xl, ElBacktop as El, ElMessage as $l, ElAlert as Oe, ElTree as Il, ElCard as Ae } from "element-plus/es";
15
+ import { useRoute as de, onBeforeRouteLeave as rl, useRouter as st, createRouter as cl, createWebHashHistory as ul, onBeforeRouteUpdate as pl } from "vue-router";
16
+ import { ElBreadcrumbItem as dl, ElBreadcrumb as ml, ElRow as ae, ElMain as fl, ElAside as hl, ElContainer as bl, ElDivider as it, ElButton as pe, ElOption as Te, ElSelect as Be, ElFormItem as rt, ElForm as ct, ElCol as me, ElDrawer as ut, ElDropdownItem as _l, ElDropdownMenu as yl, ElDropdown as vl, ElMenuItem as gl, ElSubMenu as kl, ElOptionGroup as wl, ElMenu as Sl, ElScrollbar as xl, ElBacktop as El, ElMessage as Il, ElAlert as Oe, ElTree as $l, 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";
@@ -72,13 +72,13 @@ const Ml = /* @__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 && Rt("vsPath", (n = (o = window == null ? void 0 : window.OmsOptions) == null ? void 0 : o.form) == null ? void 0 : n.vsPath), (a, s) => {
75
- const r = v("router-view");
75
+ const r = w("router-view");
76
76
  return i(), f(r);
77
77
  };
78
78
  }
79
79
  });
80
80
  var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
81
- const jl = {
81
+ const Dl = {
82
82
  saveApi: "/save",
83
83
  afterSubmit: "",
84
84
  afterReset: "goback",
@@ -467,7 +467,7 @@ const jl = {
467
467
  type: "success"
468
468
  }
469
469
  }
470
- ], Dl = {
470
+ ], jl = {
471
471
  exportAble: !0,
472
472
  filter: [
473
473
  {
@@ -673,7 +673,7 @@ const jl = {
673
673
  label: "span"
674
674
  }
675
675
  ]
676
- }, Ul = { form: jl, table: Dl, listMock: Nl, layoutForm: Vl, layoutSection: ql }, Hl = [
676
+ }, Ul = { form: Dl, table: jl, listMock: Nl, layoutForm: Vl, layoutSection: ql }, Hl = [
677
677
  {
678
678
  method: ee.POST,
679
679
  url: "/login",
@@ -750,8 +750,9 @@ const jl = {
750
750
  pre: "green"
751
751
  },
752
752
  serviceOffLineNotice: "当前页面功能正在维护, 请稍后再试~~~",
753
- formMutex: !0
754
- }, me = {
753
+ formMutex: !0,
754
+ captcha: !0
755
+ }, fe = {
755
756
  axios: Gl,
756
757
  settings: pt,
757
758
  plugins: [],
@@ -766,15 +767,15 @@ function dt(e) {
766
767
  dt(Fl);
767
768
  function mt(e) {
768
769
  var o;
769
- let t = e.url, l = e.baseURL || ((o = me.axios) == null ? void 0 : o.baseURL);
770
+ let t = e.url, l = e.baseURL || ((o = fe.axios) == null ? void 0 : o.baseURL);
770
771
  return l || (l = ""), typeof t == "string" ? (t = ("/" + l + t).split("/").filter((n) => n).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
771
772
  }
772
773
  function Jl() {
773
774
  Object.keys(we).forEach((e) => {
774
775
  const t = we[e], l = mt(t);
775
776
  _e.mock(l, t.method, function(o) {
776
- const { url: n, type: a, body: s } = o, r = Kt(n), u = s ? JSON.parse(s) : {}, d = t.response({ query: r, data: u }), m = _e.mock(d);
777
- return Wt(n, { type: a, query: r, data: u, response: m }), _e.mock(m);
777
+ const { url: n, type: a, body: s } = o, r = Kt(n), d = s ? JSON.parse(s) : {}, u = t.response({ query: r, data: d }), m = _e.mock(u);
778
+ return Wt(n, { type: a, query: r, data: d, response: m }), _e.mock(m);
778
779
  });
779
780
  });
780
781
  }
@@ -783,7 +784,7 @@ function Me() {
783
784
  return N.get(Le) || "";
784
785
  }
785
786
  function zl(e) {
786
- const t = new Date((/* @__PURE__ */ new Date()).getTime() + (w.state.settings.tokenExpire || 864e5));
787
+ const t = new Date((/* @__PURE__ */ new Date()).getTime() + (g.state.settings.tokenExpire || 864e5));
787
788
  return N.set(Le, e, { expires: t });
788
789
  }
789
790
  function ft() {
@@ -801,7 +802,8 @@ const Kl = {
801
802
  resource: {},
802
803
  roleIds: [],
803
804
  path: "",
804
- env: ""
805
+ env: "",
806
+ expired: !1
805
807
  }, Wl = {
806
808
  namespaced: !0,
807
809
  state: Kl,
@@ -834,8 +836,12 @@ const Kl = {
834
836
  resource: {},
835
837
  roleIds: [],
836
838
  path: "",
837
- env: ""
839
+ env: "",
840
+ expired: !1
838
841
  });
842
+ },
843
+ SET_EXPIRED: (e) => {
844
+ e.expired = !e.expired;
839
845
  }
840
846
  },
841
847
  actions: {
@@ -866,11 +872,11 @@ const Kl = {
866
872
  url: "/user/info",
867
873
  method: "GET"
868
874
  }).then((n) => {
869
- var r, u, d, m, b, g;
875
+ var r, d, u, m, _, k;
870
876
  const a = ((r = n.data) == null ? void 0 : r.role_ids) || [];
871
- e("updateState", { key: "name", value: (u = n.data) == null ? void 0 : u.name }), e("updateState", { key: "nickname", value: (d = n.data) == null ? void 0 : d.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (m = n.data) == null ? void 0 : m.env });
872
- const s = ((b = n.data) == null ? void 0 : b.website) || {};
873
- e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (g = n.data) == null ? void 0 : g.name), l(!0);
877
+ e("updateState", { key: "name", value: (d = n.data) == null ? void 0 : d.name }), e("updateState", { key: "nickname", value: (u = n.data) == null ? void 0 : u.nickname }), e("updateState", { key: "roleIds", value: a }), e("updateState", { key: "env", value: (m = n.data) == null ? void 0 : m.env });
878
+ const s = ((_ = n.data) == null ? void 0 : _.website) || {};
879
+ e("settings/updateSettings", s, { root: !0 }), !N.get("username") && N.set("username", (k = n.data) == null ? void 0 : k.name), l(!0);
874
880
  }).catch((n) => {
875
881
  o(n);
876
882
  }) : o("http client not init");
@@ -892,11 +898,14 @@ const Kl = {
892
898
  o(a);
893
899
  });
894
900
  });
901
+ },
902
+ SetExpired({ commit: e }) {
903
+ e("SET_EXPIRED");
895
904
  }
896
905
  }
897
- }, Zl = y(pt), Ql = {
906
+ }, Xl = v(pt), Zl = {
898
907
  namespaced: !0,
899
- state: Zl,
908
+ state: Xl,
900
909
  mutations: {
901
910
  updateSettings(e, t) {
902
911
  e = A(e, t);
@@ -907,7 +916,7 @@ const Kl = {
907
916
  e("updateSettings", l);
908
917
  }
909
918
  }
910
- }, Xl = {
919
+ }, Ql = {
911
920
  sidebar: {
912
921
  opened: N.get("sidebarStatus") ? !!N.get("sidebarStatus") : !0,
913
922
  withoutAnimation: !1
@@ -919,7 +928,7 @@ const Kl = {
919
928
  baseURL: ""
920
929
  }, Yl = {
921
930
  namespaced: !0,
922
- state: Xl,
931
+ state: Ql,
923
932
  mutations: {
924
933
  TOGGLE_SIDEBAR: (e) => {
925
934
  e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? N.set("sidebarStatus", "1") : N.set("sidebarStatus", "0");
@@ -982,7 +991,7 @@ const Kl = {
982
991
  e("SET_CURRENT_CELLITEM", t);
983
992
  }
984
993
  }
985
- }, w = ll({
994
+ }, g = ll({
986
995
  state: void 0,
987
996
  getters: {
988
997
  http: (e) => e.http,
@@ -1010,11 +1019,11 @@ const Kl = {
1010
1019
  },
1011
1020
  modules: {
1012
1021
  user: Wl,
1013
- settings: Ql,
1022
+ settings: Zl,
1014
1023
  app: Yl,
1015
1024
  builderSchema: tn
1016
1025
  }
1017
- }), ln = ol, Ue = at, nn = Ie.CancelToken, re = {
1026
+ }), ln = ol, Ue = at, nn = $e.CancelToken, ce = {
1018
1027
  taskList: {},
1019
1028
  cacheList: /* @__PURE__ */ new Map(),
1020
1029
  uniqueId(e) {
@@ -1052,8 +1061,8 @@ const Kl = {
1052
1061
  }
1053
1062
  }, on = {
1054
1063
  onFulfilled: function(e) {
1055
- return e.cacheEnable === !1 || (re.pending(e) && re.delTask(e), e.cancelToken = new nn((t) => {
1056
- re.addTask(e, t);
1064
+ return e.cacheEnable === !1 || (ce.pending(e) && ce.delTask(e), e.cancelToken = new nn((t) => {
1065
+ ce.addTask(e, t);
1057
1066
  })), e;
1058
1067
  },
1059
1068
  onRejected(e) {
@@ -1061,13 +1070,13 @@ const Kl = {
1061
1070
  }
1062
1071
  }, an = {
1063
1072
  onFulfilled: function(e) {
1064
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && re.addCache(e.config, e.data), e;
1073
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ce.addCache(e.config, e.data), e;
1065
1074
  },
1066
1075
  onRejected(e) {
1067
1076
  return Promise.reject(e);
1068
1077
  }
1069
1078
  }, ht = {};
1070
- function xi(e, t) {
1079
+ function Ei(e, t) {
1071
1080
  ht[e] = t;
1072
1081
  }
1073
1082
  function sn(e) {
@@ -1079,20 +1088,20 @@ const rn = /* @__PURE__ */ q({
1079
1088
  const e = ot(), t = sn("dashboard");
1080
1089
  if (t)
1081
1090
  return () => p("span", null, [p(t, null, null)]);
1082
- const l = j(() => e.getters.name);
1091
+ const l = M(() => e.getters.name);
1083
1092
  return () => p("div", {
1084
1093
  class: "dashboard-container"
1085
1094
  }, [p("div", {
1086
1095
  class: "dashboard-text"
1087
- }, [k("Hi "), l.value, k(" 😄")])]);
1096
+ }, [S("Hi "), l.value, S(" 😄")])]);
1088
1097
  }
1089
1098
  });
1090
- const I = (e, t) => {
1099
+ const $ = (e, t) => {
1091
1100
  const l = e.__vccOpts || e;
1092
1101
  for (const [o, n] of t)
1093
1102
  l[o] = n;
1094
1103
  return l;
1095
- }, cn = /* @__PURE__ */ I(rn, [["__scopeId", "data-v-3122b6c7"]]);
1104
+ }, cn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-3122b6c7"]]);
1096
1105
  const un = {
1097
1106
  data() {
1098
1107
  return {
@@ -1149,14 +1158,14 @@ function mn(e, t, l, o, n, a) {
1149
1158
  default: c(() => [
1150
1159
  p(Lt, { name: "breadcrumb" }, {
1151
1160
  default: c(() => [
1152
- (i(!0), h(E, null, O(n.levelList, (u, d) => (i(), f(s, {
1153
- key: u.path
1161
+ (i(!0), h(I, null, O(n.levelList, (d, u) => (i(), f(s, {
1162
+ key: d.path
1154
1163
  }, {
1155
1164
  default: c(() => [
1156
- u.path.indexOf("/DIR_") === 0 && u.redirect === void 0 || d === n.levelList.length - 1 ? (i(), h("span", pn, B(u.meta.title), 1)) : (i(), h("a", {
1165
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || u === n.levelList.length - 1 ? (i(), h("span", pn, B(d.meta.title), 1)) : (i(), h("a", {
1157
1166
  key: 1,
1158
- onClick: (m) => a.handleLink(u)
1159
- }, B(u.meta.title), 9, dn))
1167
+ onClick: (m) => a.handleLink(d)
1168
+ }, B(d.meta.title), 9, dn))
1160
1169
  ]),
1161
1170
  _: 2
1162
1171
  }, 1024))), 128))
@@ -1167,7 +1176,7 @@ function mn(e, t, l, o, n, a) {
1167
1176
  _: 1
1168
1177
  });
1169
1178
  }
1170
- const fn = /* @__PURE__ */ I(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1179
+ const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1171
1180
  name: "Hamburger",
1172
1181
  props: {
1173
1182
  isActive: {
@@ -1183,7 +1192,7 @@ const fn = /* @__PURE__ */ I(un, [["render", mn], ["__scopeId", "data-v-fa74804e
1183
1192
  }
1184
1193
  };
1185
1194
  function bn(e, t, l, o, n, a) {
1186
- const s = v("v-icon");
1195
+ const s = w("v-icon");
1187
1196
  return i(), h("div", {
1188
1197
  style: { padding: "0 15px" },
1189
1198
  onClick: t[0] || (t[0] = (...r) => a.toggleClick && a.toggleClick(...r))
@@ -1194,7 +1203,7 @@ function bn(e, t, l, o, n, a) {
1194
1203
  }, null, 8, ["class"])
1195
1204
  ]);
1196
1205
  }
1197
- const _n = /* @__PURE__ */ I(hn, [["render", bn]]);
1206
+ const _n = /* @__PURE__ */ $(hn, [["render", bn]]);
1198
1207
  const yn = {};
1199
1208
  function vn(e, t) {
1200
1209
  const l = ae, o = fl, n = hl, a = bl;
@@ -1229,7 +1238,7 @@ function vn(e, t) {
1229
1238
  _: 3
1230
1239
  });
1231
1240
  }
1232
- const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1241
+ const bt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1233
1242
  type: "input",
1234
1243
  name: "文本框",
1235
1244
  default: {
@@ -1483,7 +1492,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1483
1492
  }
1484
1493
  ],
1485
1494
  trans(e) {
1486
- const t = y(e);
1495
+ const t = v(e);
1487
1496
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
1488
1497
  }
1489
1498
  }, xn = {
@@ -1588,7 +1597,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1588
1597
  }
1589
1598
  }
1590
1599
  ]
1591
- }, $n = {
1600
+ }, In = {
1592
1601
  type: "code",
1593
1602
  name: "Code",
1594
1603
  default: {
@@ -1608,7 +1617,7 @@ const bt = /* @__PURE__ */ I(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1608
1617
  label: "字段key"
1609
1618
  }
1610
1619
  ]
1611
- }, In = {
1620
+ }, $n = {
1612
1621
  type: "json",
1613
1622
  name: "json",
1614
1623
  default: {
@@ -1814,8 +1823,8 @@ P(En);
1814
1823
  P(On);
1815
1824
  P(xn);
1816
1825
  P(An);
1817
- P($n);
1818
1826
  P(In);
1827
+ P($n);
1819
1828
  P(Cn);
1820
1829
  P(Bn);
1821
1830
  P(Tn);
@@ -1922,9 +1931,9 @@ const ye = {
1922
1931
  labelPosition: "top",
1923
1932
  submitButton: !1,
1924
1933
  cancelButton: !1
1925
- }, je = [];
1934
+ }, De = [];
1926
1935
  Object.keys(Se).forEach((e) => {
1927
- je.push({ value: e, label: Se[e].name });
1936
+ De.push({ value: e, label: Se[e].name });
1928
1937
  });
1929
1938
  const Rn = {
1930
1939
  options: {
@@ -1947,7 +1956,7 @@ const Rn = {
1947
1956
  type: "select",
1948
1957
  field: "type",
1949
1958
  label: "类型",
1950
- options: y(je)
1959
+ options: v(De)
1951
1960
  },
1952
1961
  {
1953
1962
  type: "input",
@@ -1996,7 +2005,7 @@ const Rn = {
1996
2005
  tableStruct: "",
1997
2006
  activeName: "1",
1998
2007
  currentCtrlType: "input",
1999
- types: y(je)
2008
+ types: v(De)
2000
2009
  };
2001
2010
  },
2002
2011
  computed: {
@@ -2011,7 +2020,7 @@ const Rn = {
2011
2020
  deep: !0,
2012
2021
  immediate: !0,
2013
2022
  handler(e) {
2014
- const t = y(e);
2023
+ const t = v(e);
2015
2024
  e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = A(this.builderSchema, { options: t }), this.key++);
2016
2025
  }
2017
2026
  },
@@ -2036,12 +2045,12 @@ const Rn = {
2036
2045
  currentCtrlType: {
2037
2046
  handler(e) {
2038
2047
  const t = this.ctrlMap[e];
2039
- this.ctrlSchema = y({
2040
- options: y(ye),
2041
- formItems: y(t.builder)
2048
+ this.ctrlSchema = v({
2049
+ options: v(ye),
2050
+ formItems: v(t.builder)
2042
2051
  });
2043
2052
  const l = ne(this.builderSchema, this.activeIndex);
2044
- this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2053
+ this.ctrlOptions = v(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2045
2054
  }
2046
2055
  }
2047
2056
  },
@@ -2061,25 +2070,25 @@ const Rn = {
2061
2070
  const t = "formItems";
2062
2071
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2063
2072
  const l = this.ctrlMap[e];
2064
- this.activeCtrl = l, this.builderSchema[t].push(y(l.default)), this.ctrlSchema = y({
2065
- options: y(ye),
2066
- formItems: y(l.builder)
2073
+ this.activeCtrl = l, this.builderSchema[t].push(v(l.default)), this.ctrlSchema = v({
2074
+ options: v(ye),
2075
+ formItems: v(l.builder)
2067
2076
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2068
2077
  },
2069
2078
  removeOne() {
2070
- lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2079
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2071
2080
  },
2072
2081
  clicklabel() {
2073
2082
  const e = this.activeIndex;
2074
2083
  if (e.match(this.activeIndexReg)) {
2075
- const l = y(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
2084
+ const l = v(ne(this.builderSchema, e)), o = l.type, n = this.ctrlMap[o];
2076
2085
  if (!n) {
2077
2086
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
2078
2087
  return;
2079
2088
  }
2080
- this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = y({
2081
- options: y(ye),
2082
- formItems: y(n.builder)
2089
+ this.currentCtrlType = o, this.ctrlOptions = l, this.ctrlSchema = v({
2090
+ options: v(ye),
2091
+ formItems: v(n.builder)
2083
2092
  }), this.ctrlKey++;
2084
2093
  }
2085
2094
  },
@@ -2095,31 +2104,31 @@ const Rn = {
2095
2104
  }
2096
2105
  };
2097
2106
  function Mn(e, t, l, o, n, a) {
2098
- const s = v("v-form"), r = it, u = ue, d = v("JsonView"), m = v("VButton"), b = Te, g = Be, x = rt, J = ct, U = v("dev-layout");
2107
+ const s = w("v-form"), r = it, d = pe, u = w("JsonView"), m = w("VButton"), _ = Te, k = Be, y = rt, J = ct, U = w("dev-layout");
2099
2108
  return i(), f(U, null, {
2100
2109
  main: c(() => [
2101
2110
  n.builderSchema.formItems ? (i(), f(s, F({
2102
2111
  ref: "form",
2103
2112
  key: n.key,
2104
2113
  dev: !0
2105
- }, n.builderSchema), null, 16)) : $("", !0),
2114
+ }, n.builderSchema), null, 16)) : E("", !0),
2106
2115
  p(r),
2107
- p(u, {
2116
+ p(d, {
2108
2117
  type: "primary",
2109
2118
  onClick: a.saveSchema
2110
2119
  }, {
2111
2120
  default: c(() => [
2112
- k("保存页面配置")
2121
+ S("保存页面配置")
2113
2122
  ]),
2114
2123
  _: 1
2115
2124
  }, 8, ["onClick"]),
2116
- k("    "),
2125
+ S("    "),
2117
2126
  p(m, {
2118
2127
  text: "PageSchema",
2119
2128
  type: "modal"
2120
2129
  }, {
2121
2130
  default: c(() => [
2122
- p(d, { data: a.getSaveSchema }, null, 8, ["data"])
2131
+ p(u, { data: a.getSaveSchema }, null, 8, ["data"])
2123
2132
  ]),
2124
2133
  _: 1
2125
2134
  })
@@ -2127,15 +2136,15 @@ function Mn(e, t, l, o, n, a) {
2127
2136
  "right-aside": c(() => [
2128
2137
  n.activeIndex ? (i(), f(J, { key: 0 }, {
2129
2138
  default: c(() => [
2130
- p(x, { label: "控件类型" }, {
2139
+ p(y, { label: "控件类型" }, {
2131
2140
  default: c(() => [
2132
- p(g, {
2141
+ p(k, {
2133
2142
  modelValue: n.currentCtrlType,
2134
2143
  "onUpdate:modelValue": t[0] || (t[0] = (T) => n.currentCtrlType = T)
2135
2144
  }, {
2136
2145
  default: c(() => [
2137
- (i(!0), h(E, null, O(n.types, (T, Z) => (i(), f(b, {
2138
- key: Z,
2146
+ (i(!0), h(I, null, O(n.types, (T, X) => (i(), f(_, {
2147
+ key: X,
2139
2148
  label: T.label,
2140
2149
  value: T.value
2141
2150
  }, null, 8, ["label", "value"]))), 128))
@@ -2147,7 +2156,7 @@ function Mn(e, t, l, o, n, a) {
2147
2156
  })
2148
2157
  ]),
2149
2158
  _: 1
2150
- })) : $("", !0),
2159
+ })) : E("", !0),
2151
2160
  (i(), f(s, F({
2152
2161
  key: n.ctrlKey,
2153
2162
  modelValue: n.ctrlOptions,
@@ -2157,7 +2166,7 @@ function Mn(e, t, l, o, n, a) {
2157
2166
  _: 1
2158
2167
  });
2159
2168
  }
2160
- const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), Dn = {
2169
+ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), jn = {
2161
2170
  type: "input",
2162
2171
  name: "文本框",
2163
2172
  default: {
@@ -2303,7 +2312,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2303
2312
  }
2304
2313
  ],
2305
2314
  trans(e) {
2306
- const t = y(e);
2315
+ const t = v(e);
2307
2316
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
2308
2317
  }
2309
2318
  }, Vn = {
@@ -2617,7 +2626,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2617
2626
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2618
2627
  }
2619
2628
  ]
2620
- }, Zn = {
2629
+ }, Xn = {
2621
2630
  span: qn,
2622
2631
  enum: Un,
2623
2632
  html: Hn,
@@ -2627,7 +2636,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2627
2636
  link: zn,
2628
2637
  rich: Kn,
2629
2638
  tpl: Wn
2630
- }, Qn = {
2639
+ }, Zn = {
2631
2640
  type: "jump",
2632
2641
  name: "跳转",
2633
2642
  default: {
@@ -2674,7 +2683,7 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2674
2683
  }
2675
2684
  }
2676
2685
  ]
2677
- }, Xn = {
2686
+ }, Qn = {
2678
2687
  type: "api",
2679
2688
  name: "接口请求",
2680
2689
  default: {
@@ -2852,8 +2861,8 @@ const jn = /* @__PURE__ */ I(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2852
2861
  }
2853
2862
  ]
2854
2863
  }, to = {
2855
- jump: Qn,
2856
- api: Xn,
2864
+ jump: Zn,
2865
+ api: Qn,
2857
2866
  form: Yn,
2858
2867
  table: eo
2859
2868
  };
@@ -2886,8 +2895,8 @@ const lo = {
2886
2895
  ctrlName: "",
2887
2896
  activeIndex: void 0,
2888
2897
  ctrlMap: {
2889
- filter: { input: Dn, select: Nn, date: Vn },
2890
- headers: Zn,
2898
+ filter: { input: jn, select: Nn, date: Vn },
2899
+ headers: Xn,
2891
2900
  buttons: to
2892
2901
  },
2893
2902
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
@@ -2949,13 +2958,13 @@ const lo = {
2949
2958
  currentCtrlType: {
2950
2959
  handler(e) {
2951
2960
  const t = this.ctrlMap[this.activeBrick][e];
2952
- this.ctrlSchema = y({
2953
- options: y(ve),
2954
- formItems: y(t.builder)
2961
+ this.ctrlSchema = v({
2962
+ options: v(ve),
2963
+ formItems: v(t.builder)
2955
2964
  });
2956
2965
  const l = ne(this.builderSchema, this.activeIndex);
2957
2966
  l.type = e;
2958
- const o = y(l);
2967
+ const o = v(l);
2959
2968
  this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
2960
2969
  }
2961
2970
  }
@@ -2996,18 +3005,18 @@ const lo = {
2996
3005
  this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
2997
3006
  return;
2998
3007
  }
2999
- this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(y(n[e].default)), this.ctrlSchema = y({
3000
- options: y(ve),
3001
- formItems: y(n[e].builder)
3008
+ this.activeCtrl = n[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(v(n[e].default)), this.ctrlSchema = v({
3009
+ options: v(ve),
3010
+ formItems: v(n[e].builder)
3002
3011
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3003
3012
  },
3004
3013
  removeOne() {
3005
- lt(this.builderSchema, this.activeIndex), this.builderSchema = y(Xe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3014
+ lt(this.builderSchema, this.activeIndex), this.builderSchema = v(Qe(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3006
3015
  },
3007
3016
  clicklabel() {
3008
3017
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
3009
3018
  if (t) {
3010
- const l = y(ne(this.builderSchema, e));
3019
+ const l = v(ne(this.builderSchema, e));
3011
3020
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
3012
3021
  let o = this.builderSchema[t[1]][parseInt(t[2])].type;
3013
3022
  t[1] === "headers" && o === void 0 && (o = "span");
@@ -3016,9 +3025,9 @@ const lo = {
3016
3025
  this.activeBrick, this.$message({ type: "warning", message: "尚未支持此组件的UI编辑" });
3017
3026
  return;
3018
3027
  }
3019
- this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = y({
3020
- options: y(ve),
3021
- formItems: y(n.builder)
3028
+ this.ctrlOptions = l, this.currentCtrlType = o, this.ctrlSchema = v({
3029
+ options: v(ve),
3030
+ formItems: v(n.builder)
3022
3031
  }), this.ctrlKey++;
3023
3032
  }
3024
3033
  },
@@ -3041,19 +3050,19 @@ const lo = {
3041
3050
  }
3042
3051
  };
3043
3052
  function no(e, t, l, o, n, a) {
3044
- const s = de, r = ue, u = ae, d = v("v-table"), m = it, b = ue, g = v("JsonView"), x = v("VButton"), J = Te, U = Be, T = rt, Z = ct, Bt = v("v-form"), Ot = v("dev-layout");
3053
+ const s = me, r = pe, d = ae, u = w("v-table"), m = it, _ = pe, k = w("JsonView"), y = w("VButton"), J = Te, U = Be, T = rt, X = ct, Bt = w("v-form"), Ot = w("dev-layout");
3045
3054
  return i(), f(Ot, null, {
3046
3055
  "left-aside": c(() => [
3047
- p(u, { style: { width: "200px" } }, {
3056
+ p(d, { style: { width: "200px" } }, {
3048
3057
  default: c(() => [
3049
- p(u, null, {
3058
+ p(d, null, {
3050
3059
  default: c(() => [
3051
3060
  p(s, {
3052
3061
  class: "title",
3053
3062
  "data-id": 22222
3054
3063
  }, {
3055
3064
  default: c(() => [
3056
- k("添加搜索条件")
3065
+ S("添加搜索条件")
3057
3066
  ]),
3058
3067
  _: 1
3059
3068
  }),
@@ -3064,7 +3073,7 @@ function no(e, t, l, o, n, a) {
3064
3073
  onClick: t[0] || (t[0] = (C) => a.pushFilter("input"))
3065
3074
  }, {
3066
3075
  default: c(() => [
3067
- k("文本框")
3076
+ S("文本框")
3068
3077
  ]),
3069
3078
  _: 1
3070
3079
  })
@@ -3078,7 +3087,7 @@ function no(e, t, l, o, n, a) {
3078
3087
  onClick: t[1] || (t[1] = (C) => a.pushFilter("select"))
3079
3088
  }, {
3080
3089
  default: c(() => [
3081
- k("下拉框")
3090
+ S("下拉框")
3082
3091
  ]),
3083
3092
  _: 1
3084
3093
  })
@@ -3092,7 +3101,7 @@ function no(e, t, l, o, n, a) {
3092
3101
  onClick: t[2] || (t[2] = (C) => a.pushFilter("date"))
3093
3102
  }, {
3094
3103
  default: c(() => [
3095
- k("日期")
3104
+ S("日期")
3096
3105
  ]),
3097
3106
  _: 1
3098
3107
  })
@@ -3102,25 +3111,25 @@ function no(e, t, l, o, n, a) {
3102
3111
  ]),
3103
3112
  _: 1
3104
3113
  }),
3105
- p(u, null, {
3114
+ p(d, null, {
3106
3115
  default: c(() => [
3107
3116
  p(s, { class: "title" }, {
3108
3117
  default: c(() => [
3109
- k("添加列表项")
3118
+ S("添加列表项")
3110
3119
  ]),
3111
3120
  _: 1
3112
3121
  }),
3113
- (i(!0), h(E, null, O(Object.keys(n.ctrlMap.headers), (C, V) => (i(), f(s, {
3122
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.headers), (C, V) => (i(), f(s, {
3114
3123
  key: `column-${V}`,
3115
3124
  class: "ctrl"
3116
3125
  }, {
3117
3126
  default: c(() => [
3118
3127
  p(r, {
3119
3128
  class: "ctrl-btn",
3120
- onClick: (fe) => a.pushHeaders(n.ctrlMap.headers[C].type)
3129
+ onClick: (he) => a.pushHeaders(n.ctrlMap.headers[C].type)
3121
3130
  }, {
3122
3131
  default: c(() => [
3123
- k(B(n.ctrlMap.headers[C].name), 1)
3132
+ S(B(n.ctrlMap.headers[C].name), 1)
3124
3133
  ]),
3125
3134
  _: 2
3126
3135
  }, 1032, ["onClick"])
@@ -3130,25 +3139,25 @@ function no(e, t, l, o, n, a) {
3130
3139
  ]),
3131
3140
  _: 1
3132
3141
  }),
3133
- p(u, null, {
3142
+ p(d, null, {
3134
3143
  default: c(() => [
3135
3144
  p(s, { class: "title" }, {
3136
3145
  default: c(() => [
3137
- k("添加行按钮")
3146
+ S("添加行按钮")
3138
3147
  ]),
3139
3148
  _: 1
3140
3149
  }),
3141
- (i(!0), h(E, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3150
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3142
3151
  key: `column-${V}`,
3143
3152
  class: "ctrl"
3144
3153
  }, {
3145
3154
  default: c(() => [
3146
3155
  p(r, {
3147
3156
  class: "ctrl-btn",
3148
- onClick: (fe) => a.pushRowButton(n.ctrlMap.buttons[C].type)
3157
+ onClick: (he) => a.pushRowButton(n.ctrlMap.buttons[C].type)
3149
3158
  }, {
3150
3159
  default: c(() => [
3151
- k(B(n.ctrlMap.buttons[C].name), 1)
3160
+ S(B(n.ctrlMap.buttons[C].name), 1)
3152
3161
  ]),
3153
3162
  _: 2
3154
3163
  }, 1032, ["onClick"])
@@ -3158,25 +3167,25 @@ function no(e, t, l, o, n, a) {
3158
3167
  ]),
3159
3168
  _: 1
3160
3169
  }),
3161
- p(u, null, {
3170
+ p(d, null, {
3162
3171
  default: c(() => [
3163
3172
  p(s, { class: "title" }, {
3164
3173
  default: c(() => [
3165
- k("添加常规按钮")
3174
+ S("添加常规按钮")
3166
3175
  ]),
3167
3176
  _: 1
3168
3177
  }),
3169
- (i(!0), h(E, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3178
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3170
3179
  key: `column-${V}`,
3171
3180
  class: "ctrl"
3172
3181
  }, {
3173
3182
  default: c(() => [
3174
3183
  p(r, {
3175
3184
  class: "ctrl-btn",
3176
- onClick: (fe) => a.pushNormalButton(n.ctrlMap.buttons[C].type)
3185
+ onClick: (he) => a.pushNormalButton(n.ctrlMap.buttons[C].type)
3177
3186
  }, {
3178
3187
  default: c(() => [
3179
- k(B(n.ctrlMap.buttons[C].name), 1)
3188
+ S(B(n.ctrlMap.buttons[C].name), 1)
3180
3189
  ]),
3181
3190
  _: 2
3182
3191
  }, 1032, ["onClick"])
@@ -3187,7 +3196,7 @@ function no(e, t, l, o, n, a) {
3187
3196
  default: c(() => [
3188
3197
  p(r, { class: "ctrl-btn" }, {
3189
3198
  default: c(() => [
3190
- k("按钮组")
3199
+ S("按钮组")
3191
3200
  ]),
3192
3201
  _: 1
3193
3202
  })
@@ -3197,25 +3206,25 @@ function no(e, t, l, o, n, a) {
3197
3206
  ]),
3198
3207
  _: 1
3199
3208
  }),
3200
- p(u, null, {
3209
+ p(d, null, {
3201
3210
  default: c(() => [
3202
3211
  p(s, { class: "title" }, {
3203
3212
  default: c(() => [
3204
- k("添加批量按钮")
3213
+ S("添加批量按钮")
3205
3214
  ]),
3206
3215
  _: 1
3207
3216
  }),
3208
- (i(!0), h(E, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3217
+ (i(!0), h(I, null, O(Object.keys(n.ctrlMap.buttons), (C, V) => (i(), f(s, {
3209
3218
  key: `column-${V}`,
3210
3219
  class: "ctrl"
3211
3220
  }, {
3212
3221
  default: c(() => [
3213
3222
  p(r, {
3214
3223
  class: "ctrl-btn",
3215
- onClick: (fe) => a.pushBatchButton(n.ctrlMap.buttons[C].type)
3224
+ onClick: (he) => a.pushBatchButton(n.ctrlMap.buttons[C].type)
3216
3225
  }, {
3217
3226
  default: c(() => [
3218
- k(B(n.ctrlMap.buttons[C].name), 1)
3227
+ S(B(n.ctrlMap.buttons[C].name), 1)
3219
3228
  ]),
3220
3229
  _: 2
3221
3230
  }, 1032, ["onClick"])
@@ -3226,7 +3235,7 @@ function no(e, t, l, o, n, a) {
3226
3235
  default: c(() => [
3227
3236
  p(r, { class: "ctrl-btn" }, {
3228
3237
  default: c(() => [
3229
- k("按钮组")
3238
+ S("按钮组")
3230
3239
  ]),
3231
3240
  _: 1
3232
3241
  })
@@ -3241,34 +3250,34 @@ function no(e, t, l, o, n, a) {
3241
3250
  })
3242
3251
  ]),
3243
3252
  main: c(() => [
3244
- (i(), f(d, F({
3253
+ (i(), f(u, F({
3245
3254
  ref: "table",
3246
3255
  key: n.key,
3247
3256
  dev: !0
3248
3257
  }, n.builderSchema), null, 16)),
3249
3258
  p(m),
3250
- p(b, {
3259
+ p(_, {
3251
3260
  type: "primary",
3252
3261
  onClick: a.saveSchema
3253
3262
  }, {
3254
3263
  default: c(() => [
3255
- k("保存页面配置")
3264
+ S("保存页面配置")
3256
3265
  ]),
3257
3266
  _: 1
3258
3267
  }, 8, ["onClick"]),
3259
- k("    "),
3260
- p(x, {
3268
+ S("    "),
3269
+ p(y, {
3261
3270
  text: "PageSchema",
3262
3271
  type: "modal"
3263
3272
  }, {
3264
3273
  default: c(() => [
3265
- p(g, { data: a.getSaveSchema }, null, 8, ["data"])
3274
+ p(k, { data: a.getSaveSchema }, null, 8, ["data"])
3266
3275
  ]),
3267
3276
  _: 1
3268
3277
  })
3269
3278
  ]),
3270
3279
  "right-aside": c(() => [
3271
- n.activeIndex ? (i(), f(Z, { key: 0 }, {
3280
+ n.activeIndex ? (i(), f(X, { key: 0 }, {
3272
3281
  default: c(() => [
3273
3282
  p(T, { label: "控件类型" }, {
3274
3283
  default: c(() => [
@@ -3277,7 +3286,7 @@ function no(e, t, l, o, n, a) {
3277
3286
  "onUpdate:modelValue": t[3] || (t[3] = (C) => n.currentCtrlType = C)
3278
3287
  }, {
3279
3288
  default: c(() => [
3280
- (i(!0), h(E, null, O(a.types, (C, V) => (i(), f(J, {
3289
+ (i(!0), h(I, null, O(a.types, (C, V) => (i(), f(J, {
3281
3290
  key: V,
3282
3291
  label: C.label,
3283
3292
  value: C.value
@@ -3290,7 +3299,7 @@ function no(e, t, l, o, n, a) {
3290
3299
  })
3291
3300
  ]),
3292
3301
  _: 1
3293
- })) : $("", !0),
3302
+ })) : E("", !0),
3294
3303
  (i(), f(Bt, F({
3295
3304
  key: n.ctrlKey,
3296
3305
  modelValue: n.ctrlOptions,
@@ -3300,22 +3309,22 @@ function no(e, t, l, o, n, a) {
3300
3309
  _: 1
3301
3310
  });
3302
3311
  }
3303
- const oo = /* @__PURE__ */ I(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), ao = {
3312
+ const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), ao = {
3304
3313
  name: "PageEditor",
3305
- components: { FormBuilder: jn, TableBuilder: oo },
3314
+ components: { FormBuilder: Dn, TableBuilder: oo },
3306
3315
  setup() {
3307
- const e = M(!1), t = M(1), l = "rtl", o = pe(), n = j(() => w.state.app.pages[o.path]);
3316
+ const e = D(!1), t = D(1), l = "rtl", o = de(), n = M(() => g.state.app.pages[o.path]);
3308
3317
  return { show: e, key: t, direction: l, pageSchema: n };
3309
3318
  }
3310
3319
  };
3311
3320
  function so(e, t, l, o, n, a) {
3312
- const s = v("VIcon"), r = v("form-builder"), u = v("table-builder"), d = ut;
3313
- return i(), h(E, null, [
3321
+ const s = w("VIcon"), r = w("form-builder"), d = w("table-builder"), u = ut;
3322
+ return i(), h(I, null, [
3314
3323
  p(s, {
3315
3324
  name: "ra-set",
3316
3325
  onClick: t[0] || (t[0] = (m) => o.show = !o.show)
3317
3326
  }),
3318
- p(d, {
3327
+ p(u, {
3319
3328
  modelValue: o.show,
3320
3329
  "onUpdate:modelValue": t[1] || (t[1] = (m) => o.show = m),
3321
3330
  title: "页面设计",
@@ -3329,17 +3338,17 @@ function so(e, t, l, o, n, a) {
3329
3338
  o.pageSchema.formItems !== void 0 ? (i(), f(r, {
3330
3339
  key: 0,
3331
3340
  schema: o.pageSchema
3332
- }, null, 8, ["schema"])) : $("", !0),
3333
- o.pageSchema.headers !== void 0 ? (i(), f(u, {
3341
+ }, null, 8, ["schema"])) : E("", !0),
3342
+ o.pageSchema.headers !== void 0 ? (i(), f(d, {
3334
3343
  key: 1,
3335
3344
  schema: o.pageSchema
3336
- }, null, 8, ["schema"])) : $("", !0)
3345
+ }, null, 8, ["schema"])) : E("", !0)
3337
3346
  ]),
3338
3347
  _: 1
3339
3348
  }, 8, ["modelValue", "direction"])
3340
3349
  ], 64);
3341
3350
  }
3342
- const io = /* @__PURE__ */ I(ao, [["render", so]]);
3351
+ const io = /* @__PURE__ */ $(ao, [["render", so]]);
3343
3352
  const ro = {
3344
3353
  components: {
3345
3354
  Breadcrumb: fn,
@@ -3384,7 +3393,7 @@ const ro = {
3384
3393
  dangerouslyUseHTMLString: !0,
3385
3394
  duration: 0,
3386
3395
  onClose: this.closeNavBarNotice
3387
- }), this.setting.envColor[this.user.env] && Zt({
3396
+ }), this.setting.envColor[this.user.env] && Xt({
3388
3397
  elRef: this.$refs.header.$el,
3389
3398
  waterMark: this.user.env,
3390
3399
  color: "skyblue",
@@ -3409,11 +3418,11 @@ const ro = {
3409
3418
  },
3410
3419
  showNotice(e) {
3411
3420
  const t = "dismiss:navbar_notice";
3412
- return be.exist(t) ? be.get(t) !== e : !0;
3421
+ return re.exist(t) ? re.get(t) !== e : !0;
3413
3422
  },
3414
3423
  closeNotice(e) {
3415
3424
  const t = "dismiss:navbar_notice";
3416
- be.set(t, e);
3425
+ re.set(t, e);
3417
3426
  },
3418
3427
  gotoMenuEdit() {
3419
3428
  var e, t, l, o;
@@ -3428,14 +3437,14 @@ const ro = {
3428
3437
  style: { padding: "0" }
3429
3438
  }, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
3430
3439
  function _o(e, t, l, o, n, a) {
3431
- const s = v("hamburger"), r = v("breadcrumb"), u = de, d = v("VIcon"), m = v("PageEditor"), b = v("v-button"), g = _l, x = yl, J = vl, U = ut, T = ae;
3440
+ const s = w("hamburger"), r = w("breadcrumb"), d = me, u = w("VIcon"), m = w("PageEditor"), _ = w("v-button"), k = _l, y = yl, J = vl, U = ut, T = ae;
3432
3441
  return i(), f(T, {
3433
3442
  ref: "header",
3434
3443
  class: "navbar",
3435
- style: jt({ background: a.setting.envColor[a.user.env] })
3444
+ style: Dt({ background: a.setting.envColor[a.user.env] })
3436
3445
  }, {
3437
3446
  default: c(() => [
3438
- p(u, { span: 16 }, {
3447
+ p(d, { span: 16 }, {
3439
3448
  default: c(() => [
3440
3449
  p(s, {
3441
3450
  "is-active": e.sidebar.opened,
@@ -3446,44 +3455,44 @@ function _o(e, t, l, o, n, a) {
3446
3455
  ]),
3447
3456
  _: 1
3448
3457
  }),
3449
- p(u, { span: 8 }, {
3458
+ p(d, { span: 8 }, {
3450
3459
  default: c(() => [
3451
- _("div", co, [
3452
- _("div", uo, [
3453
- p(d, {
3460
+ b("div", co, [
3461
+ b("div", uo, [
3462
+ p(u, {
3454
3463
  name: "ra-code",
3455
3464
  onClick: a.gotoMenuEdit
3456
3465
  }, null, 8, ["onClick"])
3457
3466
  ]),
3458
3467
  a.showPageJsonSchemaIcon ? (i(), h("div", po, [
3459
3468
  p(m)
3460
- ])) : $("", !0),
3461
- _("div", mo, [
3462
- p(b, { buttons: e.nav }, null, 8, ["buttons"])
3469
+ ])) : E("", !0),
3470
+ b("div", mo, [
3471
+ p(_, { buttons: e.nav }, null, 8, ["buttons"])
3463
3472
  ]),
3464
3473
  p(J, {
3465
3474
  class: "right-item",
3466
3475
  trigger: "click"
3467
3476
  }, {
3468
3477
  dropdown: c(() => [
3469
- p(x, { class: "user-dropdown" }, {
3478
+ p(y, { class: "user-dropdown" }, {
3470
3479
  default: c(() => [
3471
- p(g, {
3480
+ p(k, {
3472
3481
  icon: "oms-icon-index",
3473
- onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3482
+ onClick: t[0] || (t[0] = (X) => e.$router.push("/"))
3474
3483
  }, {
3475
3484
  default: c(() => [
3476
- k("首页")
3485
+ S("首页")
3477
3486
  ]),
3478
3487
  _: 1
3479
3488
  }),
3480
- p(g, {
3489
+ p(k, {
3481
3490
  divided: "",
3482
3491
  icon: "el-icon-switch-button",
3483
3492
  onClick: a.logout
3484
3493
  }, {
3485
3494
  default: c(() => [
3486
- k("退出登录")
3495
+ S("退出登录")
3487
3496
  ]),
3488
3497
  _: 1
3489
3498
  }, 8, ["onClick"])
@@ -3492,14 +3501,14 @@ function _o(e, t, l, o, n, a) {
3492
3501
  })
3493
3502
  ]),
3494
3503
  default: c(() => [
3495
- _("div", fo, [
3496
- _("img", {
3504
+ b("div", fo, [
3505
+ b("img", {
3497
3506
  src: e.avatar ? e.avatar : n.defaultAvatar,
3498
3507
  class: "user-avatar",
3499
3508
  alt: "头像"
3500
3509
  }, null, 8, ho),
3501
- k(),
3502
- _("span", bo, B(e.nickname || e.name), 1)
3510
+ S(),
3511
+ b("span", bo, B(e.nickname || e.name), 1)
3503
3512
  ])
3504
3513
  ]),
3505
3514
  _: 1
@@ -3512,12 +3521,12 @@ function _o(e, t, l, o, n, a) {
3512
3521
  key: 0,
3513
3522
  "with-header": !1,
3514
3523
  size: "50%"
3515
- })) : $("", !0)
3524
+ })) : E("", !0)
3516
3525
  ]),
3517
3526
  _: 1
3518
3527
  }, 8, ["style"]);
3519
3528
  }
3520
- const yo = /* @__PURE__ */ I(ro, [["render", _o], ["__scopeId", "data-v-99b3c688"]]);
3529
+ const yo = /* @__PURE__ */ $(ro, [["render", _o], ["__scopeId", "data-v-99b3c688"]]);
3521
3530
  const vo = {
3522
3531
  name: "SidebarLogo",
3523
3532
  props: {
@@ -3537,13 +3546,13 @@ const vo = {
3537
3546
  }, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], wo = {
3538
3547
  key: 1,
3539
3548
  class: "sidebar-title"
3540
- }, So = /* @__PURE__ */ go(() => /* @__PURE__ */ _("div", null, "系统", -1)), xo = ["src"], Eo = { class: "sidebar-title" };
3541
- function $o(e, t, l, o, n, a) {
3542
- const s = v("router-link");
3549
+ }, So = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "系统", -1)), xo = ["src"], Eo = { class: "sidebar-title" };
3550
+ function Io(e, t, l, o, n, a) {
3551
+ const s = w("router-link");
3543
3552
  return i(), h("div", {
3544
3553
  class: H(["sidebar-logo-container", { collapse: l.collapse }])
3545
3554
  }, [
3546
- p(Dt, { name: "sidebarLogoFade" }, {
3555
+ p(jt, { name: "sidebarLogoFade" }, {
3547
3556
  default: c(() => [
3548
3557
  l.collapse ? (i(), f(s, {
3549
3558
  key: "collapse",
@@ -3569,8 +3578,8 @@ function $o(e, t, l, o, n, a) {
3569
3578
  key: 0,
3570
3579
  src: a.logo,
3571
3580
  class: "sidebar-logo"
3572
- }, null, 8, xo)) : $("", !0),
3573
- _("h1", Eo, B(a.title), 1)
3581
+ }, null, 8, xo)) : E("", !0),
3582
+ b("h1", Eo, B(a.title), 1)
3574
3583
  ]),
3575
3584
  _: 1
3576
3585
  }))
@@ -3579,7 +3588,7 @@ function $o(e, t, l, o, n, a) {
3579
3588
  })
3580
3589
  ], 2);
3581
3590
  }
3582
- const Io = /* @__PURE__ */ I(vo, [["render", $o], ["__scopeId", "data-v-49084925"]]), Co = {
3591
+ const $o = /* @__PURE__ */ $(vo, [["render", Io], ["__scopeId", "data-v-49084925"]]), Co = {
3583
3592
  props: {
3584
3593
  to: {
3585
3594
  type: String,
@@ -3613,14 +3622,14 @@ const Io = /* @__PURE__ */ I(vo, [["render", $o], ["__scopeId", "data-v-49084925
3613
3622
  }
3614
3623
  };
3615
3624
  function To(e, t, l, o, n, a) {
3616
- return i(), f(Ze(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3625
+ return i(), f(Xe(a.compType(l.to)), G(Y(a.linkProps(l.to))), {
3617
3626
  default: c(() => [
3618
3627
  le(e.$slots, "default")
3619
3628
  ]),
3620
3629
  _: 3
3621
3630
  }, 16);
3622
3631
  }
3623
- const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
3632
+ const Bo = /* @__PURE__ */ $(Co, [["render", To]]), Oo = {
3624
3633
  computed: {
3625
3634
  // @ts-ignore
3626
3635
  device() {
@@ -3654,12 +3663,12 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
3654
3663
  },
3655
3664
  setup(e) {
3656
3665
  return (t, l) => {
3657
- const o = v("VIcon");
3658
- return i(), h(E, null, [
3666
+ const o = w("VIcon");
3667
+ return i(), h(I, null, [
3659
3668
  p(o, {
3660
3669
  name: e.meta.icon || "ra-all"
3661
3670
  }, null, 8, ["name"]),
3662
- _("span", Ao, B(e.meta.title), 1)
3671
+ b("span", Ao, B(e.meta.title), 1)
3663
3672
  ], 64);
3664
3673
  };
3665
3674
  }
@@ -3688,7 +3697,8 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
3688
3697
  methods: {
3689
3698
  getTo(e) {
3690
3699
  try {
3691
- return this.$router.resolve(e.redirect ? e.redirect : e).fullPath;
3700
+ const t = this.$router.resolve(e.redirect ? e.redirect : e);
3701
+ return re.remove("table_filter:" + t.hash), t.fullPath;
3692
3702
  } catch {
3693
3703
  return console.error("路由解析错误"), "/";
3694
3704
  }
@@ -3699,10 +3709,10 @@ const Bo = /* @__PURE__ */ I(Co, [["render", To]]), Oo = {
3699
3709
  class: "menu-wrapper"
3700
3710
  };
3701
3711
  function Mo(e, t, l, o, n, a) {
3702
- const s = v("menu-content"), r = gl, u = v("app-link"), d = v("sidebar-item", !0), m = kl;
3712
+ const s = w("menu-content"), r = gl, d = w("app-link"), u = w("sidebar-item", !0), m = kl;
3703
3713
  return l.item.hidden !== !1 ? (i(), h("div", Lo, [
3704
- l.item.meta && l.item.meta.menuType === 2 ? (i(), h(E, { key: 0 }, [
3705
- l.item.meta ? (i(), f(u, {
3714
+ l.item.meta && l.item.meta.menuType === 2 ? (i(), h(I, { key: 0 }, [
3715
+ l.item.meta ? (i(), f(d, {
3706
3716
  key: 0,
3707
3717
  to: l.to,
3708
3718
  "new-tab": l.item.meta.newTab
@@ -3721,7 +3731,7 @@ function Mo(e, t, l, o, n, a) {
3721
3731
  }, 8, ["index", "class"])
3722
3732
  ]),
3723
3733
  _: 1
3724
- }, 8, ["to", "new-tab"])) : $("", !0)
3734
+ }, 8, ["to", "new-tab"])) : E("", !0)
3725
3735
  ], 64)) : l.item.meta && l.item.meta.menuType === 1 ? (i(), f(m, {
3726
3736
  key: 1,
3727
3737
  ref: "subMenu",
@@ -3729,7 +3739,7 @@ function Mo(e, t, l, o, n, a) {
3729
3739
  class: H({ "submenu-title-noDropdown": !l.isNest })
3730
3740
  }, {
3731
3741
  title: c(() => [
3732
- l.item.redirect && l.item.redirect !== "#" ? (i(), f(u, {
3742
+ l.item.redirect && l.item.redirect !== "#" ? (i(), f(d, {
3733
3743
  key: 0,
3734
3744
  to: l.to
3735
3745
  }, {
@@ -3745,26 +3755,26 @@ function Mo(e, t, l, o, n, a) {
3745
3755
  }, null, 8, ["meta"]))
3746
3756
  ]),
3747
3757
  default: c(() => [
3748
- (i(!0), h(E, null, O(l.item.children, (b) => (i(), f(d, {
3749
- key: b.path,
3758
+ (i(!0), h(I, null, O(l.item.children, (_) => (i(), f(u, {
3759
+ key: _.path,
3750
3760
  "is-nest": !0,
3751
- item: b,
3752
- to: a.getTo(b),
3761
+ item: _,
3762
+ to: a.getTo(_),
3753
3763
  class: "nest-menu"
3754
3764
  }, null, 8, ["item", "to"]))), 128))
3755
3765
  ]),
3756
3766
  _: 1
3757
- }, 8, ["index", "class"])) : $("", !0)
3758
- ])) : $("", !0);
3767
+ }, 8, ["index", "class"])) : E("", !0)
3768
+ ])) : E("", !0);
3759
3769
  }
3760
- const jo = /* @__PURE__ */ I(Ro, [["render", Mo]]);
3770
+ const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
3761
3771
  function yt(e) {
3762
3772
  return e.filter((t) => {
3763
3773
  var l;
3764
3774
  return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = yt(t.children), t.children.length === 0 && delete t.children), !0);
3765
3775
  });
3766
3776
  }
3767
- const Do = {
3777
+ const jo = {
3768
3778
  data() {
3769
3779
  return {
3770
3780
  selected: ""
@@ -3775,7 +3785,7 @@ const Do = {
3775
3785
  filterRoutes() {
3776
3786
  let e = [];
3777
3787
  return this.remoteRouter.forEach((t) => {
3778
- e = e.concat(y(t.routes));
3788
+ e = e.concat(v(t.routes));
3779
3789
  }), yt(e);
3780
3790
  }
3781
3791
  },
@@ -3797,58 +3807,58 @@ const Do = {
3797
3807
  }
3798
3808
  };
3799
3809
  function No(e, t, l, o, n, a) {
3800
- const s = Te, r = wl, u = Be;
3801
- return i(), f(u, {
3810
+ const s = Te, r = wl, d = Be;
3811
+ return i(), f(d, {
3802
3812
  modelValue: n.selected,
3803
- "onUpdate:modelValue": t[0] || (t[0] = (d) => n.selected = d),
3813
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => n.selected = u),
3804
3814
  filterable: "",
3805
3815
  placeholder: "搜索菜单...",
3806
3816
  class: "search-menu",
3807
3817
  onChange: a.onselected
3808
3818
  }, {
3809
3819
  default: c(() => [
3810
- (i(!0), h(E, null, O(a.filterRoutes, (d) => (i(), h(E, {
3811
- key: d.path
3820
+ (i(!0), h(I, null, O(a.filterRoutes, (u) => (i(), h(I, {
3821
+ key: u.path
3812
3822
  }, [
3813
- d.children !== void 0 ? (i(), h(E, { key: 0 }, [
3814
- d.meta.menuType !== 0 ? (i(), f(r, {
3815
- key: d.path + "-",
3816
- label: d.meta.title
3823
+ u.children !== void 0 ? (i(), h(I, { key: 0 }, [
3824
+ u.meta.menuType !== 0 ? (i(), f(r, {
3825
+ key: u.path + "-",
3826
+ label: u.meta.title
3817
3827
  }, {
3818
3828
  default: c(() => [
3819
- (i(!0), h(E, null, O(d.children, (m, b) => (i(), h(E, {
3829
+ (i(!0), h(I, null, O(u.children, (m, _) => (i(), h(I, {
3820
3830
  key: m.path
3821
3831
  }, [
3822
- d.meta.menuType !== 0 ? (i(), f(s, {
3832
+ u.meta.menuType !== 0 ? (i(), f(s, {
3823
3833
  key: 0,
3824
- label: (b === d.children.length - 1 ? "└─" : "├─") + m.meta.title,
3834
+ label: (_ === u.children.length - 1 ? "└─" : "├─") + m.meta.title,
3825
3835
  value: a.getJumpPath(m)
3826
- }, null, 8, ["label", "value"])) : $("", !0)
3836
+ }, null, 8, ["label", "value"])) : E("", !0)
3827
3837
  ], 64))), 128))
3828
3838
  ]),
3829
3839
  _: 2
3830
- }, 1032, ["label"])) : $("", !0)
3840
+ }, 1032, ["label"])) : E("", !0)
3831
3841
  ], 64)) : (i(), f(s, {
3832
3842
  key: 1,
3833
- label: "" + d.meta.title,
3834
- value: a.getJumpPath(d)
3843
+ label: "" + u.meta.title,
3844
+ value: a.getJumpPath(u)
3835
3845
  }, null, 8, ["label", "value"]))
3836
3846
  ], 64))), 128))
3837
3847
  ]),
3838
3848
  _: 1
3839
3849
  }, 8, ["modelValue", "onChange"]);
3840
3850
  }
3841
- const Vo = /* @__PURE__ */ I(Do, [["render", No], ["__scopeId", "data-v-38301044"]]);
3842
- 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 || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
3851
+ const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-38301044"]]);
3852
+ 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 || {}), L = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(L || {});
3843
3853
  const qo = q({
3844
- components: { SidebarItem: jo, Logo: Io, SearchMenu: Vo },
3854
+ components: { SidebarItem: Do, Logo: $o, SearchMenu: Vo },
3845
3855
  computed: {
3846
3856
  ...Ce(["sidebar", "remoteRouter", "customRouter"]),
3847
3857
  routes() {
3848
3858
  let e = [];
3849
3859
  return this.$router.options.routes.concat(this.customRouter || []).forEach((t) => {
3850
3860
  t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
3851
- }), y([
3861
+ }), v([
3852
3862
  {
3853
3863
  label: "",
3854
3864
  routes: e
@@ -3892,18 +3902,18 @@ const qo = q({
3892
3902
  }
3893
3903
  });
3894
3904
  function Uo(e, t, l, o, n, a) {
3895
- const s = v("logo"), r = v("search-menu"), u = v("sidebar-item"), d = Sl, m = xl;
3905
+ const s = w("logo"), r = w("search-menu"), d = w("sidebar-item"), u = Sl, m = xl;
3896
3906
  return i(), h("div", {
3897
3907
  class: H({ "has-logo": e.showLogo })
3898
3908
  }, [
3899
3909
  e.showLogo ? (i(), f(s, {
3900
3910
  key: 0,
3901
3911
  collapse: e.isCollapse
3902
- }, null, 8, ["collapse"])) : $("", !0),
3912
+ }, null, 8, ["collapse"])) : E("", !0),
3903
3913
  p(m, { "wrap-class": "scrollbar-wrapper" }, {
3904
3914
  default: c(() => [
3905
- e.isCollapse ? $("", !0) : (i(), f(r, { key: 0 })),
3906
- p(d, {
3915
+ e.isCollapse ? E("", !0) : (i(), f(r, { key: 0 })),
3916
+ p(u, {
3907
3917
  "default-active": e.activeMenu,
3908
3918
  collapse: e.isCollapse,
3909
3919
  "background-color": e.variables.menuBg,
@@ -3914,13 +3924,13 @@ function Uo(e, t, l, o, n, a) {
3914
3924
  mode: "vertical"
3915
3925
  }, {
3916
3926
  default: c(() => [
3917
- (i(!0), h(E, null, O(e.routes, (b, g) => (i(), h(E, {
3918
- key: g + "-module"
3927
+ (i(!0), h(I, null, O(e.routes, (_, k) => (i(), h(I, {
3928
+ key: k + "-module"
3919
3929
  }, [
3920
- (i(!0), h(E, null, O(e.filterRoute(b.routes), (x) => (i(), f(u, {
3921
- key: x.path,
3922
- item: x,
3923
- to: e.$router.resolve(x.redirect ? x.redirect : x).fullPath
3930
+ (i(!0), h(I, null, O(e.filterRoute(_.routes), (y) => (i(), f(d, {
3931
+ key: y.path,
3932
+ item: y,
3933
+ to: e.$router.resolve(y.redirect ? y.redirect : y).fullPath
3924
3934
  }, null, 8, ["item", "to"]))), 128))
3925
3935
  ], 64))), 128))
3926
3936
  ]),
@@ -3931,127 +3941,130 @@ function Uo(e, t, l, o, n, a) {
3931
3941
  })
3932
3942
  ], 2);
3933
3943
  }
3934
- const Ho = /* @__PURE__ */ I(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]);
3944
+ const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-d252f828"]]);
3935
3945
  const Fo = { class: "app-main" }, Go = {
3936
3946
  __name: "AppMain",
3937
3947
  setup(e) {
3938
- const t = pe(), l = [], o = M(0);
3948
+ const t = de(), l = [], o = D(0);
3939
3949
  return rl(() => {
3940
3950
  var n;
3941
3951
  (n = t.meta) != null && n.keepAlive && l.indexOf(t.name) && l.push(t.name), o.value++;
3942
3952
  }), (n, a) => {
3943
- const s = v("router-view"), r = El;
3953
+ const s = w("router-view"), r = El;
3944
3954
  return i(), h("section", Fo, [
3945
3955
  (i(), f(s, {
3946
- key: n.$route.fullPath + S(o)
3956
+ key: n.$route.fullPath + x(o)
3947
3957
  })),
3948
3958
  p(r, { bottom: 50 })
3949
3959
  ]);
3950
3960
  };
3951
3961
  }
3952
- }, Jo = /* @__PURE__ */ I(Go, [["__scopeId", "data-v-ca0f0d98"]]);
3962
+ }, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]);
3953
3963
  const zo = { class: "main-container" }, Ko = 992, Wo = {
3954
3964
  __name: "index",
3955
3965
  setup(e) {
3956
- const t = ot(), { body: l } = document, o = j(() => t.state.app.sidebar), n = j(() => t.state.app.device), a = j(() => t.state.settings.fixedHeader), s = j(() => ({
3966
+ const t = ot(), { body: l } = document, o = M(() => t.state.app.sidebar), n = M(() => t.state.app.device), a = M(() => t.state.settings.fixedHeader), s = M(() => ({
3957
3967
  hideSidebar: !o.value.opened,
3958
3968
  openSidebar: o.value.opened,
3959
3969
  withoutAnimation: o.value.withoutAnimation,
3960
3970
  mobile: n.value === "mobile"
3961
3971
  })), r = () => l.getBoundingClientRect().width - 1 < Ko;
3962
- Pl(window, "resize", () => d());
3963
- const u = () => {
3972
+ Pl(window, "resize", () => u());
3973
+ const d = () => {
3964
3974
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
3965
- }, d = () => {
3975
+ }, u = () => {
3966
3976
  if (!document.hidden) {
3967
3977
  const m = r();
3968
3978
  t.dispatch("app/toggleDevice", m ? "mobile" : "desktop"), m && t.dispatch("app/closeSideBar", { withoutAnimation: !0 });
3969
3979
  }
3970
3980
  };
3971
- return (m, b) => (i(), h("div", {
3972
- class: H([S(s), "app-wrapper"])
3981
+ return (m, _) => (i(), h("div", {
3982
+ class: H([x(s), "app-wrapper"])
3973
3983
  }, [
3974
- S(n) === "mobile" && S(o).opened ? (i(), h("div", {
3984
+ x(n) === "mobile" && x(o).opened ? (i(), h("div", {
3975
3985
  key: 0,
3976
3986
  class: "drawer-bg",
3977
- onClick: u
3978
- })) : $("", !0),
3979
- p(S(Ho), { class: "sidebar-container" }),
3980
- _("div", zo, [
3981
- _("div", {
3982
- class: H({ "fixed-header": S(a) })
3987
+ onClick: d
3988
+ })) : E("", !0),
3989
+ p(x(Ho), { class: "sidebar-container" }),
3990
+ b("div", zo, [
3991
+ b("div", {
3992
+ class: H({ "fixed-header": x(a) })
3983
3993
  }, [
3984
- p(S(yo))
3994
+ p(x(yo))
3985
3995
  ], 2),
3986
- p(S(Jo))
3996
+ p(x(Jo))
3987
3997
  ])
3988
3998
  ], 2));
3989
3999
  }
3990
- }, vt = /* @__PURE__ */ I(Wo, [["__scopeId", "data-v-957442cd"]]), Zo = { id: "login" }, Qo = /* @__PURE__ */ _("h1", { id: "title" }, "登录", -1), Xo = { id: "form" }, Yo = { class: "captcha" }, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ _("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
4000
+ }, vt = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-957442cd"]]), Xo = { id: "login" }, Zo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Qo = { id: "form" }, Yo = {
4001
+ key: 0,
4002
+ class: "captcha"
4003
+ }, ea = ["src"], ta = { class: "tips" }, la = { class: "sso" }, na = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), oa = /* @__PURE__ */ q({
3991
4004
  __name: "login",
3992
4005
  setup(e) {
3993
- const t = st(), l = pe(), o = j(() => w.state.settings.loginTips), n = j(() => (w.state.app, w.state.app.baseURL)), a = M(0), s = () => a.value++, r = j(() => u.value.username.length > 0 && u.value.password.length >= 4 && u.value.captcha.length === 4), u = M({
4006
+ const t = st(), l = de(), o = M(() => g.state.settings.loginTips), n = M(() => g.state.settings.captcha), a = M(() => (g.state.app, g.state.app.baseURL)), s = D(0), r = () => s.value++, d = M(() => u.value.username.length > 0 && u.value.password.length >= 4 && (n.value ? u.value.captcha.length === 4 : !0)), u = D({
3994
4007
  username: "",
3995
4008
  password: "",
3996
4009
  captcha: "",
3997
4010
  sing: ""
3998
- }), d = () => {
3999
- if (u.value.username === "" || u.value.password === "" || u.value.captcha === "") {
4000
- $l.error("用户名, 密码, 验证码是必须的");
4011
+ }), m = () => {
4012
+ if (u.value.username === "" || u.value.password === "" || n.value && u.value.captcha === "") {
4013
+ Il.error("用户名, 密码, 验证码是必须的");
4001
4014
  return;
4002
4015
  }
4003
- u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString(), w.dispatch("user/login", u.value).then((m) => {
4004
- var b;
4005
- t.push({ path: ((b = l.query) == null ? void 0 : b.redirect) || "/" });
4006
- }).catch((m) => {
4007
- a.value++;
4016
+ n.value && (u.value.sing = Ll(`${u.value.username}${u.value.password}${u.value.captcha}`).toString()), g.dispatch("user/login", u.value).then((_) => {
4017
+ var k;
4018
+ t.push({ path: ((k = l.query) == null ? void 0 : k.redirect) || "/" });
4019
+ }).catch((_) => {
4020
+ s.value++;
4008
4021
  });
4009
4022
  };
4010
- return (m, b) => (i(), h("div", Zo, [
4011
- Qo,
4012
- _("form", Xo, [
4013
- ie(_("input", {
4014
- "onUpdate:modelValue": b[0] || (b[0] = (g) => S(u).username = g),
4023
+ return (_, k) => (i(), h("div", Xo, [
4024
+ Zo,
4025
+ b("form", Qo, [
4026
+ ie(b("input", {
4027
+ "onUpdate:modelValue": k[0] || (k[0] = (y) => x(u).username = y),
4015
4028
  type: "text",
4016
4029
  placeholder: "用户名",
4017
4030
  class: "input"
4018
4031
  }, null, 512), [
4019
- [he, S(u).username]
4032
+ [be, x(u).username]
4020
4033
  ]),
4021
- ie(_("input", {
4022
- "onUpdate:modelValue": b[1] || (b[1] = (g) => S(u).password = g),
4034
+ ie(b("input", {
4035
+ "onUpdate:modelValue": k[1] || (k[1] = (y) => x(u).password = y),
4023
4036
  type: "password",
4024
4037
  placeholder: "密码",
4025
4038
  class: "input"
4026
4039
  }, null, 512), [
4027
- [he, S(u).password]
4040
+ [be, x(u).password]
4028
4041
  ]),
4029
- _("div", Yo, [
4030
- ie(_("input", {
4031
- "onUpdate:modelValue": b[2] || (b[2] = (g) => S(u).captcha = g),
4042
+ n.value ? (i(), h("div", Yo, [
4043
+ ie(b("input", {
4044
+ "onUpdate:modelValue": k[2] || (k[2] = (y) => x(u).captcha = y),
4032
4045
  type: "text",
4033
4046
  placeholder: "验证码",
4034
4047
  class: "input-captcha"
4035
4048
  }, null, 512), [
4036
- [he, S(u).captcha]
4049
+ [be, x(u).captcha]
4037
4050
  ]),
4038
- _("img", {
4051
+ b("img", {
4039
4052
  class: "captcha-img",
4040
- src: n.value + "/user/captcha?ts=" + S(a),
4053
+ src: a.value + "/user/captcha?ts=" + x(s),
4041
4054
  title: "点击刷新",
4042
- onClick: s
4055
+ onClick: r
4043
4056
  }, null, 8, ea)
4044
- ]),
4045
- _("div", {
4046
- class: H({ input: !0, button: !0, "no-ready": !r.value }),
4047
- onClick: d
4057
+ ])) : E("", !0),
4058
+ b("div", {
4059
+ class: H({ input: !0, button: !0, "no-ready": !d.value }),
4060
+ onClick: m
4048
4061
  }, "登录", 2),
4049
- _("div", ta, [
4050
- _("div", null, B(o.value), 1)
4062
+ b("div", ta, [
4063
+ b("div", null, B(o.value), 1)
4051
4064
  ]),
4052
- _("div", la, [
4065
+ b("div", la, [
4053
4066
  na,
4054
- (i(!0), h(E, null, O(Object.keys([]), (g) => (i(), h("div", { key: g }, B(g), 1))), 128))
4067
+ (i(!0), h(I, null, O(Object.keys([]), (y) => (i(), h("div", { key: y }, B(y), 1))), 128))
4055
4068
  ])
4056
4069
  ])
4057
4070
  ]));
@@ -4059,7 +4072,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
4059
4072
  });
4060
4073
  const aa = {
4061
4074
  name: "NotFoundPage"
4062
- }, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ _("svg", {
4075
+ }, gt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), sa = { class: "not-found" }, ia = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("svg", {
4063
4076
  width: "380px",
4064
4077
  height: "500px",
4065
4078
  viewBox: "0 0 837 1045",
@@ -4068,7 +4081,7 @@ const aa = {
4068
4081
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
4069
4082
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
4070
4083
  }, [
4071
- /* @__PURE__ */ _("g", {
4084
+ /* @__PURE__ */ b("g", {
4072
4085
  id: "Page-1",
4073
4086
  stroke: "none",
4074
4087
  "stroke-width": "1",
@@ -4076,35 +4089,35 @@ const aa = {
4076
4089
  "fill-rule": "evenodd",
4077
4090
  "sketch:type": "MSPage"
4078
4091
  }, [
4079
- /* @__PURE__ */ _("path", {
4092
+ /* @__PURE__ */ b("path", {
4080
4093
  id: "Polygon-1",
4081
4094
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
4082
4095
  stroke: "#007FB2",
4083
4096
  "stroke-width": "6",
4084
4097
  "sketch:type": "MSShapeGroup"
4085
4098
  }),
4086
- /* @__PURE__ */ _("path", {
4099
+ /* @__PURE__ */ b("path", {
4087
4100
  id: "Polygon-2",
4088
4101
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
4089
4102
  stroke: "#EF4A5B",
4090
4103
  "stroke-width": "6",
4091
4104
  "sketch:type": "MSShapeGroup"
4092
4105
  }),
4093
- /* @__PURE__ */ _("path", {
4106
+ /* @__PURE__ */ b("path", {
4094
4107
  id: "Polygon-3",
4095
4108
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
4096
4109
  stroke: "#795D9C",
4097
4110
  "stroke-width": "6",
4098
4111
  "sketch:type": "MSShapeGroup"
4099
4112
  }),
4100
- /* @__PURE__ */ _("path", {
4113
+ /* @__PURE__ */ b("path", {
4101
4114
  id: "Polygon-4",
4102
4115
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
4103
4116
  stroke: "#F2773F",
4104
4117
  "stroke-width": "6",
4105
4118
  "sketch:type": "MSShapeGroup"
4106
4119
  }),
4107
- /* @__PURE__ */ _("path", {
4120
+ /* @__PURE__ */ b("path", {
4108
4121
  id: "Polygon-5",
4109
4122
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
4110
4123
  stroke: "#36B455",
@@ -4112,12 +4125,12 @@ const aa = {
4112
4125
  "sketch:type": "MSShapeGroup"
4113
4126
  })
4114
4127
  ])
4115
- ], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ _("div", { class: "message-box" }, [
4116
- /* @__PURE__ */ _("h1", null, "404"),
4117
- /* @__PURE__ */ _("p", null, "Page not found"),
4118
- /* @__PURE__ */ _("div", { class: "buttons-con" }, [
4119
- /* @__PURE__ */ _("div", { class: "action-link-wrap" }, [
4120
- /* @__PURE__ */ _("a", {
4128
+ ], -1)), ra = /* @__PURE__ */ gt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4129
+ /* @__PURE__ */ b("h1", null, "404"),
4130
+ /* @__PURE__ */ b("p", null, "Page not found"),
4131
+ /* @__PURE__ */ b("div", { class: "buttons-con" }, [
4132
+ /* @__PURE__ */ b("div", { class: "action-link-wrap" }, [
4133
+ /* @__PURE__ */ b("a", {
4121
4134
  href: "",
4122
4135
  class: "link-button"
4123
4136
  }, "Go to Home Page")
@@ -4130,7 +4143,7 @@ const aa = {
4130
4143
  function ua(e, t, l, o, n, a) {
4131
4144
  return i(), h("div", sa, ca);
4132
4145
  }
4133
- const pa = /* @__PURE__ */ I(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
4146
+ const pa = /* @__PURE__ */ $(aa, [["render", ua], ["__scopeId", "data-v-26068803"]]), da = [
4134
4147
  {
4135
4148
  path: "/",
4136
4149
  component: vt,
@@ -4169,20 +4182,20 @@ function ma(e) {
4169
4182
  e.beforeEach((t, l, o) => {
4170
4183
  ke.start(), t.preHash = location.hash.replace("#", ""), o();
4171
4184
  }), e.afterEach((t) => {
4172
- t.matched.length > 0 && w.commit("user/updateState", {
4185
+ t.matched.length > 0 && g.commit("user/updateState", {
4173
4186
  key: "path",
4174
4187
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
4175
4188
  }), ke.done();
4176
4189
  });
4177
4190
  }
4178
4191
  function fa() {
4179
- return w.state.user.isLodeRemoteRoutes;
4192
+ return g.state.user.isLodeRemoteRoutes;
4180
4193
  }
4181
4194
  function kt() {
4182
- return w.state.settings.whiteRoutes || [];
4195
+ return g.state.settings.whiteRoutes || [];
4183
4196
  }
4184
4197
  function ha() {
4185
- return w.state.user.token;
4198
+ return g.state.user.token;
4186
4199
  }
4187
4200
  class wt {
4188
4201
  constructor() {
@@ -4196,7 +4209,7 @@ class wt {
4196
4209
  showQrCode() {
4197
4210
  }
4198
4211
  }
4199
- class Ei extends wt {
4212
+ class Ii extends wt {
4200
4213
  constructor(l) {
4201
4214
  super();
4202
4215
  R(this, "type", "jump");
@@ -4242,18 +4255,18 @@ class $i extends wt {
4242
4255
  appid: this.appid,
4243
4256
  redirect_uri: encodeURIComponent(this.redirectUri)
4244
4257
  };
4245
- return Q(this.reloadUrl, s) + "&" + Xt(a || {});
4258
+ return Z(this.reloadUrl, s) + "&" + Qt(a || {});
4246
4259
  }, o = () => {
4247
4260
  const a = {
4248
4261
  goto: encodeURIComponent(l()),
4249
4262
  style: encodeURIComponent(this.style)
4250
4263
  };
4251
- return Q(this.qrCodeUrl, a);
4264
+ return Z(this.qrCodeUrl, a);
4252
4265
  }, n = (a) => {
4253
4266
  const { origin: s, data: r } = a;
4254
4267
  s === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: r }));
4255
4268
  };
4256
- this.iframe.src = o(), Qt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4269
+ this.iframe.src = o(), Zt({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
4257
4270
  "message",
4258
4271
  (a) => n(a),
4259
4272
  !1
@@ -4262,22 +4275,22 @@ class $i extends wt {
4262
4275
  }
4263
4276
  const ba = {};
4264
4277
  function _a() {
4265
- return A(w.state.settings.sso || {}, ba);
4278
+ return A(g.state.settings.sso || {}, ba);
4266
4279
  }
4267
4280
  function ya() {
4268
- const e = _a(), t = w.state.settings.activeSsoKey || "", l = e[t];
4281
+ const e = _a(), t = g.state.settings.activeSsoKey || "", l = e[t];
4269
4282
  if (l !== void 0)
4270
4283
  return l();
4271
4284
  }
4272
4285
  function va(e) {
4273
4286
  e.beforeEach(async (t, l, o) => {
4274
- var u, d;
4287
+ var d, u;
4275
4288
  if (kt().indexOf(t.path) !== -1) {
4276
4289
  o();
4277
4290
  return;
4278
4291
  }
4279
4292
  if (ha()) {
4280
- (u = t.query) != null && u.redirect ? o((d = t.query) == null ? void 0 : d.redirect) : o();
4293
+ (d = t.query) != null && d.redirect ? o((u = t.query) == null ? void 0 : u.redirect) : o();
4281
4294
  return;
4282
4295
  }
4283
4296
  const a = t.query.redirect || t.path, s = ya();
@@ -4286,20 +4299,20 @@ function va(e) {
4286
4299
  return;
4287
4300
  }
4288
4301
  const r = s.flag();
4289
- if (r && await w.dispatch("user/login", tl(r) ? r : { ticket: r })) {
4302
+ if (r && await g.dispatch("user/login", tl(r) ? r : { ticket: r })) {
4290
4303
  o();
4291
4304
  return;
4292
4305
  }
4293
4306
  s.jumpToLoginPage(o, `/login?redirect=${a}`);
4294
4307
  });
4295
4308
  }
4296
- const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ _("div", { class: "preloader-inner" }, null, -1), Sa = [
4309
+ const ga = {}, ka = { class: "loading preloader" }, wa = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Sa = [
4297
4310
  wa
4298
4311
  ];
4299
4312
  function xa(e, t) {
4300
4313
  return i(), h("div", ka, Sa);
4301
4314
  }
4302
- const St = /* @__PURE__ */ I(ga, [["render", xa]]), Ea = {
4315
+ const St = /* @__PURE__ */ $(ga, [["render", xa]]), Ea = {
4303
4316
  name: "VNotice",
4304
4317
  props: {
4305
4318
  dataApi: {
@@ -4328,13 +4341,13 @@ const St = /* @__PURE__ */ I(ga, [["render", xa]]), Ea = {
4328
4341
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
4329
4342
  }
4330
4343
  };
4331
- function $a(e, t, l, o, n, a) {
4344
+ function Ia(e, t, l, o, n, a) {
4332
4345
  const s = Oe;
4333
4346
  return i(), h("div", null, [
4334
- n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : $("", !0)
4347
+ n.hasNotice ? (i(), f(s, G(F({ key: 0 }, n.noticeProps)), null, 16)) : E("", !0)
4335
4348
  ]);
4336
4349
  }
4337
- const xt = /* @__PURE__ */ I(Ea, [["render", $a]]), Ia = q({
4350
+ const xt = /* @__PURE__ */ $(Ea, [["render", Ia]]), $a = q({
4338
4351
  components: { VLoading: St, VNotice: xt },
4339
4352
  props: {
4340
4353
  schemaHandler: {
@@ -4370,39 +4383,39 @@ const xt = /* @__PURE__ */ I(Ea, [["render", $a]]), Ia = q({
4370
4383
  beforeCreate() {
4371
4384
  const e = this.$route.path.split("/").filter((n) => n), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, o = { params: this.$route.params };
4372
4385
  this.$http.get(this.$props.schemaApi || l, o).then(({ data: n }) => {
4373
- this.loading = !1, X(n) && (n.notice !== void 0 && (this.haveNotice = !0, $e(n.notice) ? this.notice = {
4386
+ this.loading = !1, Q(n) && (n.notice !== void 0 && (this.haveNotice = !0, Ie(n.notice) ? this.notice = {
4374
4387
  title: n.notice
4375
- } : X(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), w.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4388
+ } : Q(n.notice) && (this.notice = n.notice, this.noticeApi = n.notice.noticeApi), delete n.notice), this.owners = n.ownerNames || [], this.serviceOffLine = n.serviceOffLine || !1), this.schema = this.$props.schemaHandler(n, t), g.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4376
4389
  });
4377
4390
  }
4378
4391
  });
4379
4392
  const Ca = ["innerHTML"];
4380
4393
  function Ta(e, t, l, o, n, a) {
4381
- const s = Oe, r = xt, u = St;
4382
- return i(), h(E, null, [
4394
+ const s = Oe, r = xt, d = St;
4395
+ return i(), h(I, null, [
4383
4396
  e.owners.length > 0 ? (i(), f(s, {
4384
4397
  key: 0,
4385
4398
  title: `该页面功能对应开发: [ ${e.owners.join(", ")} ] 有问题可直接企微反馈`,
4386
4399
  type: "info",
4387
4400
  style: { margin: "0 0 20px 0" },
4388
4401
  closable: !1
4389
- }, null, 8, ["title"])) : $("", !0),
4402
+ }, null, 8, ["title"])) : E("", !0),
4390
4403
  e.env === "prod" && e.serviceOffLine ? (i(), h("div", {
4391
4404
  key: 1,
4392
4405
  class: "offline-notice",
4393
4406
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4394
- }, null, 8, Ca)) : (i(), h(E, { key: 2 }, [
4407
+ }, null, 8, Ca)) : (i(), h(I, { key: 2 }, [
4395
4408
  e.haveNotice ? (i(), f(r, {
4396
4409
  key: 0,
4397
4410
  notice: e.notice,
4398
4411
  style: { margin: "0 0 20px 0" },
4399
4412
  "data-api": e.noticeApi
4400
- }, null, 8, ["notice", "data-api"])) : $("", !0),
4401
- e.loading ? (i(), f(u, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4413
+ }, null, 8, ["notice", "data-api"])) : E("", !0),
4414
+ e.loading ? (i(), f(d, { key: 1 })) : le(e.$slots, "default", G(F({ key: 2 }, e.schema)), void 0, !0)
4402
4415
  ], 64))
4403
4416
  ], 64);
4404
4417
  }
4405
- const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
4418
+ const se = /* @__PURE__ */ $($a, [["render", Ta], ["__scopeId", "data-v-4965a709"]]), Et = {
4406
4419
  __name: "table",
4407
4420
  setup(e) {
4408
4421
  const t = (l, o) => {
@@ -4420,7 +4433,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4420
4433
  };
4421
4434
  return (l, o) => (i(), f(se, { "schema-handler": t }, {
4422
4435
  default: c((n) => [
4423
- p(S(oe), G(Y(n)), null, 16)
4436
+ p(x(oe), G(Y(n)), null, 16)
4424
4437
  ]),
4425
4438
  _: 1
4426
4439
  }));
@@ -4428,21 +4441,21 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4428
4441
  }, xe = {
4429
4442
  __name: "form",
4430
4443
  setup(e) {
4431
- const t = pe(), l = st(), o = (r, u) => {
4432
- const d = Object.keys(z.props);
4444
+ const t = de(), l = st(), o = (r, d) => {
4445
+ const u = Object.keys(z.props);
4433
4446
  return Object.keys(r).forEach((m) => {
4434
- if (d.indexOf(m) === -1) {
4447
+ if (u.indexOf(m) === -1) {
4435
4448
  delete r[m];
4436
4449
  return;
4437
4450
  }
4438
- /.*Api$/.test(m) && (r[m] = Q(r[m], t.params));
4439
- }), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${u}/update/${t.params.id}`, r.getApi || (r.getApi = `/${u}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${u}/create`)), r = A({
4440
- saveApi: u + "/save",
4451
+ /.*Api$/.test(m) && (r[m] = Z(r[m], t.params));
4452
+ }), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${d}/update/${t.params.id}`, r.getApi || (r.getApi = `/${d}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${d}/create`)), r = A({
4453
+ saveApi: d + "/save",
4441
4454
  afterSubmit: "goback",
4442
4455
  afterReset: "goback",
4443
4456
  mod: t.params.id ? "edit" : "create"
4444
4457
  }, r), r;
4445
- }, n = M(0), a = () => {
4458
+ }, n = D(0), a = () => {
4446
4459
  Tt.request({
4447
4460
  url: "/form_mutex",
4448
4461
  method: "get",
@@ -4455,24 +4468,24 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4455
4468
  showCancelButton: !0,
4456
4469
  confirmButtonText: "返回",
4457
4470
  cancelButtonText: "刷新",
4458
- callback: (u) => {
4459
- u === "cancel" ? location.reload() : s();
4471
+ callback: (d) => {
4472
+ d === "cancel" ? location.reload() : s();
4460
4473
  }
4461
4474
  }));
4462
4475
  });
4463
4476
  };
4464
- Qe(() => {
4465
- t.params.id !== void 0 && w.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
4477
+ Ze(() => {
4478
+ t.params.id !== void 0 && g.state.settings.formMutex && (a(), n.value = setInterval(a, 2e3));
4466
4479
  }), Nt(() => {
4467
4480
  clearInterval(n.value);
4468
4481
  });
4469
4482
  function s() {
4470
- var r, u;
4471
- (r = t.query) != null && r.goback ? l.push((u = t.query) == null ? void 0 : u.goback) : history.state.back && history.back();
4483
+ var r, d;
4484
+ (r = t.query) != null && r.goback ? l.push((d = t.query) == null ? void 0 : d.goback) : history.state.back && history.back();
4472
4485
  }
4473
- return (r, u) => (i(), f(se, { "schema-handler": o }, {
4474
- default: c((d) => [
4475
- p(S(z), G(Y(d)), null, 16)
4486
+ return (r, d) => (i(), f(se, { "schema-handler": o }, {
4487
+ default: c((u) => [
4488
+ p(x(z), G(Y(u)), null, 16)
4476
4489
  ]),
4477
4490
  _: 1
4478
4491
  }));
@@ -4551,7 +4564,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4551
4564
  return ["", "新建", "编辑"][this.type];
4552
4565
  },
4553
4566
  formProps() {
4554
- let e = Q(this.$props.saveApi, this.formData);
4567
+ let e = Z(this.$props.saveApi, this.formData);
4555
4568
  return this.type === 1 && (e = this.$props.createApi), {
4556
4569
  saveApi: e,
4557
4570
  getApi: this.$props.getApi,
@@ -4592,7 +4605,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4592
4605
  remove(e) {
4593
4606
  this.$http.request({
4594
4607
  method: "DELETE",
4595
- url: Q(this.$props.deleteApi, e)
4608
+ url: Z(this.$props.deleteApi, e)
4596
4609
  }).then(({ code: t }) => {
4597
4610
  t !== 0 ? this.$message.error("操作失败") : this.loadTree();
4598
4611
  });
@@ -4612,7 +4625,7 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4612
4625
  const n = e.data;
4613
4626
  n.pid = t.data.id, this.$http.request({
4614
4627
  method: "POST",
4615
- url: Q(this.$props.saveApi, n),
4628
+ url: Z(this.$props.saveApi, n),
4616
4629
  data: n
4617
4630
  }).then(({ code: a }) => {
4618
4631
  a !== 0 && this.$message.error("操作失败");
@@ -4620,32 +4633,32 @@ const se = /* @__PURE__ */ I(Ia, [["render", Ta], ["__scopeId", "data-v-4965a709
4620
4633
  }
4621
4634
  }
4622
4635
  });
4623
- const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ _("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
4636
+ const Oa = { class: "card-header" }, Aa = /* @__PURE__ */ b("span", null, "列表", -1), Pa = { class: "tree-action" }, Ra = { key: 0 }, La = {
4624
4637
  key: 1,
4625
4638
  style: { color: "#E6A23C" }
4626
4639
  }, Ma = { class: "card-header" };
4627
- function ja(e, t, l, o, n, a) {
4628
- const s = ue, r = Il, u = Ae, d = de, m = v("v-form"), b = ae;
4629
- return i(), f(b, {
4640
+ function Da(e, t, l, o, n, a) {
4641
+ const s = pe, r = $l, d = Ae, u = me, m = w("v-form"), _ = ae;
4642
+ return i(), f(_, {
4630
4643
  class: "tree-box",
4631
4644
  gutter: 20
4632
4645
  }, {
4633
4646
  default: c(() => [
4634
- p(d, {
4647
+ p(u, {
4635
4648
  span: 8,
4636
4649
  class: "tree-tree"
4637
4650
  }, {
4638
4651
  default: c(() => [
4639
- p(u, { shadow: "never" }, {
4652
+ p(d, { shadow: "never" }, {
4640
4653
  header: c(() => [
4641
- _("div", Oa, [
4654
+ b("div", Oa, [
4642
4655
  Aa,
4643
4656
  p(s, {
4644
4657
  type: "text",
4645
4658
  onClick: t[0] || (t[0] = () => e.appendNew())
4646
4659
  }, {
4647
4660
  default: c(() => [
4648
- k("添加")
4661
+ S("添加")
4649
4662
  ]),
4650
4663
  _: 1
4651
4664
  })
@@ -4663,77 +4676,77 @@ function ja(e, t, l, o, n, a) {
4663
4676
  "allow-drop": e.allowDrop,
4664
4677
  onNodeDragEnd: e.handleDragEnd
4665
4678
  }), {
4666
- default: c(({ node: g, data: x }) => [
4667
- _("span", Pa, [
4668
- x[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(x[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
4669
- _("span", null, [
4670
- x[e.localTreeProps.props.label] ? (i(), f(s, {
4679
+ default: c(({ node: k, data: y }) => [
4680
+ b("span", Pa, [
4681
+ y[e.localTreeProps.props.label] ? (i(), h("span", Ra, B(y[e.localTreeProps.props.label]), 1)) : (i(), h("span", La, "请在右侧表单中修改 --> ")),
4682
+ b("span", null, [
4683
+ y[e.localTreeProps.props.label] ? (i(), f(s, {
4671
4684
  key: 0,
4672
4685
  class: "button",
4673
4686
  type: "text",
4674
- onClick: () => e.onclick(x)
4687
+ onClick: () => e.onclick(y)
4675
4688
  }, {
4676
4689
  default: c(() => [
4677
- k("编辑")
4690
+ S("编辑")
4678
4691
  ]),
4679
4692
  _: 2
4680
- }, 1032, ["onClick"])) : $("", !0),
4681
- e.canAppend(x, g) ? (i(), f(s, {
4693
+ }, 1032, ["onClick"])) : E("", !0),
4694
+ e.canAppend(y, k) ? (i(), f(s, {
4682
4695
  key: 1,
4683
4696
  class: "button",
4684
4697
  type: "text",
4685
- onClick: () => e.append(x, g)
4698
+ onClick: () => e.append(y, k)
4686
4699
  }, {
4687
4700
  default: c(() => [
4688
- k("添加")
4701
+ S("添加")
4689
4702
  ]),
4690
4703
  _: 2
4691
- }, 1032, ["onClick"])) : $("", !0),
4692
- x.children === void 0 || x.children.length === 0 ? (i(), f(s, {
4704
+ }, 1032, ["onClick"])) : E("", !0),
4705
+ y.children === void 0 || y.children.length === 0 ? (i(), f(s, {
4693
4706
  key: 2,
4694
4707
  class: "button",
4695
4708
  type: "text",
4696
- onClick: () => e.remove(x)
4709
+ onClick: () => e.remove(y)
4697
4710
  }, {
4698
4711
  default: c(() => [
4699
- k("删除")
4712
+ S("删除")
4700
4713
  ]),
4701
4714
  _: 2
4702
- }, 1032, ["onClick"])) : $("", !0)
4715
+ }, 1032, ["onClick"])) : E("", !0)
4703
4716
  ])
4704
4717
  ])
4705
4718
  ]),
4706
4719
  _: 1
4707
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
4720
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : E("", !0)
4708
4721
  ]),
4709
4722
  _: 1
4710
4723
  })
4711
4724
  ]),
4712
4725
  _: 1
4713
4726
  }),
4714
- p(d, {
4727
+ p(u, {
4715
4728
  span: 16,
4716
4729
  class: "tree-form"
4717
4730
  }, {
4718
4731
  default: c(() => [
4719
- e.type ? (i(), f(u, {
4732
+ e.type ? (i(), f(d, {
4720
4733
  key: 0,
4721
4734
  shadow: "never"
4722
4735
  }, {
4723
4736
  header: c(() => [
4724
- _("div", Ma, [
4725
- _("span", null, B(e.formType), 1)
4737
+ b("div", Ma, [
4738
+ b("span", null, B(e.formType), 1)
4726
4739
  ])
4727
4740
  ]),
4728
4741
  default: c(() => [
4729
4742
  (i(), f(m, F({
4730
4743
  key: e.formkey,
4731
4744
  modelValue: e.formData,
4732
- "onUpdate:modelValue": t[1] || (t[1] = (g) => e.formData = g)
4745
+ "onUpdate:modelValue": t[1] || (t[1] = (k) => e.formData = k)
4733
4746
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4734
4747
  ]),
4735
4748
  _: 1
4736
- })) : $("", !0)
4749
+ })) : E("", !0)
4737
4750
  ]),
4738
4751
  _: 1
4739
4752
  })
@@ -4741,7 +4754,7 @@ function ja(e, t, l, o, n, a) {
4741
4754
  _: 1
4742
4755
  });
4743
4756
  }
4744
- const Fe = /* @__PURE__ */ I(Ba, [["render", ja]]), Da = {
4757
+ const Fe = /* @__PURE__ */ $(Ba, [["render", Da]]), ja = {
4745
4758
  __name: "tree",
4746
4759
  setup(e) {
4747
4760
  const t = (l, o) => {
@@ -4760,11 +4773,11 @@ const Fe = /* @__PURE__ */ I(Ba, [["render", ja]]), Da = {
4760
4773
  }, ge = {
4761
4774
  __name: "container",
4762
4775
  setup(e) {
4763
- const t = M(0);
4776
+ const t = D(0);
4764
4777
  return pl(() => {
4765
4778
  t.value++;
4766
4779
  }), (l, o) => {
4767
- const n = v("router-view");
4780
+ const n = w("router-view");
4768
4781
  return i(), f(n);
4769
4782
  };
4770
4783
  }
@@ -4801,28 +4814,28 @@ function Va(e, t, l) {
4801
4814
  if (l.length === 0)
4802
4815
  return {};
4803
4816
  let o = A({}, Na);
4804
- if (o.title.text = e, $e(t)) {
4817
+ if (o.title.text = e, Ie(t)) {
4805
4818
  const n = [], a = Object.keys(l[0]);
4806
- let s = a[0], r = a.filter((d, m) => m > 0), u = t;
4819
+ let s = a[0], r = a.filter((u, m) => m > 0), d = t;
4807
4820
  if (t.indexOf(":") > -1) {
4808
- const d = t.split(":"), m = d[1].split(",");
4809
- u = d[0], s = m[0], r = m.filter((b, g) => g > 0);
4821
+ const u = t.split(":"), m = u[1].split(",");
4822
+ d = u[0], s = m[0], r = m.filter((_, k) => k > 0);
4810
4823
  }
4811
- r.forEach((d) => {
4824
+ r.forEach((u) => {
4812
4825
  const m = [];
4813
- l.forEach((b) => {
4814
- m.push(b[d]);
4826
+ l.forEach((_) => {
4827
+ m.push(_[u]);
4815
4828
  }), o.series.push({
4816
- name: d,
4817
- type: u,
4829
+ name: u,
4830
+ type: d,
4818
4831
  smooth: !0,
4819
4832
  data: m
4820
- }), o.legend.data.push(d);
4821
- }), l.forEach((d) => {
4822
- n.push(d[s]);
4833
+ }), o.legend.data.push(u);
4834
+ }), l.forEach((u) => {
4835
+ n.push(u[s]);
4823
4836
  }), o.xAxis.data = n;
4824
4837
  }
4825
- return X(t) && (o = A(o, t)), o;
4838
+ return Q(t) && (o = A(o, t)), o;
4826
4839
  }
4827
4840
  const qa = q({
4828
4841
  name: "NumberPanel",
@@ -4837,19 +4850,19 @@ const qa = q({
4837
4850
  }
4838
4851
  }), Ua = { class: "number-panel-title" }, Ha = { class: "number" }, Fa = { class: "name" };
4839
4852
  function Ga(e, t, l, o, n, a) {
4840
- return i(!0), h(E, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
4841
- _("div", Ua, [
4842
- (i(!0), h(E, null, O(Object.keys(s), (u, d) => (i(), h("div", {
4843
- key: d,
4853
+ return i(!0), h(I, null, O(e.dataList, (s, r) => (i(), h("span", { key: r }, [
4854
+ b("div", Ua, [
4855
+ (i(!0), h(I, null, O(Object.keys(s), (d, u) => (i(), h("div", {
4856
+ key: u,
4844
4857
  class: "title-inner"
4845
4858
  }, [
4846
- _("p", Ha, B(s[u]), 1),
4847
- _("p", Fa, B(u), 1)
4859
+ b("p", Ha, B(s[d]), 1),
4860
+ b("p", Fa, B(d), 1)
4848
4861
  ]))), 128))
4849
4862
  ])
4850
4863
  ]))), 128);
4851
4864
  }
4852
- const Ja = /* @__PURE__ */ I(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
4865
+ const Ja = /* @__PURE__ */ $(qa, [["render", Ga], ["__scopeId", "data-v-cc0d8293"]]), za = {
4853
4866
  components: {
4854
4867
  Chart: Tl,
4855
4868
  Md: Rl,
@@ -4907,14 +4920,14 @@ function Ka(e, t, l, o, n, a) {
4907
4920
  class: "part"
4908
4921
  }, {
4909
4922
  default: c(() => [
4910
- (i(), f(Ze(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
4923
+ (i(), f(Xe(o.comptype()), G(Y(o.compprops(l.option))), null, 16))
4911
4924
  ]),
4912
4925
  _: 1
4913
4926
  })), [
4914
4927
  [r, !0]
4915
4928
  ]);
4916
4929
  }
4917
- const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Za = /* @__PURE__ */ q({
4930
+ const Wa = /* @__PURE__ */ $(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1"]]), Xa = /* @__PURE__ */ q({
4918
4931
  __name: "index",
4919
4932
  props: {
4920
4933
  filter: {
@@ -4928,13 +4941,13 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
4928
4941
  },
4929
4942
  setup(e) {
4930
4943
  const t = e, l = useRoute();
4931
- Qe(() => {
4944
+ Ze(() => {
4932
4945
  });
4933
- const o = M({});
4946
+ const o = D({});
4934
4947
  ze(() => {
4935
4948
  var m;
4936
- (m = t.filter) == null || m.forEach((b) => {
4937
- b.default !== null && (o.value[b.field] = b.default);
4949
+ (m = t.filter) == null || m.forEach((_) => {
4950
+ _.default !== null && (o.value[_.field] = _.default);
4938
4951
  });
4939
4952
  });
4940
4953
  const n = {
@@ -4947,51 +4960,51 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
4947
4960
  cancelButton: {
4948
4961
  text: "重置"
4949
4962
  }
4950
- }, a = M(1), s = M(t.filter), r = M(t.dataPart), u = j(() => {
4963
+ }, a = D(1), s = D(t.filter), r = D(t.dataPart), d = M(() => {
4951
4964
  let m = l.params.id;
4952
4965
  if (!m) {
4953
- const b = l.path.split("/");
4954
- m = b[b.length - 1];
4966
+ const _ = l.path.split("/");
4967
+ m = _[_.length - 1];
4955
4968
  }
4956
4969
  return "/focusbi_report/view/" + m;
4957
- }), d = (m) => {
4958
- Tt.get(u.value, { params: m }).then(({ data: b }) => {
4959
- s.value = b.filter, r.value = b.dataPart, a.value++;
4970
+ }), u = (m) => {
4971
+ Tt.get(d.value, { params: m }).then(({ data: _ }) => {
4972
+ s.value = _.filter, r.value = _.dataPart, a.value++;
4960
4973
  });
4961
4974
  };
4962
- return (m, b) => {
4963
- const g = Ae, x = de, J = Oe, U = ae;
4975
+ return (m, _) => {
4976
+ const k = Ae, y = me, J = Oe, U = ae;
4964
4977
  return i(), f(U, null, {
4965
4978
  default: c(() => [
4966
- S(s).length > 0 ? (i(), f(x, {
4979
+ x(s).length > 0 ? (i(), f(y, {
4967
4980
  key: 0,
4968
4981
  span: 24
4969
4982
  }, {
4970
4983
  default: c(() => [
4971
- p(g, {
4984
+ p(k, {
4972
4985
  shadow: "never",
4973
4986
  class: "part-filter"
4974
4987
  }, {
4975
4988
  default: c(() => [
4976
- p(S(z), {
4977
- modelValue: S(o),
4978
- "onUpdate:modelValue": b[0] || (b[0] = (T) => qt(o) ? o.value = T : null),
4979
- "form-items": S(s),
4989
+ p(x(z), {
4990
+ modelValue: x(o),
4991
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => qt(o) ? o.value = T : null),
4992
+ "form-items": x(s),
4980
4993
  options: n,
4981
- onSubmit: d
4994
+ onSubmit: u
4982
4995
  }, null, 8, ["modelValue", "form-items"])
4983
4996
  ]),
4984
4997
  _: 1
4985
4998
  })
4986
4999
  ]),
4987
5000
  _: 1
4988
- })) : $("", !0),
4989
- p(x, { span: 24 }, {
5001
+ })) : E("", !0),
5002
+ p(y, { span: 24 }, {
4990
5003
  default: c(() => [
4991
5004
  p(U, { gutter: 20 }, {
4992
5005
  default: c(() => [
4993
- (i(!0), h(E, null, O(S(r), (T, Z) => (i(), f(x, {
4994
- key: Z,
5006
+ (i(!0), h(I, null, O(x(r), (T, X) => (i(), f(y, {
5007
+ key: X,
4995
5008
  span: T.col || 24
4996
5009
  }, {
4997
5010
  default: c(() => [
@@ -5001,11 +5014,11 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5001
5014
  type: "error"
5002
5015
  }, {
5003
5016
  default: c(() => [
5004
- k(B(T.errMsg), 1)
5017
+ S(B(T.errMsg), 1)
5005
5018
  ]),
5006
5019
  _: 2
5007
5020
  }, 1032, ["title"])) : (i(), f(Wa, {
5008
- key: S(a),
5021
+ key: x(a),
5009
5022
  option: T
5010
5023
  }, null, 8, ["option"]))
5011
5024
  ]),
@@ -5023,10 +5036,10 @@ const Wa = /* @__PURE__ */ I(za, [["render", Ka], ["__scopeId", "data-v-a5a65cc1
5023
5036
  };
5024
5037
  }
5025
5038
  });
5026
- const Qa = {
5039
+ const Za = {
5027
5040
  __name: "report",
5028
5041
  setup(e) {
5029
- const t = useRoute(), l = j(() => {
5042
+ const t = useRoute(), l = M(() => {
5030
5043
  let o = t.params.id;
5031
5044
  if (!o) {
5032
5045
  const n = t.path.split("/");
@@ -5034,19 +5047,19 @@ const Qa = {
5034
5047
  }
5035
5048
  return "/focusbi_report/view/" + o;
5036
5049
  });
5037
- return (o, n) => (i(), f(se, { "schema-api": S(l) }, {
5050
+ return (o, n) => (i(), f(se, { "schema-api": x(l) }, {
5038
5051
  default: c((a) => [
5039
- p(Za, G(Y(a)), null, 16)
5052
+ p(Xa, G(Y(a)), null, 16)
5040
5053
  ]),
5041
5054
  _: 1
5042
5055
  }, 8, ["schema-api"]));
5043
5056
  }
5044
5057
  };
5045
- const Xa = (e) => p("div", null, [e.test]), Ya = {
5058
+ const Qa = (e) => p("div", null, [e.test]), Ya = {
5046
5059
  card: al,
5047
5060
  form: z,
5048
5061
  table: oe,
5049
- test: Xa,
5062
+ test: Qa,
5050
5063
  row: sl,
5051
5064
  col: il
5052
5065
  }, es = {
@@ -5082,9 +5095,9 @@ function ts(e) {
5082
5095
  type: l[a],
5083
5096
  children: [n]
5084
5097
  };
5085
- return n.span = o, De([n]);
5098
+ return n.span = o, je([n]);
5086
5099
  }
5087
- function De(e) {
5100
+ function je(e) {
5088
5101
  const t = {
5089
5102
  type: "row",
5090
5103
  props: {
@@ -5096,12 +5109,12 @@ function De(e) {
5096
5109
  return e.forEach((l) => {
5097
5110
  var s, r;
5098
5111
  let o = Object.assign({}, l);
5099
- if (X((s = o.props) == null ? void 0 : s.style)) {
5100
- let u = "";
5101
- Object.keys((r = o.props) == null ? void 0 : r.style).forEach((d) => {
5112
+ if (Q((s = o.props) == null ? void 0 : s.style)) {
5113
+ let d = "";
5114
+ Object.keys((r = o.props) == null ? void 0 : r.style).forEach((u) => {
5102
5115
  var m;
5103
- u += d + ":" + ((m = o.props) == null ? void 0 : m.style[d]) + ";";
5104
- }), o.props.style = u;
5116
+ d += u + ":" + ((m = o.props) == null ? void 0 : m.style[u]) + ";";
5117
+ }), o.props.style = d;
5105
5118
  }
5106
5119
  const n = {
5107
5120
  span: o.span ?? 24,
@@ -5118,37 +5131,37 @@ function De(e) {
5118
5131
  o = A({
5119
5132
  props: {}
5120
5133
  }, es[o.type] || {}, o);
5121
- const a = $t(o.children);
5122
- a.length && (o.children = De(a)), t.children.push({
5134
+ const a = It(o.children);
5135
+ a.length && (o.children = je(a)), t.children.push({
5123
5136
  type: "col",
5124
5137
  props: n,
5125
5138
  children: [o]
5126
5139
  });
5127
5140
  }), [t];
5128
5141
  }
5129
- function $t(e) {
5130
- return tt(e) ? e : X(e) ? [e] : [];
5142
+ function It(e) {
5143
+ return tt(e) ? e : Q(e) ? [e] : [];
5131
5144
  }
5132
5145
  let Ee = {};
5133
- const It = (e) => {
5146
+ const $t = (e) => {
5134
5147
  const t = Ya[e.type] || Ee[e.type] || e.type;
5135
5148
  return Ht(t, e.props, {
5136
- default: () => $t(e.children).map((l) => It(l))
5149
+ default: () => It(e.children).map((l) => $t(l))
5137
5150
  });
5138
- }, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components), De(Object.values(e.schema)).map((l) => It(l))), ns = {
5151
+ }, ls = (e) => (Object.keys(Ee).length === 0 && (Ee = Ut().appContext.components), je(Object.values(e.schema)).map((l) => $t(l))), ns = {
5139
5152
  __name: "custom",
5140
5153
  setup(e) {
5141
- const t = M([]), l = (o, n) => (t.value = Ft(o), o);
5154
+ const t = D([]), l = (o, n) => (t.value = Ft(o), o);
5142
5155
  return (o, n) => (i(), f(se, { "schema-handler": l }, {
5143
5156
  default: c(() => [
5144
- p(S(ls), { schema: S(t) }, null, 8, ["schema"])
5157
+ p(x(ls), { schema: x(t) }, null, 8, ["schema"])
5145
5158
  ]),
5146
5159
  _: 1
5147
5160
  }));
5148
5161
  }
5149
5162
  };
5150
5163
  let te = {};
5151
- function Ii(e) {
5164
+ function Ci(e) {
5152
5165
  te = e;
5153
5166
  }
5154
5167
  const os = (e) => {
@@ -5159,25 +5172,25 @@ const os = (e) => {
5159
5172
  if (e.path === "#")
5160
5173
  return ge;
5161
5174
  switch (e.page_type) {
5162
- case D.list:
5175
+ case j.list:
5163
5176
  return Et;
5164
- case D.form:
5177
+ case j.form:
5165
5178
  return xe;
5166
- case D.custom:
5167
- case D.localComp:
5179
+ case j.custom:
5180
+ case j.localComp:
5168
5181
  return t(e.view || "");
5169
- case D.tree:
5170
- return Da;
5171
- case D.report:
5172
- return Qa;
5173
- case D.customSchema:
5182
+ case j.tree:
5183
+ return ja;
5184
+ case j.report:
5185
+ return Za;
5186
+ case j.customSchema:
5174
5187
  return ns;
5175
5188
  }
5176
5189
  return ge;
5177
5190
  };
5178
5191
  function as(e) {
5179
5192
  let t = e.path;
5180
- return e.type === L.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;
5193
+ return e.type === L.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;
5181
5194
  }
5182
5195
  function ss(e) {
5183
5196
  return (e.path + e.name).split("/").filter((t) => t).join("_");
@@ -5199,7 +5212,7 @@ const Ct = (e) => {
5199
5212
  },
5200
5213
  children: e.children ? e.children.map((o) => Ct(o)) : []
5201
5214
  };
5202
- if (e.page_type === D.entity) {
5215
+ if (e.page_type === j.entity) {
5203
5216
  const o = e.path + "/list", n = e.path + "/form", a = e.path + "/:id", s = [{
5204
5217
  path: o,
5205
5218
  name: e.name + "列表" + e.id,
@@ -5281,8 +5294,8 @@ function rs(e) {
5281
5294
  o();
5282
5295
  return;
5283
5296
  }
5284
- await w.dispatch("user/info");
5285
- const n = await w.dispatch("user/loadRemoteRoutes"), a = is(n);
5297
+ await g.dispatch("user/info");
5298
+ const n = await g.dispatch("user/loadRemoteRoutes"), a = is(n);
5286
5299
  a.forEach((s) => {
5287
5300
  s.routes.forEach((r) => {
5288
5301
  e.addRoute({
@@ -5291,20 +5304,20 @@ function rs(e) {
5291
5304
  children: [r]
5292
5305
  });
5293
5306
  });
5294
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), w.commit("user/updateRemoteRouter", a), await e.replace(t), o();
5307
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), g.commit("user/updateRemoteRouter", a), await e.replace(t), o();
5295
5308
  });
5296
5309
  }
5297
5310
  function cs(e) {
5298
5311
  e.beforeEach(async (t, l, o) => {
5299
5312
  var r;
5300
- const a = [w.state.settings.title || ""], s = t.matched.length;
5301
- for (let u = s; u > s - 3; u--) {
5302
- const d = t.matched[u - 1];
5303
- (r = d == null ? void 0 : d.meta) != null && r.title && a.push(d.meta.title + "");
5313
+ const a = [g.state.settings.title || ""], s = t.matched.length;
5314
+ for (let d = s; d > s - 3; d--) {
5315
+ const u = t.matched[d - 1];
5316
+ (r = u == null ? void 0 : u.meta) != null && r.title && a.push(u.meta.title + "");
5304
5317
  }
5305
5318
  a.length > 1 && (document.title = a.reverse().join("-")), o();
5306
5319
  }), e.afterEach(async (t, l, o) => {
5307
- Object.keys(t.meta).length > 0 && await w.dispatch("app/setCurrentMeta", t.meta);
5320
+ Object.keys(t.meta).length > 0 && await g.dispatch("app/setCurrentMeta", t.meta);
5308
5321
  });
5309
5322
  }
5310
5323
  function us(e) {
@@ -5312,7 +5325,10 @@ function us(e) {
5312
5325
  }
5313
5326
  us(K);
5314
5327
  function ps() {
5315
- return w.state.user.token;
5328
+ return g.state.user.token;
5329
+ }
5330
+ function ds() {
5331
+ return g.state.user.expired;
5316
5332
  }
5317
5333
  function Ge(e) {
5318
5334
  ln({
@@ -5322,26 +5338,28 @@ function Ge(e) {
5322
5338
  grouping: !0
5323
5339
  });
5324
5340
  }
5325
- const ds = {
5341
+ const ms = {
5326
5342
  onFulfilled: function(e) {
5327
5343
  var l;
5328
5344
  e.headers = e.headers || {};
5329
5345
  const t = ps();
5330
5346
  return t && (e.headers["X-Token"] = t), (l = K.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = K.currentRoute.value.meta.path), e;
5331
5347
  }
5332
- }, ms = {
5348
+ }, fs = {
5333
5349
  onFulfilled(e) {
5334
- var o, n, a, s, r, u, d;
5350
+ var o, n, a, s, r, d, u;
5335
5351
  if (!(((o = e.config) == null ? void 0 : o.notHoldApiErr) !== void 0 && ((n = e.config) == null ? void 0 : n.notHoldApiErr) === !0) && e.data.code !== 0) {
5336
5352
  const m = e.data.message || `接口请求错误 ${e.config.method}::${(a = e.config.url) == null ? void 0 : a.split("?")[0]}`;
5337
5353
  if (e.data.code === 401) {
5338
- Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5354
+ if (ds())
5355
+ return;
5356
+ g.dispatch("user/SetExpired"), Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5339
5357
  showClose: !1,
5340
5358
  confirmButtonText: "重新登录",
5341
5359
  showCancelButton: !0,
5342
5360
  cancelButtonText: "取消",
5343
- callback: (b) => {
5344
- b === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5361
+ callback: (_) => {
5362
+ _ === "confirm" && (ft(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), g.dispatch("user/SetExpired");
5345
5363
  }
5346
5364
  });
5347
5365
  return;
@@ -5350,8 +5368,8 @@ const ds = {
5350
5368
  return Promise.reject(m);
5351
5369
  }
5352
5370
  let l = (r = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : r._message_box;
5353
- return l !== void 0 && ($e(l) && (l = {
5354
- message: (d = (u = e.data) == null ? void 0 : u.data) == null ? void 0 : d._message_box
5371
+ return l !== void 0 && (Ie(l) && (l = {
5372
+ message: (u = (d = e.data) == null ? void 0 : d.data) == null ? void 0 : u._message_box
5355
5373
  }), Ue({
5356
5374
  title: "提示",
5357
5375
  type: "success",
@@ -5361,29 +5379,29 @@ const ds = {
5361
5379
  },
5362
5380
  onRejected(e) {
5363
5381
  var t;
5364
- return Ie.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5382
+ return $e.isCancel(e) ? Promise.reject("") : (Ge(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
5365
5383
  }
5366
- }, fs = [
5384
+ }, hs = [
5367
5385
  {
5368
5386
  request: on,
5369
5387
  response: an
5370
5388
  },
5371
5389
  {
5372
- request: ds,
5373
- response: ms
5390
+ request: ms,
5391
+ response: fs
5374
5392
  }
5375
5393
  ];
5376
5394
  function Ne(e = {}) {
5377
- const t = me.axios || {}, l = A(t, e || {}), o = Ie.create({
5395
+ const t = fe.axios || {}, l = A(t, e || {}), o = $e.create({
5378
5396
  ...l
5379
5397
  // adapter: (c) => cacheAdapter(c, defaultAxios)
5380
5398
  });
5381
- return fs.forEach((n) => {
5399
+ return hs.forEach((n) => {
5382
5400
  o.interceptors.request.use(n.request.onFulfilled, n.request.onRejected), o.interceptors.response.use(n.response.onFulfilled, n.response.onRejected);
5383
5401
  }), o;
5384
5402
  }
5385
5403
  const Tt = Ne();
5386
- const hs = {
5404
+ const bs = {
5387
5405
  beforeMount(e, t) {
5388
5406
  e.clickOutsideEvent = function(l) {
5389
5407
  e === l.target || e.contains(l.target) || t.value(l, e);
@@ -5392,13 +5410,13 @@ const hs = {
5392
5410
  unmounted(e) {
5393
5411
  document.body.removeEventListener("click", e.clickOutsideEvent);
5394
5412
  }
5395
- }, W = Al(), bs = {
5413
+ }, W = Al(), _s = {
5396
5414
  mounted: (e, t) => {
5397
5415
  e !== null && (t.value, e.oncontextmenu = (l) => {
5398
5416
  l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && W.emit("right-click", { event: l, data: t.value });
5399
5417
  });
5400
5418
  }
5401
- }, _s = {
5419
+ }, ys = {
5402
5420
  mounted(e) {
5403
5421
  }
5404
5422
  };
@@ -5408,13 +5426,13 @@ function Je(e, t) {
5408
5426
  l += o[`offset${t}`], o = o.offsetParent;
5409
5427
  return l;
5410
5428
  }
5411
- const ys = {
5429
+ const vs = {
5412
5430
  mounted: (e, t) => {
5413
5431
  if (e === null || !t.value.dev)
5414
5432
  return;
5415
5433
  let l = e;
5416
5434
  if (t.value.parent)
5417
- for (let u = 0; u < t.value.parent; u++)
5435
+ for (let d = 0; d < t.value.parent; d++)
5418
5436
  l.parentElement && (l = l.parentElement);
5419
5437
  l.classList.add("devtool-hover");
5420
5438
  const o = document.createElement("i");
@@ -5424,75 +5442,75 @@ const ys = {
5424
5442
  const n = document.createElement("span");
5425
5443
  n.className = "dev-action-edit", n.title = "编辑";
5426
5444
  const a = document.createElement("i");
5427
- a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (u) => {
5428
- W.emit("dev-action", { event: u, data: { type: "edit", devId: t.value.devId } });
5445
+ a.className = "iconfont ra-editor1", n.appendChild(a), n.onclick = (d) => {
5446
+ W.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5429
5447
  }, o.appendChild(n);
5430
5448
  const s = document.createElement("span");
5431
5449
  s.className = "dev-action-del", s.title = "删除";
5432
5450
  const r = document.createElement("i");
5433
- r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (u) => {
5434
- W.emit("dev-action", { event: u, data: { type: "del", devId: t.value.devId } });
5451
+ r.className = "iconfont ra-cut", s.appendChild(r), s.onclick = (d) => {
5452
+ W.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5435
5453
  }, o.appendChild(s), l.insertBefore(o, l.firstChild);
5436
5454
  }
5437
- }, vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5455
+ }, gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5438
5456
  __proto__: null,
5439
- devtool: ys,
5440
- outClick: hs,
5441
- resize: _s,
5442
- rightClick: bs
5457
+ devtool: vs,
5458
+ outClick: bs,
5459
+ resize: ys,
5460
+ rightClick: _s
5443
5461
  }, Symbol.toStringTag, { value: "Module" }));
5444
- let ce;
5445
- function Ci(e) {
5446
- return e ? Ne(A(me.axios, e)) : ce;
5447
- }
5462
+ let ue;
5448
5463
  function Ti(e) {
5449
- const t = A(me, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
5464
+ return e ? Ne(A(fe.axios, e)) : ue;
5465
+ }
5466
+ function Bi(e) {
5467
+ const t = A(fe, e), l = Gt(Ml), o = $s(t), n = t.plugins || [];
5450
5468
  n.unshift(o), n.forEach((a) => {
5451
- Es(l, a);
5452
- }), t != null && t.mock && Jl(), ce = Ne(t.axios), w.dispatch("setHttp", ce).then(), w.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), w.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, Bl(() => ({
5469
+ Is(l, a);
5470
+ }), t != null && t.mock && Jl(), ue = Ne(t.axios), g.dispatch("setHttp", ue).then(), g.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), g.dispatch("app/setBaseAPI", t == null ? void 0 : t.axios.baseURL).then(), l.config.globalProperties.$http = ue, l.config.globalProperties.$router = K, window.App = l, window.OmsOptions = t, Bl(() => ({
5453
5471
  "X-Token": Me()
5454
5472
  })), K.isReady().then(() => l.mount("#app"));
5455
5473
  }
5456
- function gs(e, t = {}) {
5474
+ function ks(e, t = {}) {
5457
5475
  Object.keys(t).forEach((l) => {
5458
5476
  e.component(l, t[l]);
5459
5477
  });
5460
5478
  }
5461
- function ks(e = []) {
5479
+ function ws(e = []) {
5462
5480
  e.forEach((t) => {
5463
5481
  K.addRoute(t);
5464
- }), w.commit("user/setCustomRoutes", e);
5482
+ }), g.commit("user/setCustomRoutes", e);
5465
5483
  }
5466
- function ws(e, t) {
5484
+ function Ss(e, t) {
5467
5485
  t.forEach((l) => {
5468
- X(l) && (l = [l]), e.use(...l);
5486
+ Q(l) && (l = [l]), e.use(...l);
5469
5487
  });
5470
5488
  }
5471
- function Ss(e, t = {}) {
5489
+ function xs(e, t = {}) {
5472
5490
  Object.keys(t).forEach((l) => {
5473
5491
  e.directive(l, t[l]);
5474
5492
  });
5475
5493
  }
5476
- function xs(e = {}) {
5494
+ function Es(e = {}) {
5477
5495
  const t = ["app", "settings", "user"];
5478
5496
  Object.keys(e).forEach((l) => {
5479
5497
  if (t.indexOf(l) !== -1) {
5480
5498
  console.warn(`storeModule name [${l}] is use by base, please change it!`);
5481
5499
  return;
5482
5500
  }
5483
- w.registerModule(l, e[l]);
5501
+ g.registerModule(l, e[l]);
5484
5502
  });
5485
5503
  }
5486
- function Es(e, t) {
5487
- gs(e, t.components || {}), ks(t.routes || []), ws(e, t.use || []), Ss(e, t.directives || {}), xs(t.storeModules || {}), dt(t.mockApis || []);
5504
+ function Is(e, t) {
5505
+ ks(e, t.components || {}), ws(t.routes || []), Ss(e, t.use || []), xs(e, t.directives || {}), Es(t.storeModules || {}), dt(t.mockApis || []);
5488
5506
  }
5489
5507
  function $s(e) {
5490
5508
  var t;
5491
5509
  return {
5492
5510
  components: { VIcon: Ol },
5493
- directives: vs,
5511
+ directives: gs,
5494
5512
  use: [
5495
- w,
5513
+ g,
5496
5514
  K,
5497
5515
  [nl, { locale: nt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5498
5516
  ]
@@ -5502,21 +5520,21 @@ export {
5502
5520
  wt as BaseSso,
5503
5521
  ge as Container,
5504
5522
  $i as DingTalk,
5505
- Ei as Github,
5523
+ Ii as Github,
5506
5524
  vt as Layout,
5507
5525
  L as MenuType,
5508
5526
  ln as Message,
5509
5527
  Ue as MessageBox,
5510
- D as PageType,
5528
+ j as PageType,
5511
5529
  _a as allSso,
5512
- Ti as createAdmin,
5530
+ Bi as createAdmin,
5513
5531
  W as eventBus,
5514
5532
  sn as getCmp,
5515
- ce as http,
5533
+ ue as http,
5516
5534
  Ne as instance,
5517
- Ii as regViews,
5518
- xi as setCmp,
5535
+ Ci as regViews,
5536
+ Ei as setCmp,
5519
5537
  is as transRemoteModules,
5520
- Ci as useHttp
5538
+ Ti as useHttp
5521
5539
  };
5522
5540
  //# sourceMappingURL=index.es.js.map