@okiss/oms 0.0.37 → 0.0.38

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,10 +1,10 @@
1
1
  var $t = Object.defineProperty;
2
2
  var It = (e, t, l) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
3
  var M = (e, t, l) => (It(e, typeof t != "symbol" ? t + "" : t, l), l);
4
- import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as m, createVNode as u, computed as V, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as w, renderList as B, toDisplayString as O, normalizeClass as F, renderSlot as te, mergeProps as G, createCommentVNode as S, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as K, guardReactiveProps as X, unref as x, withDirectives as ve, vModelText as Ne, resolveDirective as Pt, onMounted as Rt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
5
- import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, isString as Ee, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as fe, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Z, obj2Param as zt, isObject as Q, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
4
+ import { defineComponent as q, onBeforeMount as ze, provide as Ct, resolveComponent as v, openBlock as i, createBlock as m, createVNode as u, computed as V, createTextVNode as g, withCtx as r, TransitionGroup as Tt, createElementBlock as h, Fragment as w, renderList as B, toDisplayString as O, normalizeClass as F, renderSlot as le, mergeProps as G, createCommentVNode as S, toRefs as Ot, ref as L, normalizeStyle as Bt, createElementVNode as b, Transition as At, pushScopeId as Ke, popScopeId as We, resolveDynamicComponent as Ze, normalizeProps as W, guardReactiveProps as Y, unref as x, withDirectives as ve, vModelText as Ne, resolveDirective as Rt, onMounted as Pt, isRef as Lt, getCurrentInstance as Mt, h as Dt, toRaw as jt, createApp as Nt } from "vue";
5
+ import { addNewStyle as Vt, addNewStyleTag as qt, queryParams as Ut, logGroup as Ht, compactObject as Qe, showEleByClassName as Xe, waterMarker as Ft, Cache as fe, isExternal as Ve, getQueryParam as Gt, createIFrame as Jt, strVarReplace as Q, obj2Param as zt, isObject as X, isString as Ee, effectDataTrans as Kt, isArray as Ye } from "@okiss/utils";
6
6
  import he from "mockjs";
7
- import Wt, { cloneDeep as y, merge as A, get as le, unset as et } from "lodash";
7
+ import Wt, { cloneDeep as y, merge as A, get as ne, unset as et } from "lodash";
8
8
  import tt from "element-plus/lib/locale/lang/zh-cn";
9
9
  import $e from "axios";
10
10
  import j from "js-cookie";
@@ -12,11 +12,8 @@ import { createStore as Zt, useStore as lt, mapGetters as Ie } from "vuex";
12
12
  import Qt, { ElMessage as Xt, ElMessageBox as Yt, ElCard as el, ElRow as tl, ElCol as ll } from "element-plus";
13
13
  import "element-plus/dist/index.css";
14
14
  import "dayjs/locale/zh-cn";
15
- import { VForm as J, VBtn as Ce, JsonView as Te, VTable as ne, VChart as nl, setUploadHeaderHandle as ol, VIcon as sl } from "@okiss/vbtf";
16
- import "normalize.css/normalize.css";
17
- import "@okiss/vbtf/style.css";
18
- import { useRoute as ue, onBeforeRouteLeave as al, useRouter as il, createRouter as rl, createWebHashHistory as cl, onBeforeRouteUpdate as ul } from "vue-router";
19
- import { ElBreadcrumbItem as pl, ElBreadcrumb as dl, ElRow as se, ElMain as ml, ElAside as fl, ElContainer as hl, ElDivider as nt, ElButton as ce, ElOption as Oe, ElSelect as Be, ElFormItem as ot, ElForm as st, ElCol as pe, ElDrawer as at, ElDropdownItem as bl, ElDropdownMenu as _l, ElDropdown as yl, ElMenuItem as vl, ElSubMenu as gl, ElOptionGroup as kl, ElMenu as wl, ElScrollbar as Sl, ElBacktop as xl, ElMessage as El, ElAlert as Ae, ElTree as $l, ElCard as Pe } from "element-plus/es";
15
+ import { useRoute as ue, onBeforeRouteLeave as nl, useRouter as ol, createRouter as sl, createWebHashHistory as al, onBeforeRouteUpdate as il } from "vue-router";
16
+ import { ElBreadcrumbItem as rl, ElBreadcrumb as cl, ElRow as se, ElMain as ul, ElAside as pl, ElContainer as dl, ElDivider as nt, ElButton as ce, ElOption as Ce, ElSelect as Te, ElFormItem as ot, ElForm as st, ElCol as pe, ElDrawer as at, ElDropdownItem as ml, ElDropdownMenu as fl, ElDropdown as hl, ElMenuItem as bl, ElSubMenu as _l, ElOptionGroup as yl, ElMenu as vl, ElScrollbar as gl, ElBacktop as kl, ElMessage as wl, ElAlert as Oe, ElTree as Sl, ElCard as Be } from "element-plus/es";
20
17
  import "element-plus/es/components/base/style/css";
21
18
  import "element-plus/es/components/row/style/css";
22
19
  import "element-plus/es/components/drawer/style/css";
@@ -26,7 +23,7 @@ import "element-plus/es/components/dropdown-item/style/css";
26
23
  import "element-plus/es/components/col/style/css";
27
24
  import "element-plus/es/components/breadcrumb/style/css";
28
25
  import "element-plus/es/components/breadcrumb-item/style/css";
29
- import * as Il from "path-to-regexp";
26
+ import * as xl from "path-to-regexp";
30
27
  import "element-plus/es/components/form/style/css";
31
28
  import "element-plus/es/components/form-item/style/css";
32
29
  import "element-plus/es/components/select/style/css";
@@ -36,6 +33,9 @@ import "element-plus/es/components/divider/style/css";
36
33
  import "element-plus/es/components/container/style/css";
37
34
  import "element-plus/es/components/aside/style/css";
38
35
  import "element-plus/es/components/main/style/css";
36
+ import { VForm as J, VBtn as Ae, JsonView as Re, VTable as oe, VChart as El, setUploadHeaderHandle as $l, VIcon as Il } from "@okiss/vbtf";
37
+ import "normalize.css/normalize.css";
38
+ import "@okiss/vbtf/style.css";
39
39
  import Cl from "mitt";
40
40
  import "element-plus/es/components/scrollbar/style/css";
41
41
  import "element-plus/es/components/menu/style/css";
@@ -75,7 +75,7 @@ const Bl = /* @__PURE__ */ q({
75
75
  };
76
76
  }
77
77
  });
78
- var Y = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(Y || {});
78
+ var ee = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ee || {});
79
79
  const Al = {
80
80
  saveApi: "/save",
81
81
  afterSubmit: "",
@@ -465,7 +465,7 @@ const Al = {
465
465
  type: "success"
466
466
  }
467
467
  }
468
- ], Pl = {
468
+ ], Rl = {
469
469
  exportAble: !0,
470
470
  filter: [
471
471
  {
@@ -574,7 +574,7 @@ const Al = {
574
574
  ],
575
575
  selectedNotice: "当前共勾选: {selectedCount} 条",
576
576
  listApi: "/user/list"
577
- }, Rl = {
577
+ }, Pl = {
578
578
  code: 0,
579
579
  data: {
580
580
  "list|0-100": [
@@ -671,9 +671,9 @@ const Al = {
671
671
  label: "span"
672
672
  }
673
673
  ]
674
- }, Dl = { form: Al, table: Pl, listMock: Rl, layoutForm: Ll, layoutSection: Ml }, jl = [
674
+ }, Dl = { form: Al, table: Rl, listMock: Pl, layoutForm: Ll, layoutSection: Ml }, jl = [
675
675
  {
676
- method: Y.POST,
676
+ method: ee.POST,
677
677
  url: "/login",
678
678
  response(e) {
679
679
  return {
@@ -686,7 +686,7 @@ const Al = {
686
686
  }
687
687
  },
688
688
  {
689
- method: Y.GET,
689
+ method: ee.GET,
690
690
  url: "/user/info",
691
691
  response(e) {
692
692
  return {
@@ -700,7 +700,7 @@ const Al = {
700
700
  },
701
701
  {
702
702
  url: "/user/routes",
703
- method: Y.GET,
703
+ method: ee.GET,
704
704
  response: (e) => ({
705
705
  code: 0,
706
706
  data: [
@@ -714,7 +714,7 @@ const Al = {
714
714
  },
715
715
  {
716
716
  url: "/user/list",
717
- method: Y.GET,
717
+ method: ee.GET,
718
718
  response: (e) => Dl.listMock
719
719
  }
720
720
  ], Nl = [
@@ -776,16 +776,16 @@ function ql() {
776
776
  });
777
777
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
778
778
  }
779
- const Re = "oms:token";
779
+ const Pe = "oms:token";
780
780
  function Le() {
781
- return j.get(Re) || "";
781
+ return j.get(Pe) || "";
782
782
  }
783
783
  function Ul(e) {
784
784
  const t = new Date((/* @__PURE__ */ new Date()).getTime() + (E.state.settings.tokenExpire || 864e5));
785
- return j.set(Re, e, { expires: t });
785
+ return j.set(Pe, e, { expires: t });
786
786
  }
787
787
  function ut() {
788
- return j.remove(Re);
788
+ return j.remove(Pe);
789
789
  }
790
790
  const Hl = {
791
791
  name: "",
@@ -1055,89 +1055,17 @@ const Hl = {
1055
1055
  onRejected(e) {
1056
1056
  return Promise.reject(e);
1057
1057
  }
1058
- };
1059
- function tn() {
1060
- return E.state.user.token;
1061
- }
1062
- function He(e) {
1063
- Ql({
1064
- message: e,
1065
- type: "error",
1066
- duration: 5 * 1e3,
1067
- grouping: !0
1068
- });
1069
- }
1070
- const ln = {
1071
- onFulfilled: function(e) {
1072
- e.headers = e.headers || {};
1073
- const t = tn();
1074
- return t && (e.headers["X-Token"] = t), e;
1075
- }
1076
- }, nn = {
1077
- onFulfilled(e) {
1078
- var n, o, s, a, c, p, d;
1079
- if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
1080
- const f = e.data.message || `接口请求错误 ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
1081
- if (e.data.code === 401) {
1082
- Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
1083
- showClose: !1,
1084
- confirmButtonText: "重新登录",
1085
- showCancelButton: !0,
1086
- cancelButtonText: "取消",
1087
- callback: (_) => {
1088
- _ === "confirm" && (ut(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
1089
- }
1090
- });
1091
- return;
1092
- } else
1093
- He(f);
1094
- return Promise.reject(f);
1095
- }
1096
- let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
1097
- return l !== void 0 && (Ee(l) && (l = {
1098
- message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
1099
- }), Ue({
1100
- title: "提示",
1101
- type: "success",
1102
- grouping: !0,
1103
- ...l
1104
- })), e.data;
1105
- },
1106
- onRejected(e) {
1107
- var t;
1108
- return $e.isCancel(e) ? Promise.reject("") : (He(`${e.message} ${e.config.method}::${(t = e.config.url) == null ? void 0 : t.split("?")[0]}`), Promise.reject(e));
1109
- }
1110
- }, on = [
1111
- {
1112
- request: Yl,
1113
- response: en
1114
- },
1115
- {
1116
- request: ln,
1117
- response: nn
1118
- }
1119
- ];
1120
- function Me(e = {}) {
1121
- const t = de.axios || {}, l = A(t, e || {}), n = $e.create({
1122
- ...l
1123
- // adapter: (c) => cacheAdapter(c, defaultAxios)
1124
- });
1125
- return on.forEach((o) => {
1126
- n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
1127
- }), n;
1128
- }
1129
- const sn = Me();
1130
- const pt = {};
1058
+ }, pt = {};
1131
1059
  function vi(e, t) {
1132
1060
  pt[e] = t;
1133
1061
  }
1134
- function an(e) {
1062
+ function tn(e) {
1135
1063
  return pt[e];
1136
1064
  }
1137
- const rn = /* @__PURE__ */ q({
1065
+ const ln = /* @__PURE__ */ q({
1138
1066
  name: "Dashboard",
1139
1067
  setup() {
1140
- const e = an("test");
1068
+ const e = tn("test");
1141
1069
  if (e)
1142
1070
  return () => u(e, null, null);
1143
1071
  const t = lt(), l = V(() => t.getters.name);
@@ -1153,8 +1081,8 @@ const $ = (e, t) => {
1153
1081
  for (const [n, o] of t)
1154
1082
  l[n] = o;
1155
1083
  return l;
1156
- }, cn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-10e6b4b6"]]);
1157
- const un = {
1084
+ }, nn = /* @__PURE__ */ $(ln, [["__scopeId", "data-v-10e6b4b6"]]);
1085
+ const on = {
1158
1086
  data() {
1159
1087
  return {
1160
1088
  levelList: null
@@ -1186,7 +1114,7 @@ const un = {
1186
1114
  },
1187
1115
  pathCompile(e) {
1188
1116
  const { params: t } = this.$route;
1189
- return Il.compile(e)(t);
1117
+ return xl.compile(e)(t);
1190
1118
  },
1191
1119
  handleLink(e) {
1192
1120
  const { redirect: t, path: l } = e;
@@ -1197,12 +1125,12 @@ const un = {
1197
1125
  this.$router.push(this.pathCompile(l));
1198
1126
  }
1199
1127
  }
1200
- }, pn = {
1128
+ }, sn = {
1201
1129
  key: 0,
1202
1130
  class: "no-redirect"
1203
- }, dn = ["onClick"];
1204
- function mn(e, t, l, n, o, s) {
1205
- const a = pl, c = dl;
1131
+ }, an = ["onClick"];
1132
+ function rn(e, t, l, n, o, s) {
1133
+ const a = rl, c = cl;
1206
1134
  return i(), m(c, {
1207
1135
  class: "app-breadcrumb",
1208
1136
  separator: "/"
@@ -1214,10 +1142,10 @@ function mn(e, t, l, n, o, s) {
1214
1142
  key: p.path
1215
1143
  }, {
1216
1144
  default: r(() => [
1217
- p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", pn, O(p.meta.title), 1)) : (i(), h("a", {
1145
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === o.levelList.length - 1 ? (i(), h("span", sn, O(p.meta.title), 1)) : (i(), h("a", {
1218
1146
  key: 1,
1219
1147
  onClick: (f) => s.handleLink(p)
1220
- }, O(p.meta.title), 9, dn))
1148
+ }, O(p.meta.title), 9, an))
1221
1149
  ]),
1222
1150
  _: 2
1223
1151
  }, 1024))), 128))
@@ -1228,7 +1156,7 @@ function mn(e, t, l, n, o, s) {
1228
1156
  _: 1
1229
1157
  });
1230
1158
  }
1231
- const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e"]]), hn = {
1159
+ const cn = /* @__PURE__ */ $(on, [["render", rn], ["__scopeId", "data-v-fa74804e"]]), un = {
1232
1160
  name: "Hamburger",
1233
1161
  props: {
1234
1162
  isActive: {
@@ -1243,7 +1171,7 @@ const fn = /* @__PURE__ */ $(un, [["render", mn], ["__scopeId", "data-v-fa74804e
1243
1171
  }
1244
1172
  }
1245
1173
  };
1246
- function bn(e, t, l, n, o, s) {
1174
+ function pn(e, t, l, n, o, s) {
1247
1175
  const a = v("v-icon");
1248
1176
  return i(), h("div", {
1249
1177
  style: { padding: "0 15px" },
@@ -1255,15 +1183,15 @@ function bn(e, t, l, n, o, s) {
1255
1183
  }, null, 8, ["class"])
1256
1184
  ]);
1257
1185
  }
1258
- const _n = /* @__PURE__ */ $(hn, [["render", bn]]);
1259
- const yn = {};
1260
- function vn(e, t) {
1261
- const l = se, n = ml, o = fl, s = hl;
1186
+ const dn = /* @__PURE__ */ $(un, [["render", pn]]);
1187
+ const mn = {};
1188
+ function fn(e, t) {
1189
+ const l = se, n = ul, o = pl, s = dl;
1262
1190
  return i(), m(s, { style: { width: "100%", height: "100%" } }, {
1263
1191
  default: r(() => [
1264
1192
  u(l, { class: "aside" }, {
1265
1193
  default: r(() => [
1266
- te(e.$slots, "left-aside", {}, void 0, !0)
1194
+ le(e.$slots, "left-aside", {}, void 0, !0)
1267
1195
  ]),
1268
1196
  _: 3
1269
1197
  }),
@@ -1272,7 +1200,7 @@ function vn(e, t) {
1272
1200
  style: { margin: "0 10px" }
1273
1201
  }, {
1274
1202
  default: r(() => [
1275
- te(e.$slots, "main", {}, void 0, !0)
1203
+ le(e.$slots, "main", {}, void 0, !0)
1276
1204
  ]),
1277
1205
  _: 3
1278
1206
  }),
@@ -1282,7 +1210,7 @@ function vn(e, t) {
1282
1210
  style: { padding: "20px" }
1283
1211
  }, {
1284
1212
  default: r(() => [
1285
- te(e.$slots, "right-aside", {}, void 0, !0)
1213
+ le(e.$slots, "right-aside", {}, void 0, !0)
1286
1214
  ]),
1287
1215
  _: 3
1288
1216
  })
@@ -1290,7 +1218,7 @@ function vn(e, t) {
1290
1218
  _: 3
1291
1219
  });
1292
1220
  }
1293
- const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b"]]), gn = {
1221
+ const dt = /* @__PURE__ */ $(mn, [["render", fn], ["__scopeId", "data-v-7c3d697b"]]), hn = {
1294
1222
  type: "input",
1295
1223
  name: "文本框",
1296
1224
  default: {
@@ -1358,7 +1286,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1358
1286
  }
1359
1287
  }
1360
1288
  ]
1361
- }, kn = {
1289
+ }, bn = {
1362
1290
  type: "number",
1363
1291
  name: "数字",
1364
1292
  default: {
@@ -1400,7 +1328,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1400
1328
  }
1401
1329
  }
1402
1330
  ]
1403
- }, wn = {
1331
+ }, _n = {
1404
1332
  type: "number-range",
1405
1333
  name: "数字区间",
1406
1334
  default: {
@@ -1441,7 +1369,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1441
1369
  }
1442
1370
  }
1443
1371
  ]
1444
- }, Sn = {
1372
+ }, yn = {
1445
1373
  type: "select",
1446
1374
  name: "下拉框",
1447
1375
  default: {
@@ -1547,7 +1475,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1547
1475
  const t = y(e);
1548
1476
  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;
1549
1477
  }
1550
- }, xn = {
1478
+ }, vn = {
1551
1479
  type: "radio",
1552
1480
  name: "单选框",
1553
1481
  default: {
@@ -1593,7 +1521,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1593
1521
  label: "默认值"
1594
1522
  }
1595
1523
  ]
1596
- }, En = {
1524
+ }, gn = {
1597
1525
  type: "switch",
1598
1526
  name: "开关",
1599
1527
  default: {
@@ -1649,7 +1577,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1649
1577
  }
1650
1578
  }
1651
1579
  ]
1652
- }, $n = {
1580
+ }, kn = {
1653
1581
  type: "code",
1654
1582
  name: "Code",
1655
1583
  default: {
@@ -1669,7 +1597,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1669
1597
  label: "字段key"
1670
1598
  }
1671
1599
  ]
1672
- }, In = {
1600
+ }, wn = {
1673
1601
  type: "json",
1674
1602
  name: "json",
1675
1603
  default: {
@@ -1689,7 +1617,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1689
1617
  label: "字段key"
1690
1618
  }
1691
1619
  ]
1692
- }, Cn = {
1620
+ }, Sn = {
1693
1621
  type: "upload",
1694
1622
  name: "上传",
1695
1623
  default: {
@@ -1709,7 +1637,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1709
1637
  label: "字段key"
1710
1638
  }
1711
1639
  ]
1712
- }, Tn = {
1640
+ }, xn = {
1713
1641
  type: "template",
1714
1642
  name: "自定义组件",
1715
1643
  default: {
@@ -1729,7 +1657,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1729
1657
  label: "字段key"
1730
1658
  }
1731
1659
  ]
1732
- }, On = {
1660
+ }, En = {
1733
1661
  type: "icon-select",
1734
1662
  name: "图标选择器",
1735
1663
  default: {
@@ -1749,7 +1677,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1749
1677
  label: "字段key"
1750
1678
  }
1751
1679
  ]
1752
- }, Bn = {
1680
+ }, $n = {
1753
1681
  type: "sub-form",
1754
1682
  name: "子表单",
1755
1683
  default: {
@@ -1817,7 +1745,7 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1817
1745
  }
1818
1746
  }
1819
1747
  ]
1820
- }, An = {
1748
+ }, In = {
1821
1749
  type: "checkbox",
1822
1750
  name: "复选框",
1823
1751
  default: {
@@ -1864,23 +1792,23 @@ const dt = /* @__PURE__ */ $(yn, [["render", vn], ["__scopeId", "data-v-7c3d697b
1864
1792
  }
1865
1793
  ]
1866
1794
  }, mt = {};
1867
- function P(e) {
1795
+ function R(e) {
1868
1796
  mt[e.type] = e;
1869
1797
  }
1870
- P(gn);
1871
- P(Sn);
1872
- P(kn);
1873
- P(wn);
1874
- P(En);
1875
- P(Bn);
1876
- P(xn);
1877
- P(An);
1878
- P($n);
1879
- P(In);
1880
- P(Cn);
1881
- P(On);
1882
- P(Tn);
1883
- const we = mt, Pn = {
1798
+ R(hn);
1799
+ R(yn);
1800
+ R(bn);
1801
+ R(_n);
1802
+ R(gn);
1803
+ R($n);
1804
+ R(vn);
1805
+ R(In);
1806
+ R(kn);
1807
+ R(wn);
1808
+ R(Sn);
1809
+ R(En);
1810
+ R(xn);
1811
+ const we = mt, Cn = {
1884
1812
  options: {
1885
1813
  labelPosition: "top",
1886
1814
  submitButton: !1,
@@ -1983,11 +1911,11 @@ const be = {
1983
1911
  labelPosition: "top",
1984
1912
  submitButton: !1,
1985
1913
  cancelButton: !1
1986
- }, De = [];
1914
+ }, Me = [];
1987
1915
  Object.keys(we).forEach((e) => {
1988
- De.push({ value: e, label: we[e].name });
1916
+ Me.push({ value: e, label: we[e].name });
1989
1917
  });
1990
- const Rn = {
1918
+ const Tn = {
1991
1919
  options: {
1992
1920
  submitButton: !1,
1993
1921
  cancelButton: !1
@@ -2008,7 +1936,7 @@ const Rn = {
2008
1936
  type: "select",
2009
1937
  field: "type",
2010
1938
  label: "类型",
2011
- options: y(De)
1939
+ options: y(Me)
2012
1940
  },
2013
1941
  {
2014
1942
  type: "input",
@@ -2019,8 +1947,8 @@ const Rn = {
2019
1947
  }
2020
1948
  }
2021
1949
  ]
2022
- }, Ln = {
2023
- components: { DevLayout: dt, VForm: J, VButton: Ce, JsonView: Te },
1950
+ }, On = {
1951
+ components: { DevLayout: dt, VForm: J, VButton: Ae, JsonView: Re },
2024
1952
  props: {
2025
1953
  schema: {
2026
1954
  type: Object,
@@ -2031,8 +1959,8 @@ const Rn = {
2031
1959
  data() {
2032
1960
  return {
2033
1961
  sqlOptions: {},
2034
- sqlSchema: Rn,
2035
- baseSchema: Pn,
1962
+ sqlSchema: Tn,
1963
+ baseSchema: Cn,
2036
1964
  activeTab: "base",
2037
1965
  builderSchema: Object.assign(
2038
1966
  {},
@@ -2057,7 +1985,7 @@ const Rn = {
2057
1985
  tableStruct: "",
2058
1986
  activeName: "1",
2059
1987
  currentCtrlType: "input",
2060
- types: y(De)
1988
+ types: y(Me)
2061
1989
  };
2062
1990
  },
2063
1991
  computed: {
@@ -2080,7 +2008,7 @@ const Rn = {
2080
2008
  deep: !0,
2081
2009
  // immediate: true,
2082
2010
  handler(e) {
2083
- const t = le(this.builderSchema, this.activeIndex);
2011
+ const t = ne(this.builderSchema, this.activeIndex);
2084
2012
  if (!t)
2085
2013
  return;
2086
2014
  const l = t ? t.type : "", n = this.ctrlMap[l], o = n.trans ? n.trans(e) : e;
@@ -2101,18 +2029,18 @@ const Rn = {
2101
2029
  options: y(be),
2102
2030
  formItems: y(t.builder)
2103
2031
  });
2104
- const l = le(this.builderSchema, this.activeIndex);
2032
+ const l = ne(this.builderSchema, this.activeIndex);
2105
2033
  this.ctrlOptions = y(l), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2106
2034
  }
2107
2035
  }
2108
2036
  },
2109
2037
  beforeCreate() {
2110
- z.on("dev-action", ({ event: e, data: t }) => {
2038
+ K.on("dev-action", ({ event: e, data: t }) => {
2111
2039
  this.onDevAction(t.type, t.devId);
2112
2040
  });
2113
2041
  },
2114
2042
  unmounted() {
2115
- z.off("dev-action");
2043
+ K.off("dev-action");
2116
2044
  },
2117
2045
  methods: {
2118
2046
  onDevAction(e, t) {
@@ -2133,7 +2061,7 @@ const Rn = {
2133
2061
  clicklabel() {
2134
2062
  const e = this.activeIndex;
2135
2063
  if (e.match(this.activeIndexReg)) {
2136
- const l = y(le(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
2064
+ const l = y(ne(this.builderSchema, e)), n = l.type, o = this.ctrlMap[n];
2137
2065
  if (!o) {
2138
2066
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
2139
2067
  return;
@@ -2155,8 +2083,8 @@ const Rn = {
2155
2083
  }
2156
2084
  }
2157
2085
  };
2158
- function Mn(e, t, l, n, o, s) {
2159
- const a = v("v-form"), c = nt, p = ce, d = v("JsonView"), f = v("VButton"), _ = Oe, T = Be, k = ot, H = st, U = v("dev-layout");
2086
+ function Bn(e, t, l, n, o, s) {
2087
+ const a = v("v-form"), c = nt, p = ce, d = v("JsonView"), f = v("VButton"), _ = Ce, T = Te, k = ot, H = st, U = v("dev-layout");
2160
2088
  return i(), m(U, null, {
2161
2089
  main: r(() => [
2162
2090
  o.builderSchema.formItems ? (i(), m(a, G({
@@ -2195,8 +2123,8 @@ function Mn(e, t, l, n, o, s) {
2195
2123
  "onUpdate:modelValue": t[0] || (t[0] = (C) => o.currentCtrlType = C)
2196
2124
  }, {
2197
2125
  default: r(() => [
2198
- (i(!0), h(w, null, B(o.types, (C, W) => (i(), m(_, {
2199
- key: W,
2126
+ (i(!0), h(w, null, B(o.types, (C, Z) => (i(), m(_, {
2127
+ key: Z,
2200
2128
  label: C.label,
2201
2129
  value: C.value
2202
2130
  }, null, 8, ["label", "value"]))), 128))
@@ -2218,7 +2146,7 @@ function Mn(e, t, l, n, o, s) {
2218
2146
  _: 1
2219
2147
  });
2220
2148
  }
2221
- const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171"]]), jn = {
2149
+ const An = /* @__PURE__ */ $(On, [["render", Bn], ["__scopeId", "data-v-875f0171"]]), Rn = {
2222
2150
  type: "input",
2223
2151
  name: "文本框",
2224
2152
  default: {
@@ -2266,7 +2194,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2266
2194
  }
2267
2195
  }
2268
2196
  ]
2269
- }, Nn = {
2197
+ }, Pn = {
2270
2198
  type: "select",
2271
2199
  name: "下拉框",
2272
2200
  default: {
@@ -2367,7 +2295,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2367
2295
  const t = y(e);
2368
2296
  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;
2369
2297
  }
2370
- }, Vn = {
2298
+ }, Ln = {
2371
2299
  type: "date",
2372
2300
  name: "日期",
2373
2301
  default: {
@@ -2387,7 +2315,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2387
2315
  label: "字段key"
2388
2316
  }
2389
2317
  ]
2390
- }, Fe = {
2318
+ }, He = {
2391
2319
  options: {
2392
2320
  labelPosition: "top",
2393
2321
  submitButton: !1,
@@ -2416,7 +2344,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2416
2344
  labelPosition: "top",
2417
2345
  submitButton: !1,
2418
2346
  cancelButton: !1
2419
- }, qn = {
2347
+ }, Mn = {
2420
2348
  type: "span",
2421
2349
  name: "文本",
2422
2350
  default: {
@@ -2446,7 +2374,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2446
2374
  label: "排序"
2447
2375
  }
2448
2376
  ]
2449
- }, Un = {
2377
+ }, Dn = {
2450
2378
  type: "enum",
2451
2379
  name: "标签",
2452
2380
  default: {
@@ -2497,7 +2425,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2497
2425
  trans(e) {
2498
2426
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
2499
2427
  }
2500
- }, Hn = {
2428
+ }, jn = {
2501
2429
  type: "html",
2502
2430
  name: "HTML",
2503
2431
  default: {
@@ -2522,7 +2450,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2522
2450
  label: "提示"
2523
2451
  }
2524
2452
  ]
2525
- }, Fn = {
2453
+ }, Nn = {
2526
2454
  type: "icon",
2527
2455
  name: "图标",
2528
2456
  default: {
@@ -2547,7 +2475,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2547
2475
  label: "提示"
2548
2476
  }
2549
2477
  ]
2550
- }, Gn = {
2478
+ }, Vn = {
2551
2479
  type: "image",
2552
2480
  name: "图片",
2553
2481
  default: {
@@ -2572,7 +2500,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2572
2500
  label: "提示"
2573
2501
  }
2574
2502
  ]
2575
- }, Jn = {
2503
+ }, qn = {
2576
2504
  type: "json",
2577
2505
  name: "JSON",
2578
2506
  default: {
@@ -2597,7 +2525,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2597
2525
  label: "提示"
2598
2526
  }
2599
2527
  ]
2600
- }, zn = {
2528
+ }, Un = {
2601
2529
  type: "link",
2602
2530
  name: "链接",
2603
2531
  default: {
@@ -2622,7 +2550,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2622
2550
  label: "提示"
2623
2551
  }
2624
2552
  ]
2625
- }, Kn = {
2553
+ }, Hn = {
2626
2554
  type: "rich",
2627
2555
  name: "富文本",
2628
2556
  default: {
@@ -2647,7 +2575,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2647
2575
  label: "提示"
2648
2576
  }
2649
2577
  ]
2650
- }, Wn = {
2578
+ }, Fn = {
2651
2579
  type: "tpl",
2652
2580
  name: "模板",
2653
2581
  default: {
@@ -2678,17 +2606,17 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2678
2606
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2679
2607
  }
2680
2608
  ]
2681
- }, Zn = {
2682
- span: qn,
2683
- enum: Un,
2684
- html: Hn,
2685
- icon: Fn,
2686
- image: Gn,
2687
- json: Jn,
2688
- link: zn,
2689
- rich: Kn,
2690
- tpl: Wn
2691
- }, Qn = {
2609
+ }, Gn = {
2610
+ span: Mn,
2611
+ enum: Dn,
2612
+ html: jn,
2613
+ icon: Nn,
2614
+ image: Vn,
2615
+ json: qn,
2616
+ link: Un,
2617
+ rich: Hn,
2618
+ tpl: Fn
2619
+ }, Jn = {
2692
2620
  type: "jump",
2693
2621
  name: "跳转",
2694
2622
  default: {
@@ -2735,7 +2663,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2735
2663
  }
2736
2664
  }
2737
2665
  ]
2738
- }, Xn = {
2666
+ }, zn = {
2739
2667
  type: "api",
2740
2668
  name: "接口请求",
2741
2669
  default: {
@@ -2804,7 +2732,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2804
2732
  }
2805
2733
  }
2806
2734
  ]
2807
- }, Yn = {
2735
+ }, Kn = {
2808
2736
  type: "form",
2809
2737
  name: "弹框表单",
2810
2738
  default: {
@@ -2858,7 +2786,7 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2858
2786
  label: "保存接口"
2859
2787
  }
2860
2788
  ]
2861
- }, eo = {
2789
+ }, Wn = {
2862
2790
  type: "table",
2863
2791
  name: "弹框列表",
2864
2792
  default: {
@@ -2912,14 +2840,14 @@ const Dn = /* @__PURE__ */ $(Ln, [["render", Mn], ["__scopeId", "data-v-875f0171
2912
2840
  label: "保存接口"
2913
2841
  }
2914
2842
  ]
2915
- }, to = {
2916
- jump: Qn,
2917
- api: Xn,
2918
- form: Yn,
2919
- table: eo
2843
+ }, Zn = {
2844
+ jump: Jn,
2845
+ api: zn,
2846
+ form: Kn,
2847
+ table: Wn
2920
2848
  };
2921
- const lo = {
2922
- components: { JsonView: Te, DevLayout: dt, VTable: ne, VForm: J, VButton: Ce },
2849
+ const Qn = {
2850
+ components: { JsonView: Re, DevLayout: dt, VTable: oe, VForm: J, VButton: Ae },
2923
2851
  props: {
2924
2852
  schema: {
2925
2853
  type: Object,
@@ -2930,11 +2858,11 @@ const lo = {
2930
2858
  data() {
2931
2859
  const e = Ot(this.$props.schema);
2932
2860
  return delete e.listApi, e.list = [{}], {
2933
- baseSchema: Fe,
2861
+ baseSchema: He,
2934
2862
  activeTab: "base",
2935
2863
  builderSchema: Object.assign(
2936
2864
  {},
2937
- Fe,
2865
+ He,
2938
2866
  e
2939
2867
  ),
2940
2868
  baseOptions: {},
@@ -2947,9 +2875,9 @@ const lo = {
2947
2875
  ctrlName: "",
2948
2876
  activeIndex: void 0,
2949
2877
  ctrlMap: {
2950
- filter: { input: jn, select: Nn, date: Vn },
2951
- headers: Zn,
2952
- buttons: to
2878
+ filter: { input: Rn, select: Pn, date: Ln },
2879
+ headers: Gn,
2880
+ buttons: Zn
2953
2881
  },
2954
2882
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2955
2883
  currentCtrlType: "input"
@@ -3014,7 +2942,7 @@ const lo = {
3014
2942
  options: y(_e),
3015
2943
  formItems: y(t.builder)
3016
2944
  });
3017
- const l = le(this.builderSchema, this.activeIndex);
2945
+ const l = ne(this.builderSchema, this.activeIndex);
3018
2946
  l.type = e;
3019
2947
  const n = y(l);
3020
2948
  this.ctrlOptions = n, n.text && (this.ctrlOptions.text = n.text, this.ctrlOptions.props = n.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
@@ -3022,12 +2950,12 @@ const lo = {
3022
2950
  }
3023
2951
  },
3024
2952
  beforeCreate() {
3025
- z.on("dev-action", ({ event: e, data: t }) => {
2953
+ K.on("dev-action", ({ event: e, data: t }) => {
3026
2954
  this.onDevAction(t.type, t.devId);
3027
2955
  });
3028
2956
  },
3029
2957
  unmounted() {
3030
- z.off("dev-action");
2958
+ K.off("dev-action");
3031
2959
  },
3032
2960
  methods: {
3033
2961
  updateBuilderSchema() {
@@ -3068,7 +2996,7 @@ const lo = {
3068
2996
  clicklabel() {
3069
2997
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
3070
2998
  if (t) {
3071
- const l = y(le(this.builderSchema, e));
2999
+ const l = y(ne(this.builderSchema, e));
3072
3000
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
3073
3001
  let n = this.builderSchema[t[1]][parseInt(t[2])].type;
3074
3002
  t[1] === "headers" && n === void 0 && (n = "span");
@@ -3101,8 +3029,8 @@ const lo = {
3101
3029
  }
3102
3030
  }
3103
3031
  };
3104
- function no(e, t, l, n, o, s) {
3105
- const a = pe, c = ce, p = se, d = v("v-table"), f = nt, _ = ce, T = v("JsonView"), k = v("VButton"), H = Oe, U = Be, C = ot, W = st, xt = v("v-form"), Et = v("dev-layout");
3032
+ function Xn(e, t, l, n, o, s) {
3033
+ const a = pe, c = ce, p = se, d = v("v-table"), f = nt, _ = ce, T = v("JsonView"), k = v("VButton"), H = Ce, U = Te, C = ot, Z = st, xt = v("v-form"), Et = v("dev-layout");
3106
3034
  return i(), m(Et, null, {
3107
3035
  "left-aside": r(() => [
3108
3036
  u(p, { style: { width: "200px" } }, {
@@ -3329,7 +3257,7 @@ function no(e, t, l, n, o, s) {
3329
3257
  })
3330
3258
  ]),
3331
3259
  "right-aside": r(() => [
3332
- o.activeIndex ? (i(), m(W, { key: 0 }, {
3260
+ o.activeIndex ? (i(), m(Z, { key: 0 }, {
3333
3261
  default: r(() => [
3334
3262
  u(C, { label: "控件类型" }, {
3335
3263
  default: r(() => [
@@ -3361,15 +3289,15 @@ function no(e, t, l, n, o, s) {
3361
3289
  _: 1
3362
3290
  });
3363
3291
  }
3364
- const oo = /* @__PURE__ */ $(lo, [["render", no], ["__scopeId", "data-v-e5209cb7"]]), so = {
3292
+ const Yn = /* @__PURE__ */ $(Qn, [["render", Xn], ["__scopeId", "data-v-e5209cb7"]]), eo = {
3365
3293
  name: "PageEditor",
3366
- components: { FormBuilder: Dn, TableBuilder: oo },
3294
+ components: { FormBuilder: An, TableBuilder: Yn },
3367
3295
  setup() {
3368
3296
  const e = L(!1), t = L(1), l = "rtl", n = ue(), o = V(() => E.state.app.pages[n.path]);
3369
3297
  return { show: e, key: t, direction: l, pageSchema: o };
3370
3298
  }
3371
3299
  };
3372
- function ao(e, t, l, n, o, s) {
3300
+ function to(e, t, l, n, o, s) {
3373
3301
  const a = v("VIcon"), c = v("form-builder"), p = v("table-builder"), d = at;
3374
3302
  return i(), h(w, null, [
3375
3303
  u(a, {
@@ -3400,13 +3328,13 @@ function ao(e, t, l, n, o, s) {
3400
3328
  }, 8, ["modelValue", "direction"])
3401
3329
  ], 64);
3402
3330
  }
3403
- const io = /* @__PURE__ */ $(so, [["render", ao]]);
3404
- const ro = {
3331
+ const lo = /* @__PURE__ */ $(eo, [["render", to]]);
3332
+ const no = {
3405
3333
  components: {
3406
- Breadcrumb: fn,
3407
- Hamburger: _n,
3408
- VButton: Ce,
3409
- PageEditor: io
3334
+ Breadcrumb: cn,
3335
+ Hamburger: dn,
3336
+ VButton: Ae,
3337
+ PageEditor: lo
3410
3338
  },
3411
3339
  data() {
3412
3340
  return {
@@ -3481,15 +3409,15 @@ const ro = {
3481
3409
  (t = (e = this.$route) == null ? void 0 : e.meta) != null && t.pageId && window.open(location.origin + location.pathname + "#/menu/" + ((n = (l = this.$route) == null ? void 0 : l.meta) == null ? void 0 : n.pageId));
3482
3410
  }
3483
3411
  }
3484
- }, co = { class: "right-content" }, uo = { class: "right-item" }, po = {
3412
+ }, oo = { class: "right-content" }, so = { class: "right-item" }, ao = {
3485
3413
  key: 0,
3486
3414
  class: "right-item"
3487
- }, mo = {
3415
+ }, io = {
3488
3416
  class: "right-item-button",
3489
3417
  style: { padding: "0" }
3490
- }, fo = { class: "user-info" }, ho = ["src"], bo = { class: "user-name" };
3491
- function _o(e, t, l, n, o, s) {
3492
- const a = v("hamburger"), c = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = bl, k = _l, H = yl, U = at, C = se;
3418
+ }, ro = { class: "user-info" }, co = ["src"], uo = { class: "user-name" };
3419
+ function po(e, t, l, n, o, s) {
3420
+ const a = v("hamburger"), c = v("breadcrumb"), p = pe, d = v("VIcon"), f = v("PageEditor"), _ = v("v-button"), T = ml, k = fl, H = hl, U = at, C = se;
3493
3421
  return i(), m(C, {
3494
3422
  ref: "header",
3495
3423
  class: "navbar",
@@ -3509,17 +3437,17 @@ function _o(e, t, l, n, o, s) {
3509
3437
  }),
3510
3438
  u(p, { span: 8 }, {
3511
3439
  default: r(() => [
3512
- b("div", co, [
3513
- b("div", uo, [
3440
+ b("div", oo, [
3441
+ b("div", so, [
3514
3442
  u(d, {
3515
3443
  name: "ra-code",
3516
3444
  onClick: s.gotoMenuEdit
3517
3445
  }, null, 8, ["onClick"])
3518
3446
  ]),
3519
- s.showPageJsonSchemaIcon ? (i(), h("div", po, [
3447
+ s.showPageJsonSchemaIcon ? (i(), h("div", ao, [
3520
3448
  u(f)
3521
3449
  ])) : S("", !0),
3522
- b("div", mo, [
3450
+ b("div", io, [
3523
3451
  u(_, { buttons: e.nav }, null, 8, ["buttons"])
3524
3452
  ]),
3525
3453
  u(H, {
@@ -3531,7 +3459,7 @@ function _o(e, t, l, n, o, s) {
3531
3459
  default: r(() => [
3532
3460
  u(T, {
3533
3461
  icon: "oms-icon-index",
3534
- onClick: t[0] || (t[0] = (W) => e.$router.push("/"))
3462
+ onClick: t[0] || (t[0] = (Z) => e.$router.push("/"))
3535
3463
  }, {
3536
3464
  default: r(() => [
3537
3465
  g("首页")
@@ -3553,14 +3481,14 @@ function _o(e, t, l, n, o, s) {
3553
3481
  })
3554
3482
  ]),
3555
3483
  default: r(() => [
3556
- b("div", fo, [
3484
+ b("div", ro, [
3557
3485
  b("img", {
3558
3486
  src: e.avatar ? e.avatar : o.defaultAvatar,
3559
3487
  class: "user-avatar",
3560
3488
  alt: "头像"
3561
- }, null, 8, ho),
3489
+ }, null, 8, co),
3562
3490
  g(),
3563
- b("span", bo, O(e.nickname || e.name), 1)
3491
+ b("span", uo, O(e.nickname || e.name), 1)
3564
3492
  ])
3565
3493
  ]),
3566
3494
  _: 1
@@ -3578,8 +3506,8 @@ function _o(e, t, l, n, o, s) {
3578
3506
  _: 1
3579
3507
  }, 8, ["style"]);
3580
3508
  }
3581
- const yo = /* @__PURE__ */ $(ro, [["render", _o], ["__scopeId", "data-v-9d0fb088"]]);
3582
- const vo = {
3509
+ const mo = /* @__PURE__ */ $(no, [["render", po], ["__scopeId", "data-v-9d0fb088"]]);
3510
+ const fo = {
3583
3511
  name: "SidebarLogo",
3584
3512
  props: {
3585
3513
  collapse: {
@@ -3595,11 +3523,11 @@ const vo = {
3595
3523
  return this.$store.state.settings.logo;
3596
3524
  }
3597
3525
  }
3598
- }, go = (e) => (Ke("data-v-49084925"), e = e(), We(), e), ko = ["src"], wo = {
3526
+ }, ho = (e) => (Ke("data-v-49084925"), e = e(), We(), e), bo = ["src"], _o = {
3599
3527
  key: 1,
3600
3528
  class: "sidebar-title"
3601
- }, So = /* @__PURE__ */ go(() => /* @__PURE__ */ b("div", null, "系统", -1)), xo = ["src"], Eo = { class: "sidebar-title" };
3602
- function $o(e, t, l, n, o, s) {
3529
+ }, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ b("div", null, "系统", -1)), vo = ["src"], go = { class: "sidebar-title" };
3530
+ function ko(e, t, l, n, o, s) {
3603
3531
  const a = v("router-link");
3604
3532
  return i(), h("div", {
3605
3533
  class: F(["sidebar-logo-container", { collapse: l.collapse }])
@@ -3616,8 +3544,8 @@ function $o(e, t, l, n, o, s) {
3616
3544
  key: 0,
3617
3545
  src: s.logo,
3618
3546
  class: "sidebar-logo"
3619
- }, null, 8, ko)) : (i(), h("h1", wo, O(s.title), 1)),
3620
- So
3547
+ }, null, 8, bo)) : (i(), h("h1", _o, O(s.title), 1)),
3548
+ yo
3621
3549
  ]),
3622
3550
  _: 1
3623
3551
  })) : (i(), m(a, {
@@ -3630,8 +3558,8 @@ function $o(e, t, l, n, o, s) {
3630
3558
  key: 0,
3631
3559
  src: s.logo,
3632
3560
  class: "sidebar-logo"
3633
- }, null, 8, xo)) : S("", !0),
3634
- b("h1", Eo, O(s.title), 1)
3561
+ }, null, 8, vo)) : S("", !0),
3562
+ b("h1", go, O(s.title), 1)
3635
3563
  ]),
3636
3564
  _: 1
3637
3565
  }))
@@ -3640,7 +3568,7 @@ function $o(e, t, l, n, o, s) {
3640
3568
  })
3641
3569
  ], 2);
3642
3570
  }
3643
- const Io = /* @__PURE__ */ $(vo, [["render", $o], ["__scopeId", "data-v-49084925"]]), Co = {
3571
+ const wo = /* @__PURE__ */ $(fo, [["render", ko], ["__scopeId", "data-v-49084925"]]), So = {
3644
3572
  props: {
3645
3573
  to: {
3646
3574
  type: String,
@@ -3673,15 +3601,15 @@ const Io = /* @__PURE__ */ $(vo, [["render", $o], ["__scopeId", "data-v-49084925
3673
3601
  }
3674
3602
  }
3675
3603
  };
3676
- function To(e, t, l, n, o, s) {
3677
- return i(), m(Ze(s.compType(l.to)), K(X(s.linkProps(l.to))), {
3604
+ function xo(e, t, l, n, o, s) {
3605
+ return i(), m(Ze(s.compType(l.to)), W(Y(s.linkProps(l.to))), {
3678
3606
  default: r(() => [
3679
- te(e.$slots, "default")
3607
+ le(e.$slots, "default")
3680
3608
  ]),
3681
3609
  _: 3
3682
3610
  }, 16);
3683
3611
  }
3684
- const Oo = /* @__PURE__ */ $(Co, [["render", To]]), Bo = {
3612
+ const Eo = /* @__PURE__ */ $(So, [["render", xo]]), $o = {
3685
3613
  computed: {
3686
3614
  // @ts-ignore
3687
3615
  device() {
@@ -3702,7 +3630,7 @@ const Oo = /* @__PURE__ */ $(Co, [["render", To]]), Bo = {
3702
3630
  }
3703
3631
  }
3704
3632
  }
3705
- }, Ao = { class: "menu-content" }, Po = /* @__PURE__ */ q({
3633
+ }, Io = { class: "menu-content" }, Co = /* @__PURE__ */ q({
3706
3634
  __name: "MenuContent",
3707
3635
  props: {
3708
3636
  meta: {
@@ -3720,17 +3648,17 @@ const Oo = /* @__PURE__ */ $(Co, [["render", To]]), Bo = {
3720
3648
  u(n, {
3721
3649
  name: e.meta.icon || "ra-all"
3722
3650
  }, null, 8, ["name"]),
3723
- b("span", Ao, O(e.meta.title), 1)
3651
+ b("span", Io, O(e.meta.title), 1)
3724
3652
  ], 64);
3725
3653
  };
3726
3654
  }
3727
- }), Ro = {
3655
+ }), To = {
3728
3656
  name: "SidebarItem",
3729
3657
  components: {
3730
- AppLink: Oo,
3731
- MenuContent: Po
3658
+ AppLink: Eo,
3659
+ MenuContent: Co
3732
3660
  },
3733
- mixins: [Bo],
3661
+ mixins: [$o],
3734
3662
  props: {
3735
3663
  // route object
3736
3664
  item: {
@@ -3755,13 +3683,13 @@ const Oo = /* @__PURE__ */ $(Co, [["render", To]]), Bo = {
3755
3683
  }
3756
3684
  }
3757
3685
  }
3758
- }, Lo = {
3686
+ }, Oo = {
3759
3687
  key: 0,
3760
3688
  class: "menu-wrapper"
3761
3689
  };
3762
- function Mo(e, t, l, n, o, s) {
3763
- const a = v("menu-content"), c = vl, p = v("app-link"), d = v("sidebar-item", !0), f = gl;
3764
- return l.item.hidden !== !1 ? (i(), h("div", Lo, [
3690
+ function Bo(e, t, l, n, o, s) {
3691
+ const a = v("menu-content"), c = bl, p = v("app-link"), d = v("sidebar-item", !0), f = _l;
3692
+ return l.item.hidden !== !1 ? (i(), h("div", Oo, [
3765
3693
  l.item.meta && l.item.meta.menuType === 2 ? (i(), h(w, { key: 0 }, [
3766
3694
  l.item.meta ? (i(), m(p, {
3767
3695
  key: 0,
@@ -3819,14 +3747,14 @@ function Mo(e, t, l, n, o, s) {
3819
3747
  }, 8, ["index", "class"])) : S("", !0)
3820
3748
  ])) : S("", !0);
3821
3749
  }
3822
- const Do = /* @__PURE__ */ $(Ro, [["render", Mo]]);
3750
+ const Ao = /* @__PURE__ */ $(To, [["render", Bo]]);
3823
3751
  function ft(e) {
3824
3752
  return e.filter((t) => {
3825
3753
  var l;
3826
3754
  return ((l = t.meta) == null ? void 0 : l.menuType) === 0 ? !1 : (t.children && (t.children = ft(t.children), t.children.length === 0 && delete t.children), !0);
3827
3755
  });
3828
3756
  }
3829
- const jo = {
3757
+ const Ro = {
3830
3758
  data() {
3831
3759
  return {
3832
3760
  selected: ""
@@ -3847,8 +3775,8 @@ const jo = {
3847
3775
  }
3848
3776
  }
3849
3777
  };
3850
- function No(e, t, l, n, o, s) {
3851
- const a = Oe, c = kl, p = Be;
3778
+ function Po(e, t, l, n, o, s) {
3779
+ const a = Ce, c = yl, p = Te;
3852
3780
  return i(), m(p, {
3853
3781
  modelValue: o.selected,
3854
3782
  "onUpdate:modelValue": t[0] || (t[0] = (d) => o.selected = d),
@@ -3889,10 +3817,10 @@ function No(e, t, l, n, o, s) {
3889
3817
  _: 1
3890
3818
  }, 8, ["modelValue", "onChange"]);
3891
3819
  }
3892
- const Vo = /* @__PURE__ */ $(jo, [["render", No], ["__scopeId", "data-v-811395be"]]);
3893
- var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), R = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(R || {});
3894
- const qo = q({
3895
- components: { SidebarItem: Do, Logo: Io, SearchMenu: Vo },
3820
+ const Lo = /* @__PURE__ */ $(Ro, [["render", Po], ["__scopeId", "data-v-811395be"]]);
3821
+ var D = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(D || {}), P = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(P || {});
3822
+ const Mo = q({
3823
+ components: { SidebarItem: Ao, Logo: wo, SearchMenu: Lo },
3896
3824
  computed: {
3897
3825
  ...Ie(["sidebar", "remoteRouter", "customRouter"]),
3898
3826
  routes() {
@@ -3911,7 +3839,7 @@ const qo = q({
3911
3839
  const e = this.$route.matched;
3912
3840
  for (let t = e.length - 1; t >= 0; t--) {
3913
3841
  const l = e[t];
3914
- if (l.meta.menuType == R.menu)
3842
+ if (l.meta.menuType == P.menu)
3915
3843
  return this.$router.resolve(l.redirect ? l.redirect : l).fullPath;
3916
3844
  }
3917
3845
  return "";
@@ -3935,12 +3863,12 @@ const qo = q({
3935
3863
  },
3936
3864
  methods: {
3937
3865
  filterRoute(e) {
3938
- return e.filter((t) => [R.dir, R.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3866
+ return e.filter((t) => [P.dir, P.menu].indexOf(t.meta.menuType) !== -1).map((t) => (t = Object.assign({}, t), t.children && (t.children = this.filterRoute(t.children)), t));
3939
3867
  }
3940
3868
  }
3941
3869
  });
3942
- function Uo(e, t, l, n, o, s) {
3943
- const a = v("logo"), c = v("search-menu"), p = v("sidebar-item"), d = wl, f = Sl;
3870
+ function Do(e, t, l, n, o, s) {
3871
+ const a = v("logo"), c = v("search-menu"), p = v("sidebar-item"), d = vl, f = gl;
3944
3872
  return i(), h("div", {
3945
3873
  class: F({ "has-logo": e.showLogo })
3946
3874
  }, [
@@ -3979,17 +3907,17 @@ function Uo(e, t, l, n, o, s) {
3979
3907
  })
3980
3908
  ], 2);
3981
3909
  }
3982
- const Ho = /* @__PURE__ */ $(qo, [["render", Uo], ["__scopeId", "data-v-800716bb"]]);
3983
- const Fo = { class: "app-main" }, Go = {
3910
+ const jo = /* @__PURE__ */ $(Mo, [["render", Do], ["__scopeId", "data-v-800716bb"]]);
3911
+ const No = { class: "app-main" }, Vo = {
3984
3912
  __name: "AppMain",
3985
3913
  setup(e) {
3986
3914
  const t = ue(), l = [], n = L(0);
3987
- return al(() => {
3915
+ return nl(() => {
3988
3916
  var o;
3989
3917
  (o = t.meta) != null && o.keepAlive && l.indexOf(t.name) && l.push(t.name), n.value++;
3990
3918
  }), (o, s) => {
3991
- const a = v("router-view"), c = xl;
3992
- return i(), h("section", Fo, [
3919
+ const a = v("router-view"), c = kl;
3920
+ return i(), h("section", No, [
3993
3921
  (i(), m(a, {
3994
3922
  key: o.$route.fullPath + x(n)
3995
3923
  })),
@@ -3997,8 +3925,8 @@ const Fo = { class: "app-main" }, Go = {
3997
3925
  ]);
3998
3926
  };
3999
3927
  }
4000
- }, Jo = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-ca0f0d98"]]);
4001
- const zo = { class: "main-container" }, Ko = 992, Wo = {
3928
+ }, qo = /* @__PURE__ */ $(Vo, [["__scopeId", "data-v-ca0f0d98"]]);
3929
+ const Uo = { class: "main-container" }, Ho = 992, Fo = {
4002
3930
  __name: "index",
4003
3931
  setup(e) {
4004
3932
  const t = lt(), { body: l } = document, n = V(() => t.state.app.sidebar), o = V(() => t.state.app.device), s = V(() => t.state.settings.fixedHeader), a = V(() => ({
@@ -4006,7 +3934,7 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
4006
3934
  openSidebar: n.value.opened,
4007
3935
  withoutAnimation: n.value.withoutAnimation,
4008
3936
  mobile: o.value === "mobile"
4009
- })), c = () => l.getBoundingClientRect().width - 1 < Ko;
3937
+ })), c = () => l.getBoundingClientRect().width - 1 < Ho;
4010
3938
  Tl(window, "resize", () => d());
4011
3939
  const p = () => {
4012
3940
  t.dispatch("app/closeSideBar", { withoutAnimation: !1 });
@@ -4024,19 +3952,19 @@ const zo = { class: "main-container" }, Ko = 992, Wo = {
4024
3952
  class: "drawer-bg",
4025
3953
  onClick: p
4026
3954
  })) : S("", !0),
4027
- u(x(Ho), { class: "sidebar-container" }),
4028
- b("div", zo, [
3955
+ u(x(jo), { class: "sidebar-container" }),
3956
+ b("div", Uo, [
4029
3957
  b("div", {
4030
3958
  class: F({ "fixed-header": x(s) })
4031
3959
  }, [
4032
- u(x(yo))
3960
+ u(x(mo))
4033
3961
  ], 2),
4034
- u(x(Jo))
3962
+ u(x(qo))
4035
3963
  ])
4036
3964
  ], 2));
4037
3965
  }
4038
- }, ht = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-957442cd"]]);
4039
- class Zo {
3966
+ }, ht = /* @__PURE__ */ $(Fo, [["__scopeId", "data-v-957442cd"]]);
3967
+ class Go {
4040
3968
  constructor() {
4041
3969
  M(this, "type", "qrcode");
4042
3970
  }
@@ -4048,7 +3976,7 @@ class Zo {
4048
3976
  showQrCode() {
4049
3977
  }
4050
3978
  }
4051
- class Qo extends Zo {
3979
+ class Jo extends Go {
4052
3980
  constructor(l) {
4053
3981
  super();
4054
3982
  M(this, "type", "qrcode");
@@ -4071,13 +3999,13 @@ class Qo extends Zo {
4071
3999
  appid: this.appid,
4072
4000
  redirect_uri: encodeURIComponent(this.redirectUri)
4073
4001
  };
4074
- return Z(this.reloadUrl, a) + "&" + zt(s || {});
4002
+ return Q(this.reloadUrl, a) + "&" + zt(s || {});
4075
4003
  }, n = () => {
4076
4004
  const s = {
4077
4005
  goto: encodeURIComponent(l()),
4078
4006
  style: encodeURIComponent(this.style)
4079
4007
  };
4080
- return Z(this.qrCodeUrl, s);
4008
+ return Q(this.qrCodeUrl, s);
4081
4009
  }, o = (s) => {
4082
4010
  const { origin: a, data: c } = s;
4083
4011
  a === "https://login.dingtalk.com" && (window.location.href = l({ loginTmpCode: c }));
@@ -4089,26 +4017,26 @@ class Qo extends Zo {
4089
4017
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (s) => this.onScanSuccess(s));
4090
4018
  }
4091
4019
  }
4092
- const Xo = {
4093
- dingtalk: (e) => new Qo(e)
4020
+ const zo = {
4021
+ dingtalk: (e) => new Jo(e)
4094
4022
  };
4095
- function Yo() {
4096
- return A(E.state.settings.sso || {}, Xo);
4023
+ function Ko() {
4024
+ return A(E.state.settings.sso || {}, zo);
4097
4025
  }
4098
- function es(e) {
4099
- const t = Yo(), l = E.state.settings.activeSsoKey || "", n = t[l];
4026
+ function Wo(e) {
4027
+ const t = Ko(), l = E.state.settings.activeSsoKey || "", n = t[l];
4100
4028
  if (n !== void 0)
4101
4029
  return n(e);
4102
4030
  }
4103
- const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), ns = { id: "form" }, os = { class: "tips" }, ss = { class: "sso" }, as = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), is = /* @__PURE__ */ q({
4031
+ const Zo = { id: "login" }, Qo = /* @__PURE__ */ b("h1", { id: "title" }, "登录", -1), Xo = { id: "form" }, Yo = { class: "tips" }, es = { class: "sso" }, ts = /* @__PURE__ */ b("div", { id: "sso-qrcode" }, null, -1), ls = /* @__PURE__ */ q({
4104
4032
  __name: "login",
4105
4033
  setup(e) {
4106
- const t = il(), l = ue(), n = V(() => E.state.settings.loginTips), o = L({
4034
+ const t = ol(), l = ue(), n = V(() => E.state.settings.loginTips), o = L({
4107
4035
  username: "",
4108
4036
  password: ""
4109
4037
  }), s = () => {
4110
4038
  if (o.value.username === "" || o.value.password === "") {
4111
- El.error("请填写用户名和密码");
4039
+ wl.error("请填写用户名和密码");
4112
4040
  return;
4113
4041
  }
4114
4042
  E.dispatch("user/login", o.value).then((a) => {
@@ -4116,9 +4044,9 @@ const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "登
4116
4044
  t.push({ path: ((c = l.query) == null ? void 0 : c.redirect) || "/" });
4117
4045
  });
4118
4046
  };
4119
- return L(), (a, c) => (i(), h("div", ts, [
4120
- ls,
4121
- b("form", ns, [
4047
+ return L(), (a, c) => (i(), h("div", Zo, [
4048
+ Qo,
4049
+ b("form", Xo, [
4122
4050
  ve(b("input", {
4123
4051
  "onUpdate:modelValue": c[0] || (c[0] = (p) => x(o).username = p),
4124
4052
  type: "text",
@@ -4139,20 +4067,20 @@ const ts = { id: "login" }, ls = /* @__PURE__ */ b("h1", { id: "title" }, "登
4139
4067
  class: "input button",
4140
4068
  onClick: s
4141
4069
  }, "登录"),
4142
- b("div", os, [
4070
+ b("div", Yo, [
4143
4071
  b("div", null, O(x(n)), 1)
4144
4072
  ]),
4145
- b("div", ss, [
4146
- as,
4073
+ b("div", es, [
4074
+ ts,
4147
4075
  (i(!0), h(w, null, B(Object.keys([]), (p) => (i(), h("div", { key: p }, O(p), 1))), 128))
4148
4076
  ])
4149
4077
  ])
4150
4078
  ]));
4151
4079
  }
4152
4080
  });
4153
- const rs = {
4081
+ const ns = {
4154
4082
  name: "NotFoundPage"
4155
- }, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), cs = { class: "not-found" }, us = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
4083
+ }, bt = (e) => (Ke("data-v-26068803"), e = e(), We(), e), os = { class: "not-found" }, ss = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("svg", {
4156
4084
  width: "380px",
4157
4085
  height: "500px",
4158
4086
  viewBox: "0 0 837 1045",
@@ -4205,7 +4133,7 @@ const rs = {
4205
4133
  "sketch:type": "MSShapeGroup"
4206
4134
  })
4207
4135
  ])
4208
- ], -1)), ps = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4136
+ ], -1)), as = /* @__PURE__ */ bt(() => /* @__PURE__ */ b("div", { class: "message-box" }, [
4209
4137
  /* @__PURE__ */ b("h1", null, "404"),
4210
4138
  /* @__PURE__ */ b("p", null, "Page not found"),
4211
4139
  /* @__PURE__ */ b("div", { class: "buttons-con" }, [
@@ -4216,14 +4144,14 @@ const rs = {
4216
4144
  }, "Go to Home Page")
4217
4145
  ])
4218
4146
  ])
4219
- ], -1)), ds = [
4220
- us,
4221
- ps
4147
+ ], -1)), is = [
4148
+ ss,
4149
+ as
4222
4150
  ];
4223
- function ms(e, t, l, n, o, s) {
4224
- return i(), h("div", cs, ds);
4151
+ function rs(e, t, l, n, o, s) {
4152
+ return i(), h("div", os, is);
4225
4153
  }
4226
- const fs = /* @__PURE__ */ $(rs, [["render", ms], ["__scopeId", "data-v-26068803"]]), hs = [
4154
+ const cs = /* @__PURE__ */ $(ns, [["render", rs], ["__scopeId", "data-v-26068803"]]), us = [
4227
4155
  {
4228
4156
  path: "/",
4229
4157
  component: ht,
@@ -4236,29 +4164,29 @@ const fs = /* @__PURE__ */ $(rs, [["render", ms], ["__scopeId", "data-v-26068803
4236
4164
  {
4237
4165
  path: "dashboard",
4238
4166
  name: "Dashboard",
4239
- component: cn,
4167
+ component: nn,
4240
4168
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
4241
4169
  }
4242
4170
  ]
4243
4171
  },
4244
4172
  {
4245
4173
  path: "/login",
4246
- component: is,
4174
+ component: ls,
4247
4175
  meta: { title: "用户登录", menuType: 0 },
4248
4176
  hidden: !0
4249
4177
  },
4250
4178
  {
4251
4179
  path: "/404",
4252
- component: fs,
4180
+ component: cs,
4253
4181
  meta: { menuType: 0 },
4254
4182
  hidden: !0
4255
4183
  }
4256
- ], oe = rl({
4257
- history: cl(),
4258
- routes: hs
4184
+ ], z = sl({
4185
+ history: al(),
4186
+ routes: us
4259
4187
  });
4260
4188
  ge.configure({ showSpinner: !1 });
4261
- function bs(e) {
4189
+ function ps(e) {
4262
4190
  e.beforeEach((t, l, n) => {
4263
4191
  ge.start(), t.preHash = location.hash.replace("#", ""), n();
4264
4192
  }), e.afterEach((t) => {
@@ -4268,27 +4196,27 @@ function bs(e) {
4268
4196
  }), ge.done();
4269
4197
  });
4270
4198
  }
4271
- function _s() {
4199
+ function ds() {
4272
4200
  return E.state.user.isLodeRemoteRoutes;
4273
4201
  }
4274
4202
  function _t() {
4275
4203
  return E.state.settings.whiteRoutes || [];
4276
4204
  }
4277
- function ys() {
4205
+ function ms() {
4278
4206
  return E.state.user.token;
4279
4207
  }
4280
- function vs(e) {
4208
+ function fs(e) {
4281
4209
  e.beforeEach(async (t, l, n) => {
4282
4210
  var p, d;
4283
4211
  if (_t().indexOf(t.path) !== -1) {
4284
4212
  n();
4285
4213
  return;
4286
4214
  }
4287
- if (ys()) {
4215
+ if (ms()) {
4288
4216
  (p = t.query) != null && p.redirect ? n((d = t.query) == null ? void 0 : d.redirect) : n();
4289
4217
  return;
4290
4218
  }
4291
- const s = t.query.redirect || t.path, a = es({});
4219
+ const s = t.query.redirect || t.path, a = Wo({});
4292
4220
  if (!a) {
4293
4221
  n(`/login?redirect=${s}`);
4294
4222
  return;
@@ -4301,13 +4229,13 @@ function vs(e) {
4301
4229
  a.jumpToLoginPage(n, `/login?redirect=${s}`);
4302
4230
  });
4303
4231
  }
4304
- const gs = {}, ks = { class: "loading preloader" }, ws = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), Ss = [
4305
- ws
4232
+ const hs = {}, bs = { class: "loading preloader" }, _s = /* @__PURE__ */ b("div", { class: "preloader-inner" }, null, -1), ys = [
4233
+ _s
4306
4234
  ];
4307
- function xs(e, t) {
4308
- return i(), h("div", ks, Ss);
4235
+ function vs(e, t) {
4236
+ return i(), h("div", bs, ys);
4309
4237
  }
4310
- const yt = /* @__PURE__ */ $(gs, [["render", xs]]), Es = {
4238
+ const yt = /* @__PURE__ */ $(hs, [["render", vs]]), gs = {
4311
4239
  name: "VNotice",
4312
4240
  props: {
4313
4241
  dataApi: {
@@ -4335,8 +4263,8 @@ const yt = /* @__PURE__ */ $(gs, [["render", xs]]), Es = {
4335
4263
  this.title = this.notice.title;
4336
4264
  }
4337
4265
  };
4338
- function $s(e, t, l, n, o, s) {
4339
- const a = Ae;
4266
+ function ks(e, t, l, n, o, s) {
4267
+ const a = Oe;
4340
4268
  return i(), h("div", null, [
4341
4269
  o.hasNotice ? (i(), m(a, {
4342
4270
  key: 0,
@@ -4344,7 +4272,7 @@ function $s(e, t, l, n, o, s) {
4344
4272
  }, null, 8, ["title"])) : S("", !0)
4345
4273
  ]);
4346
4274
  }
4347
- const vt = /* @__PURE__ */ $(Es, [["render", $s]]), Is = q({
4275
+ const vt = /* @__PURE__ */ $(gs, [["render", ks]]), ws = q({
4348
4276
  components: { VLoading: yt, VNotice: vt },
4349
4277
  props: {
4350
4278
  schemaHandler: {
@@ -4380,15 +4308,15 @@ const vt = /* @__PURE__ */ $(Es, [["render", $s]]), Is = q({
4380
4308
  beforeCreate() {
4381
4309
  const e = this.$route.path.split("/").filter((o) => o), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], l = "/schema" + this.$route.meta.path, n = { params: this.$route.params };
4382
4310
  this.$http.get(this.$props.schemaApi || l, n).then(({ data: o }) => {
4383
- this.loading = !1, Q(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ee(o.notice) ? this.notice = {
4311
+ this.loading = !1, X(o) && (o.notice !== void 0 && (this.haveNotice = !0, Ee(o.notice) ? this.notice = {
4384
4312
  title: o.notice
4385
- } : Q(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4313
+ } : X(o.notice) && (this.notice = o.notice, this.noticeApi = o.notice.noticeApi), delete o.notice), this.owners = o.ownerNames || [], this.serviceOffLine = o.serviceOffLine || !1), this.schema = this.$props.schemaHandler(o, t), E.commit("app/SET_PAGE_JSON_SCHEMA", { page: this.$route.path, json: this.schema });
4386
4314
  });
4387
4315
  }
4388
4316
  });
4389
- const Cs = ["innerHTML"];
4390
- function Ts(e, t, l, n, o, s) {
4391
- const a = Ae, c = vt, p = yt;
4317
+ const Ss = ["innerHTML"];
4318
+ function xs(e, t, l, n, o, s) {
4319
+ const a = Oe, c = vt, p = yt;
4392
4320
  return i(), h(w, null, [
4393
4321
  e.owners.length > 0 ? (i(), m(a, {
4394
4322
  key: 0,
@@ -4401,18 +4329,18 @@ function Ts(e, t, l, n, o, s) {
4401
4329
  key: 1,
4402
4330
  class: "offline-notice",
4403
4331
  innerHTML: e.serviceOffLine === !0 ? e.setting.serviceOffLineNotice : e.serviceOffLine
4404
- }, null, 8, Cs)) : (i(), h(w, { key: 2 }, [
4332
+ }, null, 8, Ss)) : (i(), h(w, { key: 2 }, [
4405
4333
  e.haveNotice ? (i(), m(c, {
4406
4334
  key: 0,
4407
4335
  notice: e.notice,
4408
4336
  style: { margin: "0 0 20px 0" },
4409
4337
  "data-api": e.noticeApi
4410
4338
  }, null, 8, ["notice", "data-api"])) : S("", !0),
4411
- e.loading ? (i(), m(p, { key: 1 })) : te(e.$slots, "default", K(G({ key: 2 }, e.schema)), void 0, !0)
4339
+ e.loading ? (i(), m(p, { key: 1 })) : le(e.$slots, "default", W(G({ key: 2 }, e.schema)), void 0, !0)
4412
4340
  ], 64))
4413
4341
  ], 64);
4414
4342
  }
4415
- const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8"]]), gt = {
4343
+ const ae = /* @__PURE__ */ $(ws, [["render", xs], ["__scopeId", "data-v-015774e8"]]), gt = {
4416
4344
  __name: "table",
4417
4345
  setup(e) {
4418
4346
  const t = (l, n) => {
@@ -4423,14 +4351,14 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4423
4351
  };
4424
4352
  l.tableProps = A(l.tableProps, { defaultSort: s });
4425
4353
  }
4426
- const o = Object.keys(ne.props);
4354
+ const o = Object.keys(oe.props);
4427
4355
  return Object.keys(l).forEach((s) => {
4428
4356
  o.indexOf(s) === -1 && delete l[s];
4429
4357
  }), l.listApi === void 0 && (l.listApi = `/${n}/list`), l;
4430
4358
  };
4431
4359
  return (l, n) => (i(), m(ae, { "schema-handler": t }, {
4432
4360
  default: r((o) => [
4433
- u(x(ne), K(X(o)), null, 16)
4361
+ u(x(oe), W(Y(o)), null, 16)
4434
4362
  ]),
4435
4363
  _: 1
4436
4364
  }));
@@ -4445,7 +4373,7 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4445
4373
  delete n[a];
4446
4374
  return;
4447
4375
  }
4448
- /.*Api$/.test(a) && (n[a] = Z(n[a], t.params));
4376
+ /.*Api$/.test(a) && (n[a] = Q(n[a], t.params));
4449
4377
  }), n.saveApi === void 0 && (t.params.id !== void 0 ? (n.saveApi = `/${o}/update/${t.params.id}`, n.getApi || (n.getApi = `/${o}/get/${t.params.id}`)) : (delete n.getApi, n.saveApi = `/${o}/create`)), n = A({
4450
4378
  saveApi: o + "/save",
4451
4379
  afterSubmit: "goback",
@@ -4455,12 +4383,12 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4455
4383
  };
4456
4384
  return (n, o) => (i(), m(ae, { "schema-handler": l }, {
4457
4385
  default: r((s) => [
4458
- u(x(J), K(X(s)), null, 16)
4386
+ u(x(J), W(Y(s)), null, 16)
4459
4387
  ]),
4460
4388
  _: 1
4461
4389
  }));
4462
4390
  }
4463
- }, Os = q({
4391
+ }, Es = q({
4464
4392
  name: "VTree",
4465
4393
  components: {
4466
4394
  VForm: J
@@ -4534,7 +4462,7 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4534
4462
  return ["", "新建", "编辑"][this.type];
4535
4463
  },
4536
4464
  formProps() {
4537
- let e = Z(this.$props.saveApi, this.formData);
4465
+ let e = Q(this.$props.saveApi, this.formData);
4538
4466
  return this.type === 1 && (e = this.$props.createApi), {
4539
4467
  saveApi: e,
4540
4468
  getApi: this.$props.getApi,
@@ -4575,7 +4503,7 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4575
4503
  remove(e) {
4576
4504
  this.$http.request({
4577
4505
  method: "DELETE",
4578
- url: Z(this.$props.deleteApi, e)
4506
+ url: Q(this.$props.deleteApi, e)
4579
4507
  }).then(({ code: t }) => {
4580
4508
  t !== 0 ? this.$message.error("操作失败") : this.loadTree();
4581
4509
  });
@@ -4595,7 +4523,7 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4595
4523
  const o = e.data;
4596
4524
  o.pid = t.data.id, this.$http.request({
4597
4525
  method: "POST",
4598
- url: Z(this.$props.saveApi, o),
4526
+ url: Q(this.$props.saveApi, o),
4599
4527
  data: o
4600
4528
  }).then(({ code: s }) => {
4601
4529
  s !== 0 && this.$message.error("操作失败");
@@ -4603,12 +4531,12 @@ const ae = /* @__PURE__ */ $(Is, [["render", Ts], ["__scopeId", "data-v-015774e8
4603
4531
  }
4604
4532
  }
4605
4533
  });
4606
- const Bs = { class: "card-header" }, As = /* @__PURE__ */ b("span", null, "列表", -1), Ps = { class: "tree-action" }, Rs = { key: 0 }, Ls = {
4534
+ const $s = { class: "card-header" }, Is = /* @__PURE__ */ b("span", null, "列表", -1), Cs = { class: "tree-action" }, Ts = { key: 0 }, Os = {
4607
4535
  key: 1,
4608
4536
  style: { color: "#E6A23C" }
4609
- }, Ms = { class: "card-header" };
4610
- function Ds(e, t, l, n, o, s) {
4611
- const a = ce, c = $l, p = Pe, d = pe, f = v("v-form"), _ = se;
4537
+ }, Bs = { class: "card-header" };
4538
+ function As(e, t, l, n, o, s) {
4539
+ const a = ce, c = Sl, p = Be, d = pe, f = v("v-form"), _ = se;
4612
4540
  return i(), m(_, {
4613
4541
  class: "tree-box",
4614
4542
  gutter: 20
@@ -4621,8 +4549,8 @@ function Ds(e, t, l, n, o, s) {
4621
4549
  default: r(() => [
4622
4550
  u(p, { shadow: "never" }, {
4623
4551
  header: r(() => [
4624
- b("div", Bs, [
4625
- As,
4552
+ b("div", $s, [
4553
+ Is,
4626
4554
  u(a, {
4627
4555
  type: "text",
4628
4556
  onClick: t[0] || (t[0] = () => e.appendNew())
@@ -4647,8 +4575,8 @@ function Ds(e, t, l, n, o, s) {
4647
4575
  onNodeDragEnd: e.handleDragEnd
4648
4576
  }), {
4649
4577
  default: r(({ node: T, data: k }) => [
4650
- b("span", Ps, [
4651
- k[e.localTreeProps.props.label] ? (i(), h("span", Rs, O(k[e.localTreeProps.props.label]), 1)) : (i(), h("span", Ls, "请在右侧表单中修改 --> ")),
4578
+ b("span", Cs, [
4579
+ k[e.localTreeProps.props.label] ? (i(), h("span", Ts, O(k[e.localTreeProps.props.label]), 1)) : (i(), h("span", Os, "请在右侧表单中修改 --> ")),
4652
4580
  b("span", null, [
4653
4581
  k[e.localTreeProps.props.label] ? (i(), m(a, {
4654
4582
  key: 0,
@@ -4704,7 +4632,7 @@ function Ds(e, t, l, n, o, s) {
4704
4632
  shadow: "never"
4705
4633
  }, {
4706
4634
  header: r(() => [
4707
- b("div", Ms, [
4635
+ b("div", Bs, [
4708
4636
  b("span", null, O(e.formType), 1)
4709
4637
  ])
4710
4638
  ]),
@@ -4724,18 +4652,18 @@ function Ds(e, t, l, n, o, s) {
4724
4652
  _: 1
4725
4653
  });
4726
4654
  }
4727
- const Ge = /* @__PURE__ */ $(Os, [["render", Ds]]), js = {
4655
+ const Fe = /* @__PURE__ */ $(Es, [["render", As]]), Rs = {
4728
4656
  __name: "tree",
4729
4657
  setup(e) {
4730
4658
  const t = (l, n) => {
4731
- const o = Object.keys(Ge.props);
4659
+ const o = Object.keys(Fe.props);
4732
4660
  return Object.keys(l).forEach((s) => {
4733
4661
  o.indexOf(s) === -1 && delete l[s];
4734
4662
  }), l;
4735
4663
  };
4736
4664
  return (l, n) => (i(), m(ae, { "schema-handler": t }, {
4737
4665
  default: r((o) => [
4738
- u(Ge, K(X(o)), null, 16)
4666
+ u(Fe, W(Y(o)), null, 16)
4739
4667
  ]),
4740
4668
  _: 1
4741
4669
  }));
@@ -4744,14 +4672,14 @@ const Ge = /* @__PURE__ */ $(Os, [["render", Ds]]), js = {
4744
4672
  __name: "container",
4745
4673
  setup(e) {
4746
4674
  const t = L(0);
4747
- return ul(() => {
4675
+ return il(() => {
4748
4676
  t.value++;
4749
4677
  }), (l, n) => {
4750
4678
  const o = v("router-view");
4751
4679
  return i(), m(o);
4752
4680
  };
4753
4681
  }
4754
- }, Ns = {
4682
+ }, Ps = {
4755
4683
  title: {
4756
4684
  text: ""
4757
4685
  },
@@ -4780,10 +4708,10 @@ const Ge = /* @__PURE__ */ $(Os, [["render", Ds]]), js = {
4780
4708
  },
4781
4709
  series: []
4782
4710
  };
4783
- function Vs(e, t, l) {
4711
+ function Ls(e, t, l) {
4784
4712
  if (l.length === 0)
4785
4713
  return {};
4786
- let n = A({}, Ns);
4714
+ let n = A({}, Ps);
4787
4715
  if (n.title.text = e, Ee(t)) {
4788
4716
  const o = [], s = Object.keys(l[0]);
4789
4717
  let a = s[0], c = s.filter((d, f) => f > 0), p = t;
@@ -4805,9 +4733,9 @@ function Vs(e, t, l) {
4805
4733
  o.push(d[a]);
4806
4734
  }), n.xAxis.data = o;
4807
4735
  }
4808
- return Q(t) && (n = A(n, t)), console.log(111, n), n;
4736
+ return X(t) && (n = A(n, t)), console.log(111, n), n;
4809
4737
  }
4810
- const qs = q({
4738
+ const Ms = q({
4811
4739
  name: "NumberPanel",
4812
4740
  props: {
4813
4741
  dataList: {
@@ -4818,27 +4746,27 @@ const qs = q({
4818
4746
  data() {
4819
4747
  return {};
4820
4748
  }
4821
- }), Us = { class: "number-panel-title" }, Hs = { class: "number" }, Fs = { class: "name" };
4822
- function Gs(e, t, l, n, o, s) {
4749
+ }), Ds = { class: "number-panel-title" }, js = { class: "number" }, Ns = { class: "name" };
4750
+ function Vs(e, t, l, n, o, s) {
4823
4751
  return i(!0), h(w, null, B(e.dataList, (a, c) => (i(), h("span", { key: c }, [
4824
- b("div", Us, [
4752
+ b("div", Ds, [
4825
4753
  (i(!0), h(w, null, B(Object.keys(a), (p, d) => (i(), h("div", {
4826
4754
  key: d,
4827
4755
  class: "title-inner"
4828
4756
  }, [
4829
- b("p", Hs, O(a[p]), 1),
4830
- b("p", Fs, O(p), 1)
4757
+ b("p", js, O(a[p]), 1),
4758
+ b("p", Ns, O(p), 1)
4831
4759
  ]))), 128))
4832
4760
  ])
4833
4761
  ]))), 128);
4834
4762
  }
4835
- const Js = /* @__PURE__ */ $(qs, [["render", Gs], ["__scopeId", "data-v-cc0d8293"]]), zs = {
4763
+ const qs = /* @__PURE__ */ $(Ms, [["render", Vs], ["__scopeId", "data-v-cc0d8293"]]), Us = {
4836
4764
  components: {
4837
- Chart: nl,
4765
+ Chart: El,
4838
4766
  Md: Ol,
4839
- Json: Te,
4840
- Table: ne,
4841
- Number: Js,
4767
+ Json: Re,
4768
+ Table: oe,
4769
+ Number: qs,
4842
4770
  Html: ""
4843
4771
  },
4844
4772
  props: {
@@ -4859,7 +4787,7 @@ const Js = /* @__PURE__ */ $(qs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
4859
4787
  };
4860
4788
  if (o === "chart")
4861
4789
  return {
4862
- options: Vs(n.id, n.chart, n.data)
4790
+ options: Ls(n.id, n.chart, n.data)
4863
4791
  };
4864
4792
  if (o === "md")
4865
4793
  return {
@@ -4883,21 +4811,21 @@ const Js = /* @__PURE__ */ $(qs, [["render", Gs], ["__scopeId", "data-v-cc0d8293
4883
4811
  };
4884
4812
  }
4885
4813
  };
4886
- function Ks(e, t, l, n, o, s) {
4887
- const a = Pe, c = Pt("resize");
4814
+ function Hs(e, t, l, n, o, s) {
4815
+ const a = Be, c = Rt("resize");
4888
4816
  return ve((i(), m(a, {
4889
4817
  shadow: "never",
4890
4818
  class: "part"
4891
4819
  }, {
4892
4820
  default: r(() => [
4893
- (i(), m(Ze(n.comptype()), K(X(n.compprops(l.option))), null, 16))
4821
+ (i(), m(Ze(n.comptype()), W(Y(n.compprops(l.option))), null, 16))
4894
4822
  ]),
4895
4823
  _: 1
4896
4824
  })), [
4897
4825
  [c, !0]
4898
4826
  ]);
4899
4827
  }
4900
- const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1"]]), Zs = /* @__PURE__ */ q({
4828
+ const Fs = /* @__PURE__ */ $(Us, [["render", Hs], ["__scopeId", "data-v-a5a65cc1"]]), Gs = /* @__PURE__ */ q({
4901
4829
  __name: "index",
4902
4830
  props: {
4903
4831
  filter: {
@@ -4911,7 +4839,7 @@ const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
4911
4839
  },
4912
4840
  setup(e) {
4913
4841
  const t = e, l = useRoute();
4914
- Rt(() => {
4842
+ Pt(() => {
4915
4843
  });
4916
4844
  const n = L({});
4917
4845
  ze(() => {
@@ -4938,12 +4866,12 @@ const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
4938
4866
  }
4939
4867
  return "/focusbi_report/view/" + f;
4940
4868
  }), d = (f) => {
4941
- sn.get(p.value, { params: f }).then(({ data: _ }) => {
4869
+ ua.get(p.value, { params: f }).then(({ data: _ }) => {
4942
4870
  a.value = _.filter, c.value = _.dataPart, s.value++;
4943
4871
  });
4944
4872
  };
4945
4873
  return (f, _) => {
4946
- const T = Pe, k = pe, H = Ae, U = se;
4874
+ const T = Be, k = pe, H = Oe, U = se;
4947
4875
  return i(), m(U, null, {
4948
4876
  default: r(() => [
4949
4877
  x(a).length > 0 ? (i(), m(k, {
@@ -4973,8 +4901,8 @@ const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
4973
4901
  default: r(() => [
4974
4902
  u(U, { gutter: 20 }, {
4975
4903
  default: r(() => [
4976
- (i(!0), h(w, null, B(x(c), (C, W) => (i(), m(k, {
4977
- key: W,
4904
+ (i(!0), h(w, null, B(x(c), (C, Z) => (i(), m(k, {
4905
+ key: Z,
4978
4906
  span: C.col || 24
4979
4907
  }, {
4980
4908
  default: r(() => [
@@ -4987,7 +4915,7 @@ const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
4987
4915
  g(O(C.errMsg), 1)
4988
4916
  ]),
4989
4917
  _: 2
4990
- }, 1032, ["title"])) : (i(), m(Ws, {
4918
+ }, 1032, ["title"])) : (i(), m(Fs, {
4991
4919
  key: x(s),
4992
4920
  option: C
4993
4921
  }, null, 8, ["option"]))
@@ -5006,7 +4934,7 @@ const Ws = /* @__PURE__ */ $(zs, [["render", Ks], ["__scopeId", "data-v-a5a65cc1
5006
4934
  };
5007
4935
  }
5008
4936
  });
5009
- const Qs = {
4937
+ const Js = {
5010
4938
  __name: "report",
5011
4939
  setup(e) {
5012
4940
  const t = useRoute(), l = V(() => {
@@ -5019,20 +4947,20 @@ const Qs = {
5019
4947
  });
5020
4948
  return (n, o) => (i(), m(ae, { "schema-api": x(l) }, {
5021
4949
  default: r((s) => [
5022
- u(Zs, K(X(s)), null, 16)
4950
+ u(Gs, W(Y(s)), null, 16)
5023
4951
  ]),
5024
4952
  _: 1
5025
4953
  }, 8, ["schema-api"]));
5026
4954
  }
5027
4955
  };
5028
- const Xs = (e) => u("div", null, [e.test]), Ys = {
4956
+ const zs = (e) => u("div", null, [e.test]), Ks = {
5029
4957
  card: el,
5030
4958
  form: J,
5031
- table: ne,
5032
- test: Xs,
4959
+ table: oe,
4960
+ test: zs,
5033
4961
  row: tl,
5034
4962
  col: ll
5035
- }, ea = {
4963
+ }, Ws = {
5036
4964
  card: {
5037
4965
  type: "card",
5038
4966
  props: {
@@ -5053,7 +4981,7 @@ const Xs = (e) => u("div", null, [e.test]), Ys = {
5053
4981
  }
5054
4982
  }
5055
4983
  };
5056
- function ta(e) {
4984
+ function Zs(e) {
5057
4985
  const t = Object.assign({}, e), l = t.type.split(".").reverse(), n = t.span || 24;
5058
4986
  delete t.span;
5059
4987
  let o = {
@@ -5065,9 +4993,9 @@ function ta(e) {
5065
4993
  type: l[s],
5066
4994
  children: [o]
5067
4995
  };
5068
- return o.span = n, je([o]);
4996
+ return o.span = n, De([o]);
5069
4997
  }
5070
- function je(e) {
4998
+ function De(e) {
5071
4999
  const t = {
5072
5000
  type: "row",
5073
5001
  props: {
@@ -5079,7 +5007,7 @@ function je(e) {
5079
5007
  return e.forEach((l) => {
5080
5008
  var a, c;
5081
5009
  let n = Object.assign({}, l);
5082
- if (Q((a = n.props) == null ? void 0 : a.style)) {
5010
+ if (X((a = n.props) == null ? void 0 : a.style)) {
5083
5011
  let p = "";
5084
5012
  Object.keys((c = n.props) == null ? void 0 : c.style).forEach((d) => {
5085
5013
  var f;
@@ -5094,15 +5022,15 @@ function je(e) {
5094
5022
  t.children.push({
5095
5023
  type: "col",
5096
5024
  props: o,
5097
- children: ta(n)
5025
+ children: Zs(n)
5098
5026
  });
5099
5027
  return;
5100
5028
  }
5101
5029
  n = A({
5102
5030
  props: {}
5103
- }, ea[n.type] || {}, n);
5031
+ }, Ws[n.type] || {}, n);
5104
5032
  const s = kt(n.children);
5105
- s.length && (n.children = je(s)), t.children.push({
5033
+ s.length && (n.children = De(s)), t.children.push({
5106
5034
  type: "col",
5107
5035
  props: o,
5108
5036
  children: [n]
@@ -5110,34 +5038,34 @@ function je(e) {
5110
5038
  }), [t];
5111
5039
  }
5112
5040
  function kt(e) {
5113
- return Ye(e) ? e : Q(e) ? [e] : [];
5041
+ return Ye(e) ? e : X(e) ? [e] : [];
5114
5042
  }
5115
5043
  let xe = {};
5116
5044
  const wt = (e) => {
5117
- const t = Ys[e.type] || xe[e.type] || e.type;
5045
+ const t = Ks[e.type] || xe[e.type] || e.type;
5118
5046
  return Dt(t, e.props, {
5119
5047
  default: () => kt(e.children).map((l) => wt(l))
5120
5048
  });
5121
- }, la = (e) => (Object.keys(xe).length === 0 && (xe = Mt().appContext.components), je(Object.values(e.schema)).map((l) => wt(l))), na = {
5049
+ }, Qs = (e) => (Object.keys(xe).length === 0 && (xe = Mt().appContext.components), De(Object.values(e.schema)).map((l) => wt(l))), Xs = {
5122
5050
  __name: "custom",
5123
5051
  setup(e) {
5124
5052
  const t = L([]), l = (n, o) => (t.value = jt(n), n);
5125
5053
  return (n, o) => (i(), m(ae, { "schema-handler": l }, {
5126
5054
  default: r(() => [
5127
- u(x(la), { schema: x(t) }, null, 8, ["schema"])
5055
+ u(x(Qs), { schema: x(t) }, null, 8, ["schema"])
5128
5056
  ]),
5129
5057
  _: 1
5130
5058
  }));
5131
5059
  }
5132
5060
  };
5133
- let ee = {};
5061
+ let te = {};
5134
5062
  function gi(e) {
5135
- ee = e;
5063
+ te = e;
5136
5064
  }
5137
- const oa = (e) => {
5065
+ const Ys = (e) => {
5138
5066
  const t = (l) => {
5139
5067
  const n = "./views/" + l + ".vue";
5140
- return ee && ee[n] && ee[n].default ? ee[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ye);
5068
+ return te && te[n] && te[n].default ? te[n].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), ye);
5141
5069
  };
5142
5070
  if (e.path === "#")
5143
5071
  return ye;
@@ -5150,26 +5078,26 @@ const oa = (e) => {
5150
5078
  case D.localComp:
5151
5079
  return t(e.view || "");
5152
5080
  case D.tree:
5153
- return js;
5081
+ return Rs;
5154
5082
  case D.report:
5155
- return Qs;
5083
+ return Js;
5156
5084
  case D.customSchema:
5157
- return na;
5085
+ return Xs;
5158
5086
  }
5159
5087
  return ye;
5160
5088
  };
5161
- function sa(e) {
5089
+ function ea(e) {
5162
5090
  let t = e.path;
5163
- return e.type === R.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5091
+ return e.type === P.menu && e.page_type === D.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
5164
5092
  }
5165
- function aa(e) {
5093
+ function ta(e) {
5166
5094
  return (e.path + e.name).split("/").filter((t) => t).join("_");
5167
5095
  }
5168
5096
  const St = (e) => {
5169
- const t = e.type !== R.page, l = {
5170
- path: sa(e),
5171
- name: e.id + "_" + aa(e) + "_" + e.path.replaceAll("/", "_"),
5172
- component: oa(e),
5097
+ const t = e.type !== P.page, l = {
5098
+ path: ea(e),
5099
+ name: e.id + "_" + ta(e) + "_" + e.path.replaceAll("/", "_"),
5100
+ component: Ys(e),
5173
5101
  meta: {
5174
5102
  id: e.id,
5175
5103
  pageId: e.id,
@@ -5191,9 +5119,10 @@ const St = (e) => {
5191
5119
  id: e.id + 99999,
5192
5120
  title: "列表",
5193
5121
  hidden: !0,
5194
- menuType: R.hidden,
5122
+ menuType: P.hidden,
5195
5123
  keepAlive: !1,
5196
- pageId: e.id
5124
+ pageId: e.id,
5125
+ path: e.path
5197
5126
  }
5198
5127
  }, {
5199
5128
  path: o,
@@ -5203,9 +5132,10 @@ const St = (e) => {
5203
5132
  id: e.id + 99999 + 1,
5204
5133
  title: "新建",
5205
5134
  hidden: !0,
5206
- menuType: R.hidden,
5135
+ menuType: P.hidden,
5207
5136
  keepAlive: !1,
5208
- pageId: e.id
5137
+ pageId: e.id,
5138
+ path: e.path
5209
5139
  }
5210
5140
  }, {
5211
5141
  path: s,
@@ -5215,9 +5145,10 @@ const St = (e) => {
5215
5145
  id: e.id + 99999 + 2,
5216
5146
  title: "编辑",
5217
5147
  hidden: !0,
5218
- menuType: R.hidden,
5148
+ menuType: P.hidden,
5219
5149
  keepAlive: !1,
5220
- pageId: e.id
5150
+ pageId: e.id,
5151
+ path: e.path
5221
5152
  }
5222
5153
  }];
5223
5154
  l.children = [...a, ...l.children];
@@ -5226,8 +5157,8 @@ const St = (e) => {
5226
5157
  let n = !0;
5227
5158
  if (l.children.forEach((o) => {
5228
5159
  o.meta && !o.meta.hidden && (n = !1);
5229
- }), l.meta && (l.meta.menuType = t ? R.dir : R.hidden), n) {
5230
- l.meta && (l.meta.menuType = R.menu);
5160
+ }), l.meta && (l.meta.menuType = t ? P.dir : P.hidden), n) {
5161
+ l.meta && (l.meta.menuType = P.menu);
5231
5162
  let o = "/";
5232
5163
  for (let s = 0; s < l.children.length; s++)
5233
5164
  if (l.children[s].path.indexOf("/:") === -1) {
@@ -5238,7 +5169,7 @@ const St = (e) => {
5238
5169
  }
5239
5170
  }
5240
5171
  return l;
5241
- }, ia = (e) => {
5172
+ }, la = (e) => {
5242
5173
  const t = [];
5243
5174
  return e.forEach((l) => {
5244
5175
  const n = {
@@ -5251,18 +5182,18 @@ const St = (e) => {
5251
5182
  }), t.push(n);
5252
5183
  }), t;
5253
5184
  };
5254
- function ra(e) {
5185
+ function na(e) {
5255
5186
  e.beforeEach(async (t, l, n) => {
5256
5187
  if (_t().indexOf(t.path) !== -1) {
5257
5188
  n();
5258
5189
  return;
5259
5190
  }
5260
- if (_s()) {
5191
+ if (ds()) {
5261
5192
  n();
5262
5193
  return;
5263
5194
  }
5264
5195
  await E.dispatch("user/info");
5265
- const o = await E.dispatch("user/loadRemoteRoutes"), s = ia(o);
5196
+ const o = await E.dispatch("user/loadRemoteRoutes"), s = la(o);
5266
5197
  s.forEach((a) => {
5267
5198
  a.routes.forEach((c) => {
5268
5199
  e.addRoute({
@@ -5274,7 +5205,7 @@ function ra(e) {
5274
5205
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), E.commit("user/updateRemoteRouter", s), await e.replace(t), n();
5275
5206
  });
5276
5207
  }
5277
- function ca(e) {
5208
+ function oa(e) {
5278
5209
  e.beforeEach(async (t, l, n) => {
5279
5210
  var c;
5280
5211
  const s = [E.state.settings.title || ""], a = t.matched.length;
@@ -5287,10 +5218,82 @@ function ca(e) {
5287
5218
  Object.keys(t.meta).length > 0 && await E.dispatch("app/setCurrentMeta", t.meta);
5288
5219
  });
5289
5220
  }
5290
- function ua(e) {
5291
- vs(e), bs(e), ra(e), ca(e);
5221
+ function sa(e) {
5222
+ fs(e), ps(e), na(e), oa(e);
5223
+ }
5224
+ sa(z);
5225
+ function aa() {
5226
+ return E.state.user.token;
5227
+ }
5228
+ function Ge(e) {
5229
+ Ql({
5230
+ message: e,
5231
+ type: "error",
5232
+ duration: 5 * 1e3,
5233
+ grouping: !0
5234
+ });
5235
+ }
5236
+ const ia = {
5237
+ onFulfilled: function(e) {
5238
+ var l;
5239
+ e.headers = e.headers || {};
5240
+ const t = aa();
5241
+ return t && (e.headers["X-Token"] = t), (l = z.currentRoute.value.meta) != null && l.path && (e.headers["X-Path"] = z.currentRoute.value.meta.path), e;
5242
+ }
5243
+ }, ra = {
5244
+ onFulfilled(e) {
5245
+ var n, o, s, a, c, p, d;
5246
+ if (!(((n = e.config) == null ? void 0 : n.notHoldApiErr) !== void 0 && ((o = e.config) == null ? void 0 : o.notHoldApiErr) === !0) && e.data.code !== 0) {
5247
+ const f = e.data.message || `接口请求错误 ${e.config.method}::${(s = e.config.url) == null ? void 0 : s.split("?")[0]}`;
5248
+ if (e.data.code === 401) {
5249
+ Ue.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
5250
+ showClose: !1,
5251
+ confirmButtonText: "重新登录",
5252
+ showCancelButton: !0,
5253
+ cancelButtonText: "取消",
5254
+ callback: (_) => {
5255
+ _ === "confirm" && (ut(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload());
5256
+ }
5257
+ });
5258
+ return;
5259
+ } else
5260
+ Ge(f);
5261
+ return Promise.reject(f);
5262
+ }
5263
+ let l = (c = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : c._message_box;
5264
+ return l !== void 0 && (Ee(l) && (l = {
5265
+ message: (d = (p = e.data) == null ? void 0 : p.data) == null ? void 0 : d._message_box
5266
+ }), Ue({
5267
+ title: "提示",
5268
+ type: "success",
5269
+ grouping: !0,
5270
+ ...l
5271
+ })), e.data;
5272
+ },
5273
+ onRejected(e) {
5274
+ var t;
5275
+ 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));
5276
+ }
5277
+ }, ca = [
5278
+ {
5279
+ request: Yl,
5280
+ response: en
5281
+ },
5282
+ {
5283
+ request: ia,
5284
+ response: ra
5285
+ }
5286
+ ];
5287
+ function je(e = {}) {
5288
+ const t = de.axios || {}, l = A(t, e || {}), n = $e.create({
5289
+ ...l
5290
+ // adapter: (c) => cacheAdapter(c, defaultAxios)
5291
+ });
5292
+ return ca.forEach((o) => {
5293
+ n.interceptors.request.use(o.request.onFulfilled, o.request.onRejected), n.interceptors.response.use(o.response.onFulfilled, o.response.onRejected);
5294
+ }), n;
5292
5295
  }
5293
- ua(oe);
5296
+ const ua = je();
5294
5297
  const pa = {
5295
5298
  beforeMount(e, t) {
5296
5299
  e.clickOutsideEvent = function(l) {
@@ -5300,10 +5303,10 @@ const pa = {
5300
5303
  unmounted(e) {
5301
5304
  document.body.removeEventListener("click", e.clickOutsideEvent);
5302
5305
  }
5303
- }, z = Cl(), da = {
5306
+ }, K = Cl(), da = {
5304
5307
  mounted: (e, t) => {
5305
5308
  e !== null && (t.value, e.oncontextmenu = (l) => {
5306
- l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && z.emit("right-click", { event: l, data: t.value });
5309
+ l.preventDefault(), l.stopPropagation(), l.cancelBubble = !0, t.value && K.emit("right-click", { event: l, data: t.value });
5307
5310
  });
5308
5311
  }
5309
5312
  }, ma = {
@@ -5333,13 +5336,13 @@ const fa = {
5333
5336
  o.className = "dev-action-edit", o.title = "编辑";
5334
5337
  const s = document.createElement("i");
5335
5338
  s.className = "iconfont ra-editor1", o.appendChild(s), o.onclick = (p) => {
5336
- z.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
5339
+ K.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
5337
5340
  }, n.appendChild(o);
5338
5341
  const a = document.createElement("span");
5339
5342
  a.className = "dev-action-del", a.title = "删除";
5340
5343
  const c = document.createElement("i");
5341
5344
  c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (p) => {
5342
- z.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
5345
+ K.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
5343
5346
  }, n.appendChild(a), l.insertBefore(n, l.firstChild);
5344
5347
  }
5345
5348
  }, ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5351,15 +5354,15 @@ const fa = {
5351
5354
  }, Symbol.toStringTag, { value: "Module" }));
5352
5355
  let re;
5353
5356
  function ki(e) {
5354
- return e ? Me(A(de.axios, e)) : re;
5357
+ return e ? je(A(de.axios, e)) : re;
5355
5358
  }
5356
5359
  function wi(e) {
5357
5360
  const t = A(de, e), l = Nt(Bl), n = wa(t), o = t.plugins || [];
5358
5361
  o.unshift(n), o.forEach((s) => {
5359
5362
  ka(l, s);
5360
- }), t != null && t.mock && ql(), re = Me(t.axios), E.dispatch("setHttp", re).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = oe, window.App = l, window.OmsOptions = t, ol(() => ({
5363
+ }), t != null && t.mock && ql(), re = je(t.axios), E.dispatch("setHttp", re).then(), E.dispatch("settings/updateSettings", e == null ? void 0 : e.settings).then(), l.config.globalProperties.$http = re, l.config.globalProperties.$router = z, window.App = l, window.OmsOptions = t, $l(() => ({
5361
5364
  "X-Token": Le()
5362
- })), oe.isReady().then(() => l.mount("#app"));
5365
+ })), z.isReady().then(() => l.mount("#app"));
5363
5366
  }
5364
5367
  function ba(e, t = {}) {
5365
5368
  Object.keys(t).forEach((l) => {
@@ -5368,12 +5371,12 @@ function ba(e, t = {}) {
5368
5371
  }
5369
5372
  function _a(e = []) {
5370
5373
  e.forEach((t) => {
5371
- oe.addRoute(t);
5374
+ z.addRoute(t);
5372
5375
  }), E.commit("user/setCustomRoutes", e);
5373
5376
  }
5374
5377
  function ya(e, t) {
5375
5378
  t.forEach((l) => {
5376
- Q(l) && (l = [l]), e.use(...l);
5379
+ X(l) && (l = [l]), e.use(...l);
5377
5380
  });
5378
5381
  }
5379
5382
  function va(e, t = {}) {
@@ -5397,33 +5400,33 @@ function ka(e, t) {
5397
5400
  function wa(e) {
5398
5401
  var t;
5399
5402
  return {
5400
- components: { VIcon: sl },
5403
+ components: { VIcon: Il },
5401
5404
  directives: ha,
5402
5405
  use: [
5403
5406
  E,
5404
- oe,
5407
+ z,
5405
5408
  [Qt, { locale: tt, ...(t = e.settings) == null ? void 0 : t.ElementPlus }]
5406
5409
  ]
5407
5410
  };
5408
5411
  }
5409
5412
  export {
5410
- Zo as BaseSso,
5413
+ Go as BaseSso,
5411
5414
  ye as Container,
5412
- Qo as DingTalk,
5415
+ Jo as DingTalk,
5413
5416
  ht as Layout,
5414
- R as MenuType,
5417
+ P as MenuType,
5415
5418
  Ql as Message,
5416
5419
  Ue as MessageBox,
5417
5420
  D as PageType,
5418
- Yo as allSso,
5421
+ Ko as allSso,
5419
5422
  wi as createAdmin,
5420
- z as eventBus,
5421
- an as getCmp,
5423
+ K as eventBus,
5424
+ tn as getCmp,
5422
5425
  re as http,
5423
- Me as instance,
5426
+ je as instance,
5424
5427
  gi as regViews,
5425
5428
  vi as setCmp,
5426
- ia as transRemoteModules,
5429
+ la as transRemoteModules,
5427
5430
  ki as useHttp
5428
5431
  };
5429
5432
  //# sourceMappingURL=index.es.js.map