@okiss/oms 0.0.87 → 0.0.89

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,17 +1,17 @@
1
- import { ref as C, watch as He, computed as k, defineComponent as z, onBeforeMount as Fe, provide as dn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as B, withCtx as r, TransitionGroup as pn, createElementBlock as _, Fragment as $, renderList as N, toDisplayString as P, normalizeClass as ee, renderSlot as de, createCommentVNode as O, mergeProps as Q, toRefs as fn, unref as m, isRef as Ge, onMounted as Ee, normalizeStyle as mn, createElementVNode as g, withKeys as rt, withModifiers as ct, resolveDynamicComponent as ze, Transition as hn, normalizeProps as X, guardReactiveProps as re, withDirectives as ve, vModelText as $e, onUnmounted as bn, resolveDirective as yn, getCurrentInstance as _n, h as vn, toRaw as gn, createApp as kn } from "vue";
2
- import { normalizeTheme as pe, applyDocumentTheme as Sn, dispatchThemeChange as wn, addNewStyle as xn, addNewStyleTag as En, queryParams as In, logGroup as Cn, compactObject as gt, showEleByClassName as kt, waterMarker as Tn, Cache as ge, isExternal as ut, getQueryParam as St, createIFrame as Bn, strVarReplace as se, obj2Param as On, isObject as ie, isString as Ke, effectDataTrans as $n, isArray as wt } from "@okiss/utils";
3
- import { defineStore as Ie, createPinia as An } from "pinia";
1
+ import { ref as I, watch as be, computed as k, defineComponent as K, onBeforeMount as Fe, provide as yn, resolveComponent as L, createBlock as h, openBlock as i, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as _n, createElementBlock as _, Fragment as O, renderList as U, toDisplayString as R, normalizeClass as ee, renderSlot as de, createCommentVNode as $, mergeProps as X, toRefs as vn, unref as m, isRef as Ge, onMounted as Ie, normalizeStyle as gn, createElementVNode as v, withKeys as rt, withModifiers as ct, resolveDynamicComponent as Ke, Transition as kn, normalizeProps as Z, guardReactiveProps as re, withDirectives as ge, vModelText as Ae, onUnmounted as Sn, resolveDirective as wn, getCurrentInstance as xn, h as En, toRaw as In, createApp as Cn } from "vue";
2
+ import { normalizeTheme as pe, applyDocumentTheme as Tn, dispatchThemeChange as Bn, addNewStyle as $n, addNewStyleTag as On, queryParams as An, logGroup as Rn, compactObject as wt, showEleByClassName as xt, waterMarker as Pn, Cache as ke, isExternal as ut, getQueryParam as Et, createIFrame as Ln, strVarReplace as ae, obj2Param as Mn, isObject as ie, isString as ze, effectDataTrans as Dn, isArray as It } from "@okiss/utils";
3
+ import { defineStore as Ce, createPinia as jn } from "pinia";
4
4
  import te from "js-cookie";
5
- import xt from "element-plus/es/locale/lang/zh-cn";
6
- import Pn, { cloneDeep as x, merge as H, get as fe, unset as Et, isObject as Rn } from "lodash";
7
- import Ae from "mockjs";
5
+ import Ct from "element-plus/es/locale/lang/zh-cn";
6
+ import Nn, { cloneDeep as x, merge as H, get as fe, unset as Tt, isObject as Un } from "lodash";
7
+ import Re from "mockjs";
8
8
  import Je from "axios";
9
- import Ln, { ElMessageBox as It, ElMessage as Mn, ElCol as Dn, ElRow as jn, ElCard as Nn } from "element-plus";
9
+ import Vn, { ElMessageBox as Bt, ElMessage as qn, ElCol as Hn, ElRow as Fn, ElCard as Gn } from "element-plus";
10
10
  import "element-plus/dist/index.css";
11
11
  import "element-plus/theme-chalk/dark/css-vars.css";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as Z, useRouter as Ce, onBeforeRouteLeave as Un, createRouter as Vn, createWebHashHistory as qn, onBeforeRouteUpdate as Hn } from "vue-router";
14
- import { ElBreadcrumb as Fn, ElBreadcrumbItem as Gn, ElContainer as zn, ElRow as be, ElMain as Kn, ElAside as Jn, ElForm as Ct, ElFormItem as Tt, ElSelect as We, ElOption as Qe, ElDivider as Bt, ElButton as me, ElCol as Te, ElDrawer as Ot, ElTooltip as $t, ElIcon as Wn, ElDropdown as Qn, ElAvatar as Xn, ElDropdownMenu as Zn, ElDropdownItem as Yn, ElImage as eo, ElMenuItem as to, ElSubMenu as no, ElOptionGroup as oo, ElScrollbar as lo, ElMenu as ao, ElBacktop as so, ElMessage as io, ElAlert as Xe, ElCard as Ze, ElTree as ro } from "element-plus/es";
13
+ import { useRoute as W, useRouter as Te, onBeforeRouteLeave as Kn, createRouter as zn, createWebHashHistory as Jn, onBeforeRouteUpdate as Wn } from "vue-router";
14
+ import { ElBreadcrumb as Qn, ElBreadcrumbItem as Xn, ElContainer as Zn, ElRow as ye, ElMain as Yn, ElAside as eo, ElForm as $t, ElFormItem as Ot, ElSelect as We, ElOption as Qe, ElDivider as At, ElButton as me, ElCol as Be, ElDrawer as Rt, ElTooltip as Pt, ElIcon as to, ElDropdown as no, ElAvatar as oo, ElDropdownMenu as lo, ElDropdownItem as so, ElImage as ao, ElMenuItem as io, ElSubMenu as ro, ElOptionGroup as co, ElScrollbar as uo, ElMenu as po, ElBacktop as fo, ElMessage as mo, ElAlert as Xe, ElCard as Ze, ElTree as ho } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
@@ -24,7 +24,7 @@ import "element-plus/es/components/icon/style/css";
24
24
  import "element-plus/es/components/col/style/css";
25
25
  import "element-plus/es/components/breadcrumb/style/css";
26
26
  import "element-plus/es/components/breadcrumb-item/style/css";
27
- import * as co from "path-to-regexp";
27
+ import * as bo from "path-to-regexp";
28
28
  import "element-plus/es/components/form/style/css";
29
29
  import "element-plus/es/components/form-item/style/css";
30
30
  import "element-plus/es/components/select/style/css";
@@ -34,11 +34,11 @@ import "element-plus/es/components/divider/style/css";
34
34
  import "element-plus/es/components/container/style/css";
35
35
  import "element-plus/es/components/aside/style/css";
36
36
  import "element-plus/es/components/main/style/css";
37
- import { JsonView as Ye, VBtn as et, VForm as ne, VTable as he, VChart as uo, setUploadHeaderHandle as po, VIcon as fo } from "@okiss/vbtf";
37
+ import { JsonView as Ye, VBtn as et, VForm as ne, VTable as he, VChart as yo, setUploadHeaderHandle as _o, VIcon as vo } from "@okiss/vbtf";
38
38
  import "normalize.css/normalize.css";
39
39
  import "@okiss/vbtf/style.css";
40
- import mo from "mitt";
41
- import { Moon as ho, Sunny as bo } from "@element-plus/icons-vue";
40
+ import go from "mitt";
41
+ import { Moon as ko, Sunny as So } from "@element-plus/icons-vue";
42
42
  import "element-plus/es/components/scrollbar/style/css";
43
43
  import "element-plus/es/components/menu/style/css";
44
44
  import "element-plus/es/components/image/style/css";
@@ -46,14 +46,14 @@ import "element-plus/es/components/sub-menu/style/css";
46
46
  import "element-plus/es/components/menu-item/style/css";
47
47
  import "element-plus/es/components/option-group/style/css";
48
48
  import "element-plus/es/components/backtop/style/css";
49
- import { useEventListener as yo } from "@vueuse/core";
49
+ import { useEventListener as wo } from "@vueuse/core";
50
50
  import "element-plus/es/components/alert/style/css";
51
51
  import "element-plus/es/components/card/style/css";
52
52
  import "element-plus/es/components/tree/style/css";
53
- import _o from "vue3-markdown-it";
54
- import vo from "crypto-js";
53
+ import xo from "vue3-markdown-it";
54
+ import Eo from "crypto-js";
55
55
  import "element-plus/es/components/message/style/css";
56
- import je from "nprogress";
56
+ import Ne from "nprogress";
57
57
  import "nprogress/nprogress.css";
58
58
  String.prototype.format || (String.prototype.format = function() {
59
59
  const e = arguments;
@@ -62,28 +62,28 @@ String.prototype.format || (String.prototype.format = function() {
62
62
  });
63
63
  });
64
64
  const tt = "oms:token";
65
- function ye() {
65
+ function _e() {
66
66
  return te.get(tt) || "";
67
67
  }
68
- function go(e) {
69
- const t = V(D), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
68
+ function Io(e) {
69
+ const t = V(M), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
70
70
  return te.set(tt, e, { expires: n });
71
71
  }
72
- function At() {
72
+ function Lt() {
73
73
  return te.remove(tt);
74
74
  }
75
- let Pt = null;
76
- function ko(e) {
77
- Pt = e;
75
+ let Mt = null;
76
+ function Co(e) {
77
+ Mt = e;
78
78
  }
79
79
  function Pe() {
80
- return Pt;
80
+ return Mt;
81
81
  }
82
- const So = {
82
+ const To = {
83
83
  baseURL: "/api",
84
84
  withCredentials: !0,
85
85
  cacheEnable: !0
86
- }, Rt = {
86
+ }, Dt = {
87
87
  title: "oms",
88
88
  fixedHeader: !1,
89
89
  sidebarLogo: !0,
@@ -97,7 +97,7 @@ const So = {
97
97
  ElementPlus: {
98
98
  size: "default",
99
99
  zIndex: 3e3,
100
- locale: xt
100
+ locale: Ct
101
101
  },
102
102
  nav: [],
103
103
  whiteRoutes: ["/login"],
@@ -111,13 +111,13 @@ const So = {
111
111
  formMutex: !0,
112
112
  captcha: !0,
113
113
  themeMode: "light"
114
- }, Be = {
115
- axios: So,
116
- settings: Rt,
114
+ }, $e = {
115
+ axios: To,
116
+ settings: Dt,
117
117
  plugins: [],
118
118
  mock: !1
119
- }, wo = x(Rt), V = Ie("settings", {
120
- state: () => ({ ...wo }),
119
+ }, Bo = x(Dt), V = Ce("settings", {
120
+ state: () => ({ ...Bo }),
121
121
  actions: {
122
122
  updateSettings(e) {
123
123
  H(this, e);
@@ -127,7 +127,7 @@ const So = {
127
127
  name: "",
128
128
  nickname: "",
129
129
  avatar: "",
130
- token: ye(),
130
+ token: _e(),
131
131
  customRouter: [],
132
132
  remoteRouter: [],
133
133
  menuRoutes: [],
@@ -137,26 +137,27 @@ const So = {
137
137
  path: "",
138
138
  env: "",
139
139
  expired: !1
140
- }, U = Ie("user", {
140
+ }, pt = (e) => typeof e.name == "string" ? e.name : e.path, j = Ce("user", {
141
141
  state: () => ({ ...dt }),
142
142
  actions: {
143
143
  updateToken(e) {
144
- this.token = e, go(e);
144
+ this.token = e, Io(e);
145
145
  },
146
146
  removeToken() {
147
- this.token = "", At();
147
+ this.token = "", Lt();
148
148
  },
149
149
  updateRemoteRouter(e) {
150
150
  this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
151
151
  },
152
152
  setCustomRoutes(e) {
153
- this.customRouter = this.customRouter.concat(e);
153
+ const t = new Set(this.customRouter.map((o) => pt(o))), n = e.filter((o) => !t.has(pt(o)));
154
+ n.length && (this.customRouter = this.customRouter.concat(n));
154
155
  },
155
156
  updateState({ key: e, value: t }) {
156
157
  this[e] = t;
157
158
  },
158
159
  resetUser() {
159
- const e = { ...dt, token: ye() };
160
+ const e = { ...dt, token: _e() };
160
161
  Object.assign(this, e);
161
162
  },
162
163
  SET_EXPIRED() {
@@ -195,8 +196,8 @@ const So = {
195
196
  }).then((o) => {
196
197
  const l = o.data?.role_ids || [];
197
198
  this.updateState({ key: "name", value: o.data?.name }), this.updateState({ key: "nickname", value: o.data?.nickname }), this.updateState({ key: "roleIds", value: l }), this.updateState({ key: "env", value: o.data?.env });
198
- const a = o.data?.website || {};
199
- V().updateSettings(a), !te.get("username") && te.set("username", o.data?.name), e(!0);
199
+ const s = o.data?.website || {};
200
+ V().updateSettings(s), !te.get("username") && te.set("username", o.data?.name), e(!0);
200
201
  }).catch((o) => t(o));
201
202
  });
202
203
  },
@@ -220,23 +221,23 @@ const So = {
220
221
  this.SET_EXPIRED();
221
222
  }
222
223
  }
223
- }), xe = "sidebarStatus";
224
- function xo() {
224
+ }), Ee = "sidebarStatus";
225
+ function $o() {
225
226
  if (typeof window > "u")
226
227
  return;
227
- const e = window.localStorage.getItem(xe);
228
+ const e = window.localStorage.getItem(Ee);
228
229
  if (e !== null)
229
230
  return e === "1";
230
- const t = te.get(xe);
231
+ const t = te.get(Ee);
231
232
  if (t !== void 0)
232
233
  return !!t;
233
234
  }
234
- function pt(e) {
235
- typeof window < "u" && window.localStorage.setItem(xe, e ? "1" : "0"), te.set(xe, e ? "1" : "0");
235
+ function ft(e) {
236
+ typeof window < "u" && window.localStorage.setItem(Ee, e ? "1" : "0"), te.set(Ee, e ? "1" : "0");
236
237
  }
237
- const Eo = {
238
+ const Oo = {
238
239
  sidebar: {
239
- opened: xo() ?? !0,
240
+ opened: $o() ?? !0,
240
241
  withoutAnimation: !1
241
242
  },
242
243
  device: "desktop",
@@ -244,14 +245,14 @@ const Eo = {
244
245
  currentRouteMeta: {},
245
246
  builderSchema: {},
246
247
  baseURL: ""
247
- }, Y = Ie("app", {
248
- state: () => ({ ...Eo }),
248
+ }, Y = Ce("app", {
249
+ state: () => ({ ...Oo }),
249
250
  actions: {
250
251
  TOGGLE_SIDEBAR() {
251
- this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, pt(this.sidebar.opened);
252
+ this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, ft(this.sidebar.opened);
252
253
  },
253
254
  CLOSE_SIDEBAR(e) {
254
- this.sidebar.opened = !1, pt(this.sidebar.opened), this.sidebar.withoutAnimation = e;
255
+ this.sidebar.opened = !1, ft(this.sidebar.opened), this.sidebar.withoutAnimation = e;
255
256
  },
256
257
  TOGGLE_DEVICE(e) {
257
258
  this.device = e;
@@ -291,11 +292,11 @@ const Eo = {
291
292
  this.SET_BASE_API(e);
292
293
  }
293
294
  }
294
- }), Io = {
295
+ }), Ao = {
295
296
  currentCellItem: {}
296
297
  // form/sub-form 当前单元格编辑数据
297
- }, tr = Ie("builderSchema", {
298
- state: () => ({ ...Io }),
298
+ }, ir = Ce("builderSchema", {
299
+ state: () => ({ ...Ao }),
299
300
  actions: {
300
301
  SET_CURRENT_CELLITEM(e) {
301
302
  this.currentCellItem = e;
@@ -304,58 +305,58 @@ const Eo = {
304
305
  this.SET_CURRENT_CELLITEM(e);
305
306
  }
306
307
  }
307
- }), D = An();
308
- function Co(e) {
309
- e.use(D);
308
+ }), M = jn();
309
+ function Ro(e) {
310
+ e.use(M);
310
311
  }
311
- const Lt = "oms-theme", Mt = C("light");
312
- let ft = !1, ke = null;
313
- function To(e) {
312
+ const jt = "oms-theme", Nt = I("light");
313
+ let mt = !1, Se = null;
314
+ function Po(e) {
314
315
  const t = pe(e ?? void 0);
315
316
  if (typeof window > "u")
316
317
  return t;
317
- const n = window.localStorage?.getItem(Lt);
318
+ const n = window.localStorage?.getItem(jt);
318
319
  return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
319
320
  }
320
- function Bo(e) {
321
- typeof window < "u" && window.localStorage?.setItem(Lt, e);
321
+ function Lo(e) {
322
+ typeof window < "u" && window.localStorage?.setItem(jt, e);
322
323
  }
323
- function Re(e) {
324
+ function Le(e) {
324
325
  const t = pe(e);
325
- Mt.value = t, Sn(t), wn(t), Bo(t);
326
+ Nt.value = t, Tn(t), Bn(t), Lo(t);
326
327
  }
327
- function Oo(e) {
328
+ function Mo(e) {
328
329
  if (typeof window > "u" || typeof window.matchMedia != "function") {
329
- ke = null;
330
+ Se = null;
330
331
  return;
331
332
  }
332
333
  const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
333
334
  const l = o.matches ?? t.matches;
334
335
  e(l ? "dark" : "light");
335
336
  };
336
- typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), ke = () => {
337
- typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ke = null;
337
+ typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), Se = () => {
338
+ typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), Se = null;
338
339
  };
339
340
  }
340
- function Dt() {
341
- const e = V(), t = (a) => {
342
- const s = pe(a);
343
- e.themeMode !== s ? e.updateSettings({ themeMode: s }) : Re(s);
341
+ function Ut() {
342
+ const e = V(), t = (s) => {
343
+ const a = pe(s);
344
+ e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Le(a);
344
345
  };
345
- if (!ft) {
346
- ft = !0;
347
- const a = To(e.themeMode);
348
- pe(e.themeMode) !== a ? e.updateSettings({ themeMode: a }) : Re(a), He(
346
+ if (!mt) {
347
+ mt = !0;
348
+ const s = Po(e.themeMode);
349
+ pe(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Le(s), be(
349
350
  () => e.themeMode,
350
- (s) => {
351
- Re(pe(s));
351
+ (a) => {
352
+ Le(pe(a));
352
353
  },
353
354
  { immediate: !0 }
354
- ), ke?.(), Oo((s) => {
355
- t(s);
355
+ ), Se?.(), Mo((a) => {
356
+ t(a);
356
357
  });
357
358
  }
358
- const n = k(() => Mt.value), o = k(() => n.value === "dark");
359
+ const n = k(() => Nt.value), o = k(() => n.value === "dark");
359
360
  return {
360
361
  themeMode: n,
361
362
  isDark: o,
@@ -365,25 +366,25 @@ function Dt() {
365
366
  }
366
367
  };
367
368
  }
368
- const $o = /* @__PURE__ */ z({
369
+ const Do = /* @__PURE__ */ K({
369
370
  __name: "App",
370
371
  setup(e) {
371
- return Dt(), Fe(() => {
372
+ return Ut(), Fe(() => {
372
373
  const t = document.getElementById("preloader");
373
- t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), xn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), En(`.iconfont {
374
+ t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), $n("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), On(`.iconfont {
374
375
  font-size: 19px;
375
376
  font-style: normal;
376
377
  -webkit-font-smoothing: antialiased;
377
378
  font-family: iconfont !important;
378
379
  }`));
379
- }), window?.OmsOptions?.form?.vsPath && dn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
380
+ }), window?.OmsOptions?.form?.vsPath && yn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
380
381
  const o = L("router-view");
381
382
  return i(), h(o);
382
383
  };
383
384
  }
384
385
  });
385
386
  var ce = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ce || {});
386
- const Ao = [
387
+ const jo = [
387
388
  {
388
389
  type: "jump",
389
390
  text: "跳转",
@@ -440,9 +441,9 @@ const Ao = [
440
441
  }
441
442
  ];
442
443
  [
443
- ...Pn.cloneDeep(Ao)
444
+ ...Nn.cloneDeep(jo)
444
445
  ];
445
- const Po = {
446
+ const No = {
446
447
  code: 0,
447
448
  data: {
448
449
  "list|0-100": [
@@ -463,7 +464,7 @@ const Po = {
463
464
  "page|1-5": 2
464
465
  }
465
466
  }
466
- }, Ro = { listMock: Po }, Lo = [
467
+ }, Uo = { listMock: No }, Vo = [
467
468
  {
468
469
  method: ce.POST,
469
470
  url: "/login",
@@ -507,32 +508,32 @@ const Po = {
507
508
  {
508
509
  url: "/user/list",
509
510
  method: ce.GET,
510
- response: (e) => Ro.listMock
511
+ response: (e) => Uo.listMock
511
512
  }
512
- ], Mo = [
513
- ...Lo
514
- ], Ne = {};
515
- function jt(e) {
513
+ ], qo = [
514
+ ...Vo
515
+ ], Ue = {};
516
+ function Vt(e) {
516
517
  e.forEach((t) => {
517
- const n = Nt(t);
518
- Ne[`${t.method}::${n}`] = t;
518
+ const n = qt(t);
519
+ Ue[`${t.method}::${n}`] = t;
519
520
  });
520
521
  }
521
- jt(Mo);
522
- function Nt(e) {
523
- let t = e.url, n = e.baseURL || Be.axios?.baseURL;
522
+ Vt(qo);
523
+ function qt(e) {
524
+ let t = e.url, n = e.baseURL || $e.axios?.baseURL;
524
525
  return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
525
526
  }
526
- function Do() {
527
- Object.keys(Ne).forEach((e) => {
528
- const t = Ne[e], n = Nt(t);
529
- Ae.mock(n, t.method, function(o) {
530
- const { url: l, type: a, body: s } = o, c = In(l), d = s ? JSON.parse(s) : {}, p = t.response({ query: c, data: d }), f = Ae.mock(p);
531
- return Cn(l, { type: a, query: c, data: d, response: f }), Ae.mock(f);
527
+ function Ho() {
528
+ Object.keys(Ue).forEach((e) => {
529
+ const t = Ue[e], n = qt(t);
530
+ Re.mock(n, t.method, function(o) {
531
+ const { url: l, type: s, body: a } = o, c = An(l), d = a ? JSON.parse(a) : {}, f = t.response({ query: c, data: d }), p = Re.mock(f);
532
+ return Rn(l, { type: s, query: c, data: d, response: p }), Re.mock(p);
532
533
  });
533
534
  });
534
535
  }
535
- const jo = Mn, mt = It, No = Je.CancelToken, Se = {
536
+ const Fo = qn, ht = Bt, Go = Je.CancelToken, we = {
536
537
  taskList: {},
537
538
  cacheList: /* @__PURE__ */ new Map(),
538
539
  uniqueId(e) {
@@ -568,48 +569,48 @@ const jo = Mn, mt = It, No = Je.CancelToken, Se = {
568
569
  const t = this.uniqueId(e);
569
570
  return this.cacheList.delete(t);
570
571
  }
571
- }, Uo = {
572
+ }, Ko = {
572
573
  onFulfilled: function(e) {
573
- return e.cacheEnable === !1 || (Se.pending(e) && Se.delTask(e), e.cancelToken = new No((t) => {
574
- Se.addTask(e, t);
574
+ return e.cacheEnable === !1 || (we.pending(e) && we.delTask(e), e.cancelToken = new Go((t) => {
575
+ we.addTask(e, t);
575
576
  })), e;
576
577
  },
577
578
  onRejected(e) {
578
579
  return Promise.reject(e);
579
580
  }
580
- }, Vo = {
581
+ }, zo = {
581
582
  onFulfilled: function(e) {
582
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && Se.addCache(e.config, e.data), e;
583
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && we.addCache(e.config, e.data), e;
583
584
  },
584
585
  onRejected(e) {
585
586
  return Promise.reject(e);
586
587
  }
587
- }, Ut = {};
588
- function nr(e, t) {
589
- Ut[e] = t;
588
+ }, Ht = {};
589
+ function rr(e, t) {
590
+ Ht[e] = t;
590
591
  }
591
- function qo(e) {
592
- return Ut[e];
592
+ function Jo(e) {
593
+ return Ht[e];
593
594
  }
594
- const Ho = /* @__PURE__ */ z({
595
+ const Wo = /* @__PURE__ */ K({
595
596
  name: "Dashboard",
596
597
  setup() {
597
- const e = qo("dashboard");
598
+ const e = Jo("dashboard");
598
599
  if (e)
599
600
  return () => u("span", null, [u(e, null, null)]);
600
- const t = k(() => U().name);
601
+ const t = k(() => j().name);
601
602
  return () => u("div", {
602
603
  class: "dashboard-container"
603
604
  }, [u("div", {
604
605
  class: "dashboard-text"
605
- }, [B("Hi "), t.value, B(" 😄")])]);
606
+ }, [C("Hi "), t.value, C(" 😄")])]);
606
607
  }
607
- }), R = (e, t) => {
608
+ }), P = (e, t) => {
608
609
  const n = e.__vccOpts || e;
609
610
  for (const [o, l] of t)
610
611
  n[o] = l;
611
612
  return n;
612
- }, Fo = /* @__PURE__ */ R(Ho, [["__scopeId", "data-v-85165680"]]), Go = {
613
+ }, Qo = /* @__PURE__ */ P(Wo, [["__scopeId", "data-v-85165680"]]), Xo = {
613
614
  data() {
614
615
  return {
615
616
  levelList: null
@@ -641,7 +642,7 @@ const Ho = /* @__PURE__ */ z({
641
642
  },
642
643
  pathCompile(e) {
643
644
  const { params: t } = this.$route;
644
- return co.compile(e)(t);
645
+ return bo.compile(e)(t);
645
646
  },
646
647
  handleLink(e) {
647
648
  const { redirect: t, path: n } = e;
@@ -652,27 +653,27 @@ const Ho = /* @__PURE__ */ z({
652
653
  this.$router.push(this.pathCompile(n));
653
654
  }
654
655
  }
655
- }, zo = {
656
+ }, Zo = {
656
657
  key: 0,
657
658
  class: "no-redirect"
658
- }, Ko = ["onClick"];
659
- function Jo(e, t, n, o, l, a) {
660
- const s = Gn, c = Fn;
659
+ }, Yo = ["onClick"];
660
+ function el(e, t, n, o, l, s) {
661
+ const a = Xn, c = Qn;
661
662
  return i(), h(c, {
662
663
  class: "app-breadcrumb",
663
664
  separator: "/"
664
665
  }, {
665
666
  default: r(() => [
666
- u(pn, { name: "breadcrumb" }, {
667
+ u(_n, { name: "breadcrumb" }, {
667
668
  default: r(() => [
668
- (i(!0), _($, null, N(l.levelList, (d, p) => (i(), h(s, {
669
+ (i(!0), _(O, null, U(l.levelList, (d, f) => (i(), h(a, {
669
670
  key: d.path
670
671
  }, {
671
672
  default: r(() => [
672
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || p === l.levelList.length - 1 ? (i(), _("span", zo, P(d.meta.title), 1)) : (i(), _("a", {
673
+ d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || f === l.levelList.length - 1 ? (i(), _("span", Zo, R(d.meta.title), 1)) : (i(), _("a", {
673
674
  key: 1,
674
- onClick: (f) => a.handleLink(d)
675
- }, P(d.meta.title), 9, Ko))
675
+ onClick: (p) => s.handleLink(d)
676
+ }, R(d.meta.title), 9, Yo))
676
677
  ]),
677
678
  _: 2
678
679
  }, 1024))), 128))
@@ -683,7 +684,7 @@ function Jo(e, t, n, o, l, a) {
683
684
  _: 1
684
685
  });
685
686
  }
686
- const Wo = /* @__PURE__ */ R(Go, [["render", Jo], ["__scopeId", "data-v-fa74804e"]]), Qo = {
687
+ const tl = /* @__PURE__ */ P(Xo, [["render", el], ["__scopeId", "data-v-fa74804e"]]), nl = {
687
688
  name: "Hamburger",
688
689
  props: {
689
690
  isActive: {
@@ -698,22 +699,22 @@ const Wo = /* @__PURE__ */ R(Go, [["render", Jo], ["__scopeId", "data-v-fa74804e
698
699
  }
699
700
  }
700
701
  };
701
- function Xo(e, t, n, o, l, a) {
702
- const s = L("v-icon");
702
+ function ol(e, t, n, o, l, s) {
703
+ const a = L("v-icon");
703
704
  return i(), _("div", {
704
705
  style: { padding: "0 15px" },
705
- onClick: t[0] || (t[0] = (...c) => a.toggleClick && a.toggleClick(...c))
706
+ onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
706
707
  }, [
707
- u(s, {
708
+ u(a, {
708
709
  class: ee({ "is-active": n.isActive }),
709
710
  name: "ra-leftalignment"
710
711
  }, null, 8, ["class"])
711
712
  ]);
712
713
  }
713
- const Zo = /* @__PURE__ */ R(Qo, [["render", Xo]]), Yo = {};
714
- function el(e, t) {
715
- const n = be, o = Kn, l = Jn, a = zn;
716
- return i(), h(a, { style: { width: "100%", height: "100%" } }, {
714
+ const ll = /* @__PURE__ */ P(nl, [["render", ol]]), sl = {};
715
+ function al(e, t) {
716
+ const n = ye, o = Yn, l = eo, s = Zn;
717
+ return i(), h(s, { style: { width: "100%", height: "100%" } }, {
717
718
  default: r(() => [
718
719
  u(n, { class: "aside" }, {
719
720
  default: r(() => [
@@ -744,7 +745,7 @@ function el(e, t) {
744
745
  _: 3
745
746
  });
746
747
  }
747
- const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b"]]), tl = {
748
+ const Ft = /* @__PURE__ */ P(sl, [["render", al], ["__scopeId", "data-v-7c3d697b"]]), il = {
748
749
  type: "input",
749
750
  name: "文本框",
750
751
  default: {
@@ -812,7 +813,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
812
813
  }
813
814
  }
814
815
  ]
815
- }, nl = {
816
+ }, rl = {
816
817
  type: "number",
817
818
  name: "数字",
818
819
  default: {
@@ -854,7 +855,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
854
855
  }
855
856
  }
856
857
  ]
857
- }, ol = {
858
+ }, cl = {
858
859
  type: "number-range",
859
860
  name: "数字区间",
860
861
  default: {
@@ -895,7 +896,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
895
896
  }
896
897
  }
897
898
  ]
898
- }, ll = {
899
+ }, ul = {
899
900
  type: "select",
900
901
  name: "下拉框",
901
902
  default: {
@@ -1001,7 +1002,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1001
1002
  const t = x(e);
1002
1003
  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;
1003
1004
  }
1004
- }, al = {
1005
+ }, dl = {
1005
1006
  type: "radio",
1006
1007
  name: "单选框",
1007
1008
  default: {
@@ -1047,7 +1048,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1047
1048
  label: "默认值"
1048
1049
  }
1049
1050
  ]
1050
- }, sl = {
1051
+ }, pl = {
1051
1052
  type: "switch",
1052
1053
  name: "开关",
1053
1054
  default: {
@@ -1103,7 +1104,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1103
1104
  }
1104
1105
  }
1105
1106
  ]
1106
- }, il = {
1107
+ }, fl = {
1107
1108
  type: "code",
1108
1109
  name: "Code",
1109
1110
  default: {
@@ -1123,7 +1124,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1123
1124
  label: "字段key"
1124
1125
  }
1125
1126
  ]
1126
- }, rl = {
1127
+ }, ml = {
1127
1128
  type: "json",
1128
1129
  name: "json",
1129
1130
  default: {
@@ -1143,7 +1144,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1143
1144
  label: "字段key"
1144
1145
  }
1145
1146
  ]
1146
- }, cl = {
1147
+ }, hl = {
1147
1148
  type: "upload",
1148
1149
  name: "上传",
1149
1150
  default: {
@@ -1163,7 +1164,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1163
1164
  label: "字段key"
1164
1165
  }
1165
1166
  ]
1166
- }, ul = {
1167
+ }, bl = {
1167
1168
  type: "template",
1168
1169
  name: "自定义组件",
1169
1170
  default: {
@@ -1183,7 +1184,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1183
1184
  label: "字段key"
1184
1185
  }
1185
1186
  ]
1186
- }, dl = {
1187
+ }, yl = {
1187
1188
  type: "icon-select",
1188
1189
  name: "图标选择器",
1189
1190
  default: {
@@ -1203,7 +1204,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1203
1204
  label: "字段key"
1204
1205
  }
1205
1206
  ]
1206
- }, pl = {
1207
+ }, _l = {
1207
1208
  type: "sub-form",
1208
1209
  name: "子表单",
1209
1210
  default: {
@@ -1271,7 +1272,7 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1271
1272
  }
1272
1273
  }
1273
1274
  ]
1274
- }, fl = {
1275
+ }, vl = {
1275
1276
  type: "checkbox",
1276
1277
  name: "复选框",
1277
1278
  default: {
@@ -1317,24 +1318,24 @@ const Vt = /* @__PURE__ */ R(Yo, [["render", el], ["__scopeId", "data-v-7c3d697b
1317
1318
  }
1318
1319
  }
1319
1320
  ]
1320
- }, qt = {};
1321
+ }, Gt = {};
1321
1322
  function F(e) {
1322
- qt[e.type] = e;
1323
+ Gt[e.type] = e;
1323
1324
  }
1324
- F(tl);
1325
- F(ll);
1326
- F(nl);
1327
- F(ol);
1328
- F(sl);
1329
- F(pl);
1330
- F(al);
1331
- F(fl);
1332
1325
  F(il);
1326
+ F(ul);
1333
1327
  F(rl);
1334
1328
  F(cl);
1329
+ F(pl);
1330
+ F(_l);
1335
1331
  F(dl);
1336
- F(ul);
1337
- const Ue = qt, ml = {
1332
+ F(vl);
1333
+ F(fl);
1334
+ F(ml);
1335
+ F(hl);
1336
+ F(yl);
1337
+ F(bl);
1338
+ const Ve = Gt, gl = {
1338
1339
  options: {
1339
1340
  labelPosition: "top",
1340
1341
  submitButton: !1,
@@ -1432,15 +1433,15 @@ const Ue = qt, ml = {
1432
1433
  }
1433
1434
  }
1434
1435
  ]
1435
- }, Le = {
1436
+ }, Me = {
1436
1437
  labelPosition: "top",
1437
1438
  submitButton: !1,
1438
1439
  cancelButton: !1
1439
1440
  }, nt = [];
1440
- Object.keys(Ue).forEach((e) => {
1441
- nt.push({ value: e, label: Ue[e].name });
1441
+ Object.keys(Ve).forEach((e) => {
1442
+ nt.push({ value: e, label: Ve[e].name });
1442
1443
  });
1443
- const hl = {
1444
+ const kl = {
1444
1445
  options: {
1445
1446
  submitButton: !1,
1446
1447
  cancelButton: !1
@@ -1472,8 +1473,8 @@ const hl = {
1472
1473
  }
1473
1474
  }
1474
1475
  ]
1475
- }, bl = {
1476
- components: { DevLayout: Vt, VForm: ne, VButton: et, JsonView: Ye },
1476
+ }, Sl = {
1477
+ components: { DevLayout: Ft, VForm: ne, VButton: et, JsonView: Ye },
1477
1478
  props: {
1478
1479
  schema: {
1479
1480
  type: Object,
@@ -1484,8 +1485,8 @@ const hl = {
1484
1485
  data() {
1485
1486
  return {
1486
1487
  sqlOptions: {},
1487
- sqlSchema: hl,
1488
- baseSchema: ml,
1488
+ sqlSchema: kl,
1489
+ baseSchema: gl,
1489
1490
  activeTab: "base",
1490
1491
  builderSchema: Object.assign(
1491
1492
  {},
@@ -1505,7 +1506,7 @@ const hl = {
1505
1506
  ctrlSchema: {},
1506
1507
  ctrlName: "",
1507
1508
  activeIndex: void 0,
1508
- ctrlMap: Ue,
1509
+ ctrlMap: Ve,
1509
1510
  activeIndexReg: /(formItems)?\[(\d+)\]/,
1510
1511
  tableStruct: "",
1511
1512
  activeName: "1",
@@ -1539,8 +1540,8 @@ const hl = {
1539
1540
  const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
1540
1541
  if (l && Object.keys(l).length > 0) {
1541
1542
  if (l.type = n, this.activeIndex.indexOf("[") > -1) {
1542
- const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
1543
- this.builderSchema[s][c] = { ...l };
1543
+ const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
1544
+ this.builderSchema[a][c] = { ...l };
1544
1545
  } else
1545
1546
  this.builderSchema[this.activeIndex] = l;
1546
1547
  this.key++;
@@ -1551,7 +1552,7 @@ const hl = {
1551
1552
  handler(e) {
1552
1553
  const t = this.ctrlMap[e];
1553
1554
  this.ctrlSchema = x({
1554
- options: x(Le),
1555
+ options: x(Me),
1555
1556
  formItems: x(t.builder)
1556
1557
  });
1557
1558
  const n = fe(this.builderSchema, this.activeIndex);
@@ -1576,12 +1577,12 @@ const hl = {
1576
1577
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1577
1578
  const n = this.ctrlMap[e];
1578
1579
  this.activeCtrl = n, this.builderSchema[t].push(x(n.default)), this.ctrlSchema = x({
1579
- options: x(Le),
1580
+ options: x(Me),
1580
1581
  formItems: x(n.builder)
1581
1582
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1582
1583
  },
1583
1584
  removeOne() {
1584
- Et(this.builderSchema, this.activeIndex), this.builderSchema = x(gt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1585
+ Tt(this.builderSchema, this.activeIndex), this.builderSchema = x(wt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1585
1586
  },
1586
1587
  clicklabel() {
1587
1588
  const e = this.activeIndex;
@@ -1592,7 +1593,7 @@ const hl = {
1592
1593
  return;
1593
1594
  }
1594
1595
  this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = x({
1595
- options: x(Le),
1596
+ options: x(Me),
1596
1597
  formItems: x(l.builder)
1597
1598
  }), this.ctrlKey++;
1598
1599
  }
@@ -1608,32 +1609,32 @@ const hl = {
1608
1609
  }
1609
1610
  }
1610
1611
  };
1611
- function yl(e, t, n, o, l, a) {
1612
- const s = L("v-form"), c = Bt, d = me, p = L("JsonView"), f = L("VButton"), y = Qe, w = We, v = Tt, T = Ct, I = L("dev-layout");
1613
- return i(), h(I, null, {
1612
+ function wl(e, t, n, o, l, s) {
1613
+ const a = L("v-form"), c = At, d = me, f = L("JsonView"), p = L("VButton"), g = Qe, w = We, y = Ot, T = $t, B = L("dev-layout");
1614
+ return i(), h(B, null, {
1614
1615
  main: r(() => [
1615
- l.builderSchema.formItems ? (i(), h(s, Q({
1616
+ l.builderSchema.formItems ? (i(), h(a, X({
1616
1617
  ref: "form",
1617
1618
  key: l.key,
1618
1619
  dev: !0
1619
- }, l.builderSchema), null, 16)) : O("", !0),
1620
+ }, l.builderSchema), null, 16)) : $("", !0),
1620
1621
  u(c),
1621
1622
  u(d, {
1622
1623
  type: "primary",
1623
- onClick: a.saveSchema
1624
+ onClick: s.saveSchema
1624
1625
  }, {
1625
1626
  default: r(() => [...t[2] || (t[2] = [
1626
- B("保存页面配置", -1)
1627
+ C("保存页面配置", -1)
1627
1628
  ])]),
1628
1629
  _: 1
1629
1630
  }, 8, ["onClick"]),
1630
- t[3] || (t[3] = B("    ", -1)),
1631
- u(f, {
1631
+ t[3] || (t[3] = C("    ", -1)),
1632
+ u(p, {
1632
1633
  text: "PageSchema",
1633
1634
  type: "modal"
1634
1635
  }, {
1635
1636
  default: r(() => [
1636
- u(p, { data: a.getSaveSchema }, null, 8, ["data"])
1637
+ u(f, { data: s.getSaveSchema }, null, 8, ["data"])
1637
1638
  ]),
1638
1639
  _: 1
1639
1640
  })
@@ -1641,14 +1642,14 @@ function yl(e, t, n, o, l, a) {
1641
1642
  "right-aside": r(() => [
1642
1643
  l.activeIndex ? (i(), h(T, { key: 0 }, {
1643
1644
  default: r(() => [
1644
- u(v, { label: "控件类型" }, {
1645
+ u(y, { label: "控件类型" }, {
1645
1646
  default: r(() => [
1646
1647
  u(w, {
1647
1648
  modelValue: l.currentCtrlType,
1648
1649
  "onUpdate:modelValue": t[0] || (t[0] = (b) => l.currentCtrlType = b)
1649
1650
  }, {
1650
1651
  default: r(() => [
1651
- (i(!0), _($, null, N(l.types, (b, E) => (i(), h(y, {
1652
+ (i(!0), _(O, null, U(l.types, (b, E) => (i(), h(g, {
1652
1653
  key: E,
1653
1654
  label: b.label,
1654
1655
  value: b.value
@@ -1661,8 +1662,8 @@ function yl(e, t, n, o, l, a) {
1661
1662
  })
1662
1663
  ]),
1663
1664
  _: 1
1664
- })) : O("", !0),
1665
- (i(), h(s, Q({
1665
+ })) : $("", !0),
1666
+ (i(), h(a, X({
1666
1667
  key: l.ctrlKey,
1667
1668
  modelValue: l.ctrlOptions,
1668
1669
  "onUpdate:modelValue": t[1] || (t[1] = (b) => l.ctrlOptions = b)
@@ -1671,7 +1672,7 @@ function yl(e, t, n, o, l, a) {
1671
1672
  _: 1
1672
1673
  });
1673
1674
  }
1674
- const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171"]]), vl = {
1675
+ const xl = /* @__PURE__ */ P(Sl, [["render", wl], ["__scopeId", "data-v-875f0171"]]), El = {
1675
1676
  type: "input",
1676
1677
  name: "文本框",
1677
1678
  default: {
@@ -1719,7 +1720,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1719
1720
  }
1720
1721
  }
1721
1722
  ]
1722
- }, gl = {
1723
+ }, Il = {
1723
1724
  type: "select",
1724
1725
  name: "下拉框",
1725
1726
  default: {
@@ -1820,7 +1821,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1820
1821
  const t = x(e);
1821
1822
  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;
1822
1823
  }
1823
- }, kl = {
1824
+ }, Cl = {
1824
1825
  type: "date",
1825
1826
  name: "日期",
1826
1827
  default: {
@@ -1840,7 +1841,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1840
1841
  label: "字段key"
1841
1842
  }
1842
1843
  ]
1843
- }, ht = {
1844
+ }, bt = {
1844
1845
  options: {
1845
1846
  labelPosition: "top",
1846
1847
  submitButton: !1,
@@ -1865,11 +1866,11 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1865
1866
  label: "导出按钮"
1866
1867
  }
1867
1868
  ]
1868
- }, Me = {
1869
+ }, De = {
1869
1870
  labelPosition: "top",
1870
1871
  submitButton: !1,
1871
1872
  cancelButton: !1
1872
- }, Sl = {
1873
+ }, Tl = {
1873
1874
  type: "span",
1874
1875
  name: "文本",
1875
1876
  default: {
@@ -1899,7 +1900,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1899
1900
  label: "排序"
1900
1901
  }
1901
1902
  ]
1902
- }, wl = {
1903
+ }, Bl = {
1903
1904
  type: "enum",
1904
1905
  name: "标签",
1905
1906
  default: {
@@ -1950,7 +1951,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1950
1951
  trans(e) {
1951
1952
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
1952
1953
  }
1953
- }, xl = {
1954
+ }, $l = {
1954
1955
  type: "html",
1955
1956
  name: "HTML",
1956
1957
  default: {
@@ -1975,7 +1976,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
1975
1976
  label: "提示"
1976
1977
  }
1977
1978
  ]
1978
- }, El = {
1979
+ }, Ol = {
1979
1980
  type: "icon",
1980
1981
  name: "图标",
1981
1982
  default: {
@@ -2000,7 +2001,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2000
2001
  label: "提示"
2001
2002
  }
2002
2003
  ]
2003
- }, Il = {
2004
+ }, Al = {
2004
2005
  type: "image",
2005
2006
  name: "图片",
2006
2007
  default: {
@@ -2025,7 +2026,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2025
2026
  label: "提示"
2026
2027
  }
2027
2028
  ]
2028
- }, Cl = {
2029
+ }, Rl = {
2029
2030
  type: "json",
2030
2031
  name: "JSON",
2031
2032
  default: {
@@ -2050,7 +2051,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2050
2051
  label: "提示"
2051
2052
  }
2052
2053
  ]
2053
- }, Tl = {
2054
+ }, Pl = {
2054
2055
  type: "link",
2055
2056
  name: "链接",
2056
2057
  default: {
@@ -2075,7 +2076,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2075
2076
  label: "提示"
2076
2077
  }
2077
2078
  ]
2078
- }, Bl = {
2079
+ }, Ll = {
2079
2080
  type: "rich",
2080
2081
  name: "富文本",
2081
2082
  default: {
@@ -2100,7 +2101,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2100
2101
  label: "提示"
2101
2102
  }
2102
2103
  ]
2103
- }, Ol = {
2104
+ }, Ml = {
2104
2105
  type: "tpl",
2105
2106
  name: "模板",
2106
2107
  default: {
@@ -2131,17 +2132,17 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2131
2132
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2132
2133
  }
2133
2134
  ]
2134
- }, $l = {
2135
- span: Sl,
2136
- enum: wl,
2137
- html: xl,
2138
- icon: El,
2139
- image: Il,
2140
- json: Cl,
2141
- link: Tl,
2142
- rich: Bl,
2143
- tpl: Ol
2144
- }, Al = {
2135
+ }, Dl = {
2136
+ span: Tl,
2137
+ enum: Bl,
2138
+ html: $l,
2139
+ icon: Ol,
2140
+ image: Al,
2141
+ json: Rl,
2142
+ link: Pl,
2143
+ rich: Ll,
2144
+ tpl: Ml
2145
+ }, jl = {
2145
2146
  type: "jump",
2146
2147
  name: "跳转",
2147
2148
  default: {
@@ -2188,7 +2189,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2188
2189
  }
2189
2190
  }
2190
2191
  ]
2191
- }, Pl = {
2192
+ }, Nl = {
2192
2193
  type: "api",
2193
2194
  name: "接口请求",
2194
2195
  default: {
@@ -2257,7 +2258,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2257
2258
  }
2258
2259
  }
2259
2260
  ]
2260
- }, Rl = {
2261
+ }, Ul = {
2261
2262
  type: "form",
2262
2263
  name: "弹框表单",
2263
2264
  default: {
@@ -2311,7 +2312,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2311
2312
  label: "保存接口"
2312
2313
  }
2313
2314
  ]
2314
- }, Ll = {
2315
+ }, Vl = {
2315
2316
  type: "table",
2316
2317
  name: "弹框列表",
2317
2318
  default: {
@@ -2365,13 +2366,13 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2365
2366
  label: "保存接口"
2366
2367
  }
2367
2368
  ]
2368
- }, Ml = {
2369
- jump: Al,
2370
- api: Pl,
2371
- form: Rl,
2372
- table: Ll
2373
- }, Dl = {
2374
- components: { JsonView: Ye, DevLayout: Vt, VTable: he, VForm: ne, VButton: et },
2369
+ }, ql = {
2370
+ jump: jl,
2371
+ api: Nl,
2372
+ form: Ul,
2373
+ table: Vl
2374
+ }, Hl = {
2375
+ components: { JsonView: Ye, DevLayout: Ft, VTable: he, VForm: ne, VButton: et },
2375
2376
  props: {
2376
2377
  schema: {
2377
2378
  type: Object,
@@ -2380,13 +2381,13 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2380
2381
  }
2381
2382
  },
2382
2383
  data() {
2383
- const e = fn(this.$props.schema);
2384
+ const e = vn(this.$props.schema);
2384
2385
  return delete e.listApi, e.list = [{}], {
2385
- baseSchema: ht,
2386
+ baseSchema: bt,
2386
2387
  activeTab: "base",
2387
2388
  builderSchema: Object.assign(
2388
2389
  {},
2389
- ht,
2390
+ bt,
2390
2391
  e
2391
2392
  ),
2392
2393
  baseOptions: {},
@@ -2399,9 +2400,9 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2399
2400
  ctrlName: "",
2400
2401
  activeIndex: void 0,
2401
2402
  ctrlMap: {
2402
- filter: { input: vl, select: gl, date: kl },
2403
- headers: $l,
2404
- buttons: Ml
2403
+ filter: { input: El, select: Il, date: Cl },
2404
+ headers: Dl,
2405
+ buttons: ql
2405
2406
  },
2406
2407
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2407
2408
  currentCtrlType: "input"
@@ -2450,8 +2451,8 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2450
2451
  const l = o.trans ? o.trans(e) : e;
2451
2452
  if (l && Object.keys(l).length > 0) {
2452
2453
  if (l.type = n, this.activeIndex.indexOf("[") > -1) {
2453
- const [a, s, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2454
- this.builderSchema[s][c] = { ...l };
2454
+ const [s, a, c] = this.activeIndex.match(/(\w+)\[(\d+)\]/);
2455
+ this.builderSchema[a][c] = { ...l };
2455
2456
  } else
2456
2457
  this.builderSchema[this.activeIndex] = l;
2457
2458
  this.key++;
@@ -2463,7 +2464,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2463
2464
  handler(e) {
2464
2465
  const t = this.ctrlMap[this.activeBrick][e];
2465
2466
  this.ctrlSchema = x({
2466
- options: x(Me),
2467
+ options: x(De),
2467
2468
  formItems: x(t.builder)
2468
2469
  });
2469
2470
  const n = fe(this.builderSchema, this.activeIndex);
@@ -2511,12 +2512,12 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2511
2512
  return;
2512
2513
  }
2513
2514
  this.activeCtrl = l[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(x(l[e].default)), this.ctrlSchema = x({
2514
- options: x(Me),
2515
+ options: x(De),
2515
2516
  formItems: x(l[e].builder)
2516
2517
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2517
2518
  },
2518
2519
  removeOne() {
2519
- Et(this.builderSchema, this.activeIndex), this.builderSchema = x(gt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2520
+ Tt(this.builderSchema, this.activeIndex), this.builderSchema = x(wt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2520
2521
  },
2521
2522
  clicklabel() {
2522
2523
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
@@ -2531,7 +2532,7 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2531
2532
  return;
2532
2533
  }
2533
2534
  this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = x({
2534
- options: x(Me),
2535
+ options: x(De),
2535
2536
  formItems: x(l.builder)
2536
2537
  }), this.ctrlKey++;
2537
2538
  }
@@ -2548,65 +2549,65 @@ const _l = /* @__PURE__ */ R(bl, [["render", yl], ["__scopeId", "data-v-875f0171
2548
2549
  normalButton: o,
2549
2550
  batchButton: l
2550
2551
  }
2551
- }).then(({ data: a }) => {
2552
- a && this.$message({ type: "success", message: "保存成功, 请刷新页面查看效果" });
2552
+ }).then(({ data: s }) => {
2553
+ s && this.$message({ type: "success", message: "保存成功, 请刷新页面查看效果" });
2553
2554
  });
2554
2555
  }
2555
2556
  }
2556
2557
  };
2557
- function jl(e, t, n, o, l, a) {
2558
- const s = Te, c = me, d = be, p = L("v-table"), f = Bt, y = me, w = L("JsonView"), v = L("VButton"), T = Qe, I = We, b = Tt, E = Ct, A = L("v-form"), W = L("dev-layout");
2559
- return i(), h(W, null, {
2558
+ function Fl(e, t, n, o, l, s) {
2559
+ const a = Be, c = me, d = ye, f = L("v-table"), p = At, g = me, w = L("JsonView"), y = L("VButton"), T = Qe, B = We, b = Ot, E = $t, A = L("v-form"), Q = L("dev-layout");
2560
+ return i(), h(Q, null, {
2560
2561
  "left-aside": r(() => [
2561
2562
  u(d, { style: { width: "200px" } }, {
2562
2563
  default: r(() => [
2563
2564
  u(d, null, {
2564
2565
  default: r(() => [
2565
- u(s, {
2566
+ u(a, {
2566
2567
  class: "title",
2567
2568
  "data-id": 22222
2568
2569
  }, {
2569
2570
  default: r(() => [...t[5] || (t[5] = [
2570
- B("添加搜索条件", -1)
2571
+ C("添加搜索条件", -1)
2571
2572
  ])]),
2572
2573
  _: 1
2573
2574
  }),
2574
- u(s, { class: "ctrl" }, {
2575
+ u(a, { class: "ctrl" }, {
2575
2576
  default: r(() => [
2576
2577
  u(c, {
2577
2578
  class: "ctrl-btn",
2578
- onClick: t[0] || (t[0] = (S) => a.pushFilter("input"))
2579
+ onClick: t[0] || (t[0] = (S) => s.pushFilter("input"))
2579
2580
  }, {
2580
2581
  default: r(() => [...t[6] || (t[6] = [
2581
- B("文本框", -1)
2582
+ C("文本框", -1)
2582
2583
  ])]),
2583
2584
  _: 1
2584
2585
  })
2585
2586
  ]),
2586
2587
  _: 1
2587
2588
  }),
2588
- u(s, { class: "ctrl" }, {
2589
+ u(a, { class: "ctrl" }, {
2589
2590
  default: r(() => [
2590
2591
  u(c, {
2591
2592
  class: "ctrl-btn",
2592
- onClick: t[1] || (t[1] = (S) => a.pushFilter("select"))
2593
+ onClick: t[1] || (t[1] = (S) => s.pushFilter("select"))
2593
2594
  }, {
2594
2595
  default: r(() => [...t[7] || (t[7] = [
2595
- B("下拉框", -1)
2596
+ C("下拉框", -1)
2596
2597
  ])]),
2597
2598
  _: 1
2598
2599
  })
2599
2600
  ]),
2600
2601
  _: 1
2601
2602
  }),
2602
- u(s, { class: "ctrl" }, {
2603
+ u(a, { class: "ctrl" }, {
2603
2604
  default: r(() => [
2604
2605
  u(c, {
2605
2606
  class: "ctrl-btn",
2606
- onClick: t[2] || (t[2] = (S) => a.pushFilter("date"))
2607
+ onClick: t[2] || (t[2] = (S) => s.pushFilter("date"))
2607
2608
  }, {
2608
2609
  default: r(() => [...t[8] || (t[8] = [
2609
- B("日期", -1)
2610
+ C("日期", -1)
2610
2611
  ])]),
2611
2612
  _: 1
2612
2613
  })
@@ -2618,23 +2619,23 @@ function jl(e, t, n, o, l, a) {
2618
2619
  }),
2619
2620
  u(d, null, {
2620
2621
  default: r(() => [
2621
- u(s, { class: "title" }, {
2622
+ u(a, { class: "title" }, {
2622
2623
  default: r(() => [...t[9] || (t[9] = [
2623
- B("添加列表项", -1)
2624
+ C("添加列表项", -1)
2624
2625
  ])]),
2625
2626
  _: 1
2626
2627
  }),
2627
- (i(!0), _($, null, N(Object.keys(l.ctrlMap.headers), (S, q) => (i(), h(s, {
2628
+ (i(!0), _(O, null, U(Object.keys(l.ctrlMap.headers), (S, q) => (i(), h(a, {
2628
2629
  key: `column-${q}`,
2629
2630
  class: "ctrl"
2630
2631
  }, {
2631
2632
  default: r(() => [
2632
2633
  u(c, {
2633
2634
  class: "ctrl-btn",
2634
- onClick: (K) => a.pushHeaders(l.ctrlMap.headers[S].type)
2635
+ onClick: (z) => s.pushHeaders(l.ctrlMap.headers[S].type)
2635
2636
  }, {
2636
2637
  default: r(() => [
2637
- B(P(l.ctrlMap.headers[S].name), 1)
2638
+ C(R(l.ctrlMap.headers[S].name), 1)
2638
2639
  ]),
2639
2640
  _: 2
2640
2641
  }, 1032, ["onClick"])
@@ -2646,23 +2647,23 @@ function jl(e, t, n, o, l, a) {
2646
2647
  }),
2647
2648
  u(d, null, {
2648
2649
  default: r(() => [
2649
- u(s, { class: "title" }, {
2650
+ u(a, { class: "title" }, {
2650
2651
  default: r(() => [...t[10] || (t[10] = [
2651
- B("添加行按钮", -1)
2652
+ C("添加行按钮", -1)
2652
2653
  ])]),
2653
2654
  _: 1
2654
2655
  }),
2655
- (i(!0), _($, null, N(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(s, {
2656
+ (i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
2656
2657
  key: `column-${q}`,
2657
2658
  class: "ctrl"
2658
2659
  }, {
2659
2660
  default: r(() => [
2660
2661
  u(c, {
2661
2662
  class: "ctrl-btn",
2662
- onClick: (K) => a.pushRowButton(l.ctrlMap.buttons[S].type)
2663
+ onClick: (z) => s.pushRowButton(l.ctrlMap.buttons[S].type)
2663
2664
  }, {
2664
2665
  default: r(() => [
2665
- B(P(l.ctrlMap.buttons[S].name), 1)
2666
+ C(R(l.ctrlMap.buttons[S].name), 1)
2666
2667
  ]),
2667
2668
  _: 2
2668
2669
  }, 1032, ["onClick"])
@@ -2674,34 +2675,34 @@ function jl(e, t, n, o, l, a) {
2674
2675
  }),
2675
2676
  u(d, null, {
2676
2677
  default: r(() => [
2677
- u(s, { class: "title" }, {
2678
+ u(a, { class: "title" }, {
2678
2679
  default: r(() => [...t[11] || (t[11] = [
2679
- B("添加常规按钮", -1)
2680
+ C("添加常规按钮", -1)
2680
2681
  ])]),
2681
2682
  _: 1
2682
2683
  }),
2683
- (i(!0), _($, null, N(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(s, {
2684
+ (i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
2684
2685
  key: `column-${q}`,
2685
2686
  class: "ctrl"
2686
2687
  }, {
2687
2688
  default: r(() => [
2688
2689
  u(c, {
2689
2690
  class: "ctrl-btn",
2690
- onClick: (K) => a.pushNormalButton(l.ctrlMap.buttons[S].type)
2691
+ onClick: (z) => s.pushNormalButton(l.ctrlMap.buttons[S].type)
2691
2692
  }, {
2692
2693
  default: r(() => [
2693
- B(P(l.ctrlMap.buttons[S].name), 1)
2694
+ C(R(l.ctrlMap.buttons[S].name), 1)
2694
2695
  ]),
2695
2696
  _: 2
2696
2697
  }, 1032, ["onClick"])
2697
2698
  ]),
2698
2699
  _: 2
2699
2700
  }, 1024))), 128)),
2700
- u(s, { class: "ctrl" }, {
2701
+ u(a, { class: "ctrl" }, {
2701
2702
  default: r(() => [
2702
2703
  u(c, { class: "ctrl-btn" }, {
2703
2704
  default: r(() => [...t[12] || (t[12] = [
2704
- B("按钮组", -1)
2705
+ C("按钮组", -1)
2705
2706
  ])]),
2706
2707
  _: 1
2707
2708
  })
@@ -2713,34 +2714,34 @@ function jl(e, t, n, o, l, a) {
2713
2714
  }),
2714
2715
  u(d, null, {
2715
2716
  default: r(() => [
2716
- u(s, { class: "title" }, {
2717
+ u(a, { class: "title" }, {
2717
2718
  default: r(() => [...t[13] || (t[13] = [
2718
- B("添加批量按钮", -1)
2719
+ C("添加批量按钮", -1)
2719
2720
  ])]),
2720
2721
  _: 1
2721
2722
  }),
2722
- (i(!0), _($, null, N(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(s, {
2723
+ (i(!0), _(O, null, U(Object.keys(l.ctrlMap.buttons), (S, q) => (i(), h(a, {
2723
2724
  key: `column-${q}`,
2724
2725
  class: "ctrl"
2725
2726
  }, {
2726
2727
  default: r(() => [
2727
2728
  u(c, {
2728
2729
  class: "ctrl-btn",
2729
- onClick: (K) => a.pushBatchButton(l.ctrlMap.buttons[S].type)
2730
+ onClick: (z) => s.pushBatchButton(l.ctrlMap.buttons[S].type)
2730
2731
  }, {
2731
2732
  default: r(() => [
2732
- B(P(l.ctrlMap.buttons[S].name), 1)
2733
+ C(R(l.ctrlMap.buttons[S].name), 1)
2733
2734
  ]),
2734
2735
  _: 2
2735
2736
  }, 1032, ["onClick"])
2736
2737
  ]),
2737
2738
  _: 2
2738
2739
  }, 1024))), 128)),
2739
- u(s, { class: "ctrl" }, {
2740
+ u(a, { class: "ctrl" }, {
2740
2741
  default: r(() => [
2741
2742
  u(c, { class: "ctrl-btn" }, {
2742
2743
  default: r(() => [...t[14] || (t[14] = [
2743
- B("按钮组", -1)
2744
+ C("按钮组", -1)
2744
2745
  ])]),
2745
2746
  _: 1
2746
2747
  })
@@ -2755,28 +2756,28 @@ function jl(e, t, n, o, l, a) {
2755
2756
  })
2756
2757
  ]),
2757
2758
  main: r(() => [
2758
- (i(), h(p, Q({
2759
+ (i(), h(f, X({
2759
2760
  ref: "table",
2760
2761
  key: l.key,
2761
2762
  dev: !0
2762
2763
  }, l.builderSchema), null, 16)),
2763
- u(f),
2764
- u(y, {
2764
+ u(p),
2765
+ u(g, {
2765
2766
  type: "primary",
2766
- onClick: a.saveSchema
2767
+ onClick: s.saveSchema
2767
2768
  }, {
2768
2769
  default: r(() => [...t[15] || (t[15] = [
2769
- B("保存页面配置", -1)
2770
+ C("保存页面配置", -1)
2770
2771
  ])]),
2771
2772
  _: 1
2772
2773
  }, 8, ["onClick"]),
2773
- t[16] || (t[16] = B("    ", -1)),
2774
- u(v, {
2774
+ t[16] || (t[16] = C("    ", -1)),
2775
+ u(y, {
2775
2776
  text: "PageSchema",
2776
2777
  type: "modal"
2777
2778
  }, {
2778
2779
  default: r(() => [
2779
- u(w, { data: a.getSaveSchema }, null, 8, ["data"])
2780
+ u(w, { data: s.getSaveSchema }, null, 8, ["data"])
2780
2781
  ]),
2781
2782
  _: 1
2782
2783
  })
@@ -2786,12 +2787,12 @@ function jl(e, t, n, o, l, a) {
2786
2787
  default: r(() => [
2787
2788
  u(b, { label: "控件类型" }, {
2788
2789
  default: r(() => [
2789
- u(I, {
2790
+ u(B, {
2790
2791
  modelValue: l.currentCtrlType,
2791
2792
  "onUpdate:modelValue": t[3] || (t[3] = (S) => l.currentCtrlType = S)
2792
2793
  }, {
2793
2794
  default: r(() => [
2794
- (i(!0), _($, null, N(a.types, (S, q) => (i(), h(T, {
2795
+ (i(!0), _(O, null, U(s.types, (S, q) => (i(), h(T, {
2795
2796
  key: q,
2796
2797
  label: S.label,
2797
2798
  value: S.value
@@ -2804,8 +2805,8 @@ function jl(e, t, n, o, l, a) {
2804
2805
  })
2805
2806
  ]),
2806
2807
  _: 1
2807
- })) : O("", !0),
2808
- (i(), h(A, Q({
2808
+ })) : $("", !0),
2809
+ (i(), h(A, X({
2809
2810
  key: l.ctrlKey,
2810
2811
  modelValue: l.ctrlOptions,
2811
2812
  "onUpdate:modelValue": t[4] || (t[4] = (S) => l.ctrlOptions = S)
@@ -2814,65 +2815,65 @@ function jl(e, t, n, o, l, a) {
2814
2815
  _: 1
2815
2816
  });
2816
2817
  }
2817
- const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f"]]), Ul = "rtl", Vl = {
2818
+ const Gl = /* @__PURE__ */ P(Hl, [["render", Fl], ["__scopeId", "data-v-cd18f87f"]]), Kl = "rtl", zl = {
2818
2819
  __name: "PageEditor",
2819
2820
  setup(e) {
2820
- const t = C(!1);
2821
- C(1);
2822
- const n = Z(), o = Y(), l = k(() => o.pages[n.path]);
2823
- return (a, s) => {
2824
- const c = L("VIcon"), d = Ot;
2825
- return i(), _($, null, [
2821
+ const t = I(!1);
2822
+ I(1);
2823
+ const n = W(), o = Y(), l = k(() => o.pages[n.path]);
2824
+ return (s, a) => {
2825
+ const c = L("VIcon"), d = Rt;
2826
+ return i(), _(O, null, [
2826
2827
  u(c, {
2827
2828
  name: "ra-set",
2828
- onClick: s[0] || (s[0] = (p) => t.value = !m(t))
2829
+ onClick: a[0] || (a[0] = (f) => t.value = !m(t))
2829
2830
  }),
2830
2831
  u(d, {
2831
2832
  modelValue: m(t),
2832
- "onUpdate:modelValue": s[1] || (s[1] = (p) => Ge(t) ? t.value = p : null),
2833
+ "onUpdate:modelValue": a[1] || (a[1] = (f) => Ge(t) ? t.value = f : null),
2833
2834
  title: "页面设计",
2834
2835
  class: "my-drawer",
2835
- direction: Ul,
2836
+ direction: Kl,
2836
2837
  size: "90%",
2837
2838
  "destroy-on-close": "",
2838
2839
  "append-to-body": ""
2839
2840
  }, {
2840
2841
  default: r(() => [
2841
- m(l).formItems !== void 0 ? (i(), h(_l, {
2842
+ m(l).formItems !== void 0 ? (i(), h(xl, {
2842
2843
  key: 0,
2843
2844
  schema: m(l)
2844
- }, null, 8, ["schema"])) : O("", !0),
2845
- m(l).headers !== void 0 ? (i(), h(Nl, {
2845
+ }, null, 8, ["schema"])) : $("", !0),
2846
+ m(l).headers !== void 0 ? (i(), h(Gl, {
2846
2847
  key: 1,
2847
2848
  schema: m(l)
2848
- }, null, 8, ["schema"])) : O("", !0)
2849
+ }, null, 8, ["schema"])) : $("", !0)
2849
2850
  ]),
2850
2851
  _: 1
2851
2852
  }, 8, ["modelValue"])
2852
2853
  ], 64);
2853
2854
  };
2854
2855
  }
2855
- }, ql = { class: "right-content" }, Hl = {
2856
+ }, Jl = { class: "right-content" }, Wl = {
2856
2857
  key: 0,
2857
2858
  class: "right-item"
2858
- }, Fl = {
2859
+ }, Ql = {
2859
2860
  class: "right-item-button",
2860
2861
  style: { padding: "0" }
2861
- }, Gl = { class: "user-info" }, zl = { class: "user-name" }, Kl = /* @__PURE__ */ z({
2862
+ }, Xl = { class: "user-info" }, Zl = { class: "user-name" }, Yl = /* @__PURE__ */ K({
2862
2863
  __name: "Navbar",
2863
2864
  setup(e) {
2864
- const t = Y(), n = V(), o = U();
2865
- C(!1);
2866
- const l = C(!1);
2867
- C(""), C(0);
2868
- const a = k(() => n.defaultAvatar), s = k(() => t.sidebar), c = k(() => o.avatar), d = k(() => o.name), p = k(() => o.nickname), f = k(() => n.nav), y = k(() => n), w = k(() => o), v = k(() => n.showPageJsonSchema || !1), { isDark: T, toggleTheme: I } = Dt(), b = k(() => {
2869
- const M = y.value.envColor?.[w.value.env];
2870
- return T.value ? {
2865
+ const t = Y(), n = V(), o = j();
2866
+ I(!1);
2867
+ const l = I(!1);
2868
+ I(""), I(0);
2869
+ const s = k(() => n.defaultAvatar), a = k(() => t.sidebar), c = k(() => t.device), d = k(() => o.avatar), f = k(() => o.name), p = k(() => o.nickname), g = k(() => n.nav), w = k(() => n), y = k(() => o), T = k(() => n.showPageJsonSchema || !1), { isDark: B, toggleTheme: b } = Ut(), E = k(() => {
2870
+ const D = w.value.envColor?.[y.value.env];
2871
+ return B.value ? {
2871
2872
  background: "linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%)",
2872
2873
  borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
2873
2874
  boxShadow: "0 1px 8px rgba(15, 23, 42, 0.7)"
2874
- } : M ? {
2875
- background: `linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 60%, ${M} 100%)`,
2875
+ } : D ? {
2876
+ background: `linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 60%, ${D} 100%)`,
2876
2877
  borderBottom: "1px solid rgba(15, 23, 42, 0.08)",
2877
2878
  boxShadow: "0 1px 4px rgba(15, 23, 42, 0.08)"
2878
2879
  } : {
@@ -2881,110 +2882,113 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
2881
2882
  boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
2882
2883
  };
2883
2884
  });
2884
- Ee(() => {
2885
- kt("el-submenu is-active");
2886
- const M = Oe("navBarNotice") || "";
2887
- M.length > 0 && !Oe("closeNavNotice") && en(M) && window?.App?.config?.globalProperties?.$notify({
2885
+ Ie(() => {
2886
+ xt("el-submenu is-active");
2887
+ const D = Oe("navBarNotice") || "";
2888
+ D.length > 0 && !Oe("closeNavNotice") && an(D) && window?.App?.config?.globalProperties?.$notify({
2888
2889
  title: "提示",
2889
- message: M,
2890
+ message: D,
2890
2891
  dangerouslyUseHTMLString: !0,
2891
2892
  duration: 0,
2892
- onClose: Yt
2893
- }), y.value.envColor?.[w.value.env] && Tn({
2894
- elRef: E.value.$el,
2895
- waterMark: w.value.env,
2893
+ onClose: sn
2894
+ }), w.value.envColor?.[y.value.env] && Pn({
2895
+ elRef: A.value.$el,
2896
+ waterMark: y.value.env,
2896
2897
  color: "skyblue",
2897
2898
  size: "20"
2898
2899
  });
2899
2900
  });
2900
- const E = C(), A = C(""), W = C(!1);
2901
- He([c, a], () => {
2902
- W.value = !1, A.value = c.value || a.value || "";
2901
+ const A = I(), Q = I(""), S = I(!1);
2902
+ be([d, s], () => {
2903
+ S.value = !1, Q.value = d.value || s.value || "";
2903
2904
  }, { immediate: !0 });
2904
- const S = k(() => {
2905
- const M = p.value || d.value || n.title || "用户";
2906
- return M ? M.toString().trim().charAt(0).toUpperCase() : "用";
2905
+ const q = k(() => {
2906
+ const D = p.value || f.value || n.title || "用户";
2907
+ return D ? D.toString().trim().charAt(0).toUpperCase() : "用";
2907
2908
  });
2908
- function q() {
2909
+ function z() {
2909
2910
  t.toggleSideBar();
2910
2911
  }
2911
- async function K() {
2912
+ async function ln() {
2912
2913
  await o.logout();
2913
- const M = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2914
- location.reload(`${location.origin}/#/login?redirect=${M?.fullPath || "/"}`);
2914
+ const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2915
+ location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
2915
2916
  }
2916
- function Oe(M) {
2917
- return n[M];
2917
+ function Oe(D) {
2918
+ return n[D];
2918
2919
  }
2919
- async function Yt() {
2920
- n.updateSettings({ closeNavNotice: !0 }), tn(Oe("navBarNotice"));
2920
+ async function sn() {
2921
+ n.updateSettings({ closeNavNotice: !0 }), rn(Oe("navBarNotice"));
2921
2922
  }
2922
- function en(M) {
2923
- const j = "dismiss:navbar_notice";
2924
- return ge.exist(j) ? ge.get(j) !== M : !0;
2923
+ function an(D) {
2924
+ const N = "dismiss:navbar_notice";
2925
+ return ke.exist(N) ? ke.get(N) !== D : !0;
2925
2926
  }
2926
- function tn(M) {
2927
- ge.set("dismiss:navbar_notice", M);
2927
+ function rn(D) {
2928
+ ke.set("dismiss:navbar_notice", D);
2928
2929
  }
2929
- function nn() {
2930
- W.value || (W.value = !0, A.value = "");
2930
+ function cn() {
2931
+ S.value || (S.value = !0, Q.value = "");
2931
2932
  }
2932
- return (M, j) => {
2933
- const st = Te, on = Wn, ln = $t, an = Xn, it = Yn, sn = Zn, rn = Qn, cn = Ot, un = be;
2934
- return i(), h(un, {
2933
+ return (D, N) => {
2934
+ const at = Be, un = to, dn = Pt, pn = oo, it = so, fn = lo, mn = no, hn = Rt, bn = ye;
2935
+ return i(), h(bn, {
2935
2936
  ref_key: "header",
2936
- ref: E,
2937
+ ref: A,
2937
2938
  class: "navbar",
2938
- style: mn(b.value)
2939
+ style: gn(E.value)
2939
2940
  }, {
2940
2941
  default: r(() => [
2941
- u(st, { span: 16 }, {
2942
+ u(at, { span: 16 }, {
2942
2943
  default: r(() => [
2943
- u(Zo, {
2944
- "is-active": s.value.opened,
2944
+ u(ll, {
2945
+ "is-active": a.value.opened,
2945
2946
  class: "hamburger-container",
2946
- onToggleClick: q
2947
+ onToggleClick: z
2947
2948
  }, null, 8, ["is-active"]),
2948
- u(Wo, { class: "breadcrumb-container" })
2949
+ c.value !== "mobile" ? (i(), h(tl, {
2950
+ key: 0,
2951
+ class: "breadcrumb-container"
2952
+ })) : $("", !0)
2949
2953
  ]),
2950
2954
  _: 1
2951
2955
  }),
2952
- u(st, { span: 8 }, {
2956
+ u(at, { span: 8 }, {
2953
2957
  default: r(() => [
2954
- g("div", ql, [
2955
- v.value ? (i(), _("div", Hl, [
2956
- u(Vl)
2957
- ])) : O("", !0),
2958
- g("div", Fl, [
2959
- u(m(et), { buttons: f.value }, null, 8, ["buttons"])
2958
+ v("div", Jl, [
2959
+ T.value ? (i(), _("div", Wl, [
2960
+ u(zl)
2961
+ ])) : $("", !0),
2962
+ v("div", Ql, [
2963
+ u(m(et), { buttons: g.value }, null, 8, ["buttons"])
2960
2964
  ]),
2961
- u(ln, {
2965
+ u(dn, {
2962
2966
  placement: "bottom",
2963
- content: m(T) ? "切换为明亮模式" : "切换为暗黑模式"
2967
+ content: m(B) ? "切换为明亮模式" : "切换为暗黑模式"
2964
2968
  }, {
2965
2969
  default: r(() => [
2966
- g("div", {
2970
+ v("div", {
2967
2971
  class: "right-item theme-toggle",
2968
2972
  role: "button",
2969
2973
  tabindex: "0",
2970
- onClick: j[0] || (j[0] = //@ts-ignore
2971
- (...ae) => m(I) && m(I)(...ae)),
2974
+ onClick: N[0] || (N[0] = //@ts-ignore
2975
+ (...se) => m(b) && m(b)(...se)),
2972
2976
  onKeydown: [
2973
- j[1] || (j[1] = rt(ct(
2977
+ N[1] || (N[1] = rt(ct(
2974
2978
  //@ts-ignore
2975
- (...ae) => m(I) && m(I)(...ae),
2979
+ (...se) => m(b) && m(b)(...se),
2976
2980
  ["prevent"]
2977
2981
  ), ["enter"])),
2978
- j[2] || (j[2] = rt(ct(
2982
+ N[2] || (N[2] = rt(ct(
2979
2983
  //@ts-ignore
2980
- (...ae) => m(I) && m(I)(...ae),
2984
+ (...se) => m(b) && m(b)(...se),
2981
2985
  ["prevent"]
2982
2986
  ), ["space"]))
2983
2987
  ]
2984
2988
  }, [
2985
- u(on, null, {
2989
+ u(un, null, {
2986
2990
  default: r(() => [
2987
- (i(), h(ze(m(T) ? m(ho) : m(bo))))
2991
+ (i(), h(Ke(m(B) ? m(ko) : m(So))))
2988
2992
  ]),
2989
2993
  _: 1
2990
2994
  })
@@ -2992,29 +2996,29 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
2992
2996
  ]),
2993
2997
  _: 1
2994
2998
  }, 8, ["content"]),
2995
- u(rn, {
2999
+ u(mn, {
2996
3000
  class: "right-item",
2997
3001
  trigger: "click"
2998
3002
  }, {
2999
3003
  dropdown: r(() => [
3000
- u(sn, { class: "user-dropdown" }, {
3004
+ u(fn, { class: "user-dropdown" }, {
3001
3005
  default: r(() => [
3002
3006
  u(it, {
3003
3007
  icon: "oms-icon-index",
3004
- onClick: j[3] || (j[3] = (ae) => M.$router.push("/"))
3008
+ onClick: N[3] || (N[3] = (se) => D.$router.push("/"))
3005
3009
  }, {
3006
- default: r(() => [...j[4] || (j[4] = [
3007
- B("首页", -1)
3010
+ default: r(() => [...N[4] || (N[4] = [
3011
+ C("首页", -1)
3008
3012
  ])]),
3009
3013
  _: 1
3010
3014
  }),
3011
3015
  u(it, {
3012
3016
  divided: "",
3013
3017
  icon: "el-icon-switch-button",
3014
- onClick: K
3018
+ onClick: ln
3015
3019
  }, {
3016
- default: r(() => [...j[5] || (j[5] = [
3017
- B("退出登录", -1)
3020
+ default: r(() => [...N[5] || (N[5] = [
3021
+ C("退出登录", -1)
3018
3022
  ])]),
3019
3023
  _: 1
3020
3024
  })
@@ -3023,19 +3027,19 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3023
3027
  })
3024
3028
  ]),
3025
3029
  default: r(() => [
3026
- g("div", Gl, [
3027
- u(an, {
3030
+ v("div", Xl, [
3031
+ u(pn, {
3028
3032
  class: "user-avatar",
3029
3033
  size: 32,
3030
- src: A.value || void 0,
3031
- onError: nn
3034
+ src: Q.value || void 0,
3035
+ onError: cn
3032
3036
  }, {
3033
3037
  default: r(() => [
3034
- B(P(S.value), 1)
3038
+ C(R(q.value), 1)
3035
3039
  ]),
3036
3040
  _: 1
3037
3041
  }, 8, ["src"]),
3038
- g("span", zl, P(p.value || d.value), 1)
3042
+ v("span", Zl, R(p.value || f.value), 1)
3039
3043
  ])
3040
3044
  ]),
3041
3045
  _: 1
@@ -3044,52 +3048,52 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3044
3048
  ]),
3045
3049
  _: 1
3046
3050
  }),
3047
- l.value ? (i(), h(cn, {
3051
+ l.value ? (i(), h(hn, {
3048
3052
  key: 0,
3049
3053
  "with-header": !1,
3050
3054
  size: "50%"
3051
- })) : O("", !0)
3055
+ })) : $("", !0)
3052
3056
  ]),
3053
3057
  _: 1
3054
3058
  }, 8, ["style"]);
3055
3059
  };
3056
3060
  }
3057
- }), Jl = /* @__PURE__ */ R(Kl, [["__scopeId", "data-v-946dd90a"]]), Wl = { class: "sidebar-logo-fallback" }, Ql = {
3061
+ }), es = /* @__PURE__ */ P(Yl, [["__scopeId", "data-v-c2dc5c82"]]), ts = { class: "sidebar-logo-fallback" }, ns = {
3058
3062
  key: 1,
3059
3063
  class: "sidebar-logo-fallback"
3060
- }, Xl = { class: "sidebar-logo-fallback" }, Zl = {
3064
+ }, os = { class: "sidebar-logo-fallback" }, ls = {
3061
3065
  key: 1,
3062
3066
  class: "sidebar-logo-fallback"
3063
- }, Yl = { class: "sidebar-title" }, ea = /* @__PURE__ */ z({
3067
+ }, ss = { class: "sidebar-title" }, as = /* @__PURE__ */ K({
3064
3068
  __name: "Logo",
3065
3069
  props: {
3066
3070
  collapse: { type: Boolean }
3067
3071
  },
3068
3072
  setup(e) {
3069
- const t = V(), n = k(() => t.title), o = k(() => t.logo), l = C(!1), a = k(() => !!o.value && !l.value), s = k(() => {
3073
+ const t = V(), n = k(() => t.title), o = k(() => t.logo), l = I(!1), s = k(() => !!o.value && !l.value), a = k(() => {
3070
3074
  const d = n.value || "OMS";
3071
3075
  return d ? d.toString().trim().charAt(0).toUpperCase() : "O";
3072
3076
  });
3073
- He(o, () => {
3077
+ be(o, () => {
3074
3078
  l.value = !1;
3075
3079
  }, { immediate: !0 });
3076
3080
  function c() {
3077
3081
  l.value = !0;
3078
3082
  }
3079
- return (d, p) => {
3080
- const f = eo, y = L("router-link");
3083
+ return (d, f) => {
3084
+ const p = ao, g = L("router-link");
3081
3085
  return i(), _("div", {
3082
- class: ee(["sidebar-logo-container", { collapse: d.collapse }])
3086
+ class: ee(["sidebar-logo-container", { collapse: e.collapse }])
3083
3087
  }, [
3084
- u(hn, { name: "sidebarLogoFade" }, {
3088
+ u(kn, { name: "sidebarLogoFade" }, {
3085
3089
  default: r(() => [
3086
- d.collapse ? (i(), h(y, {
3090
+ e.collapse ? (i(), h(g, {
3087
3091
  key: "collapse",
3088
3092
  class: "sidebar-logo-link",
3089
3093
  to: "/"
3090
3094
  }, {
3091
3095
  default: r(() => [
3092
- a.value ? (i(), h(f, {
3096
+ s.value ? (i(), h(p, {
3093
3097
  key: 0,
3094
3098
  src: o.value || "",
3095
3099
  fit: "contain",
@@ -3097,20 +3101,20 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3097
3101
  onError: c
3098
3102
  }, {
3099
3103
  error: r(() => [
3100
- g("div", Wl, P(s.value), 1)
3104
+ v("div", ts, R(a.value), 1)
3101
3105
  ]),
3102
3106
  _: 1
3103
- }, 8, ["src"])) : (i(), _("div", Ql, P(s.value), 1)),
3104
- p[0] || (p[0] = g("div", { class: "sidebar-subtitle" }, "系统", -1))
3107
+ }, 8, ["src"])) : (i(), _("div", ns, R(a.value), 1)),
3108
+ f[0] || (f[0] = v("div", { class: "sidebar-subtitle" }, "系统", -1))
3105
3109
  ]),
3106
3110
  _: 1
3107
- })) : (i(), h(y, {
3111
+ })) : (i(), h(g, {
3108
3112
  key: "expand",
3109
3113
  class: "sidebar-logo-link",
3110
3114
  to: "/"
3111
3115
  }, {
3112
3116
  default: r(() => [
3113
- a.value ? (i(), h(f, {
3117
+ s.value ? (i(), h(p, {
3114
3118
  key: 0,
3115
3119
  src: o.value || "",
3116
3120
  fit: "contain",
@@ -3118,11 +3122,11 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3118
3122
  onError: c
3119
3123
  }, {
3120
3124
  error: r(() => [
3121
- g("div", Xl, P(s.value), 1)
3125
+ v("div", os, R(a.value), 1)
3122
3126
  ]),
3123
3127
  _: 1
3124
- }, 8, ["src"])) : (i(), _("div", Zl, P(s.value), 1)),
3125
- g("h1", Yl, P(n.value), 1)
3128
+ }, 8, ["src"])) : (i(), _("div", ls, R(a.value), 1)),
3129
+ v("h1", ss, R(n.value), 1)
3126
3130
  ]),
3127
3131
  _: 1
3128
3132
  }))
@@ -3132,7 +3136,7 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3132
3136
  ], 2);
3133
3137
  };
3134
3138
  }
3135
- }), ta = /* @__PURE__ */ R(ea, [["__scopeId", "data-v-d170b6a7"]]), na = {
3139
+ }), is = /* @__PURE__ */ P(as, [["__scopeId", "data-v-d170b6a7"]]), rs = {
3136
3140
  props: {
3137
3141
  to: {
3138
3142
  type: String,
@@ -3165,15 +3169,15 @@ const Nl = /* @__PURE__ */ R(Dl, [["render", jl], ["__scopeId", "data-v-cd18f87f
3165
3169
  }
3166
3170
  }
3167
3171
  };
3168
- function oa(e, t, n, o, l, a) {
3169
- return i(), h(ze(a.compType(n.to)), X(re(a.linkProps(n.to))), {
3172
+ function cs(e, t, n, o, l, s) {
3173
+ return i(), h(Ke(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
3170
3174
  default: r(() => [
3171
3175
  de(e.$slots, "default")
3172
3176
  ]),
3173
3177
  _: 3
3174
3178
  }, 16);
3175
3179
  }
3176
- const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
3180
+ const us = /* @__PURE__ */ P(rs, [["render", cs]]), ds = {
3177
3181
  computed: {
3178
3182
  // @ts-ignore
3179
3183
  device() {
@@ -3194,7 +3198,7 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
3194
3198
  }
3195
3199
  }
3196
3200
  }
3197
- }, sa = { class: "menu-content" }, ia = /* @__PURE__ */ z({
3201
+ }, ps = { class: "menu-content" }, fs = /* @__PURE__ */ K({
3198
3202
  __name: "MenuContent",
3199
3203
  props: {
3200
3204
  meta: {
@@ -3208,21 +3212,21 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
3208
3212
  setup(e) {
3209
3213
  return (t, n) => {
3210
3214
  const o = L("VIcon");
3211
- return i(), _($, null, [
3215
+ return i(), _(O, null, [
3212
3216
  u(o, {
3213
3217
  name: e.meta.icon || "ra-all"
3214
3218
  }, null, 8, ["name"]),
3215
- g("span", sa, P(e.meta.title), 1)
3219
+ v("span", ps, R(e.meta.title), 1)
3216
3220
  ], 64);
3217
3221
  };
3218
3222
  }
3219
- }), ra = {
3223
+ }), ms = {
3220
3224
  name: "SidebarItem",
3221
3225
  components: {
3222
- AppLink: la,
3223
- MenuContent: ia
3226
+ AppLink: us,
3227
+ MenuContent: fs
3224
3228
  },
3225
- mixins: [aa],
3229
+ mixins: [ds],
3226
3230
  props: {
3227
3231
  // route object
3228
3232
  item: {
@@ -3244,7 +3248,7 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
3244
3248
  },
3245
3249
  methods: {
3246
3250
  itemClick() {
3247
- ge.remove("table_filter:" + this.$props.to);
3251
+ ke.remove("table_filter:" + this.$props.to);
3248
3252
  },
3249
3253
  getTo(e) {
3250
3254
  try {
@@ -3254,14 +3258,14 @@ const la = /* @__PURE__ */ R(na, [["render", oa]]), aa = {
3254
3258
  }
3255
3259
  }
3256
3260
  }
3257
- }, ca = {
3261
+ }, hs = {
3258
3262
  key: 0,
3259
3263
  class: "menu-wrapper"
3260
3264
  };
3261
- function ua(e, t, n, o, l, a) {
3262
- const s = L("menu-content"), c = to, d = L("app-link"), p = $t, f = L("sidebar-item", !0), y = no;
3263
- return n.item.hidden !== !1 ? (i(), _("div", ca, [
3264
- n.item.meta && n.item.meta.menuType === 2 ? (i(), h(p, {
3265
+ function bs(e, t, n, o, l, s) {
3266
+ const a = L("menu-content"), c = io, d = L("app-link"), f = Pt, p = L("sidebar-item", !0), g = ro;
3267
+ return n.item.hidden !== !1 ? (i(), _("div", hs, [
3268
+ n.item.meta && n.item.meta.menuType === 2 ? (i(), h(f, {
3265
3269
  key: 0,
3266
3270
  disabled: !n.isCollapse,
3267
3271
  effect: "dark",
@@ -3278,10 +3282,10 @@ function ua(e, t, n, o, l, a) {
3278
3282
  u(c, {
3279
3283
  index: n.to,
3280
3284
  class: ee({ "submenu-title-noDropdown": !n.isNest }),
3281
- onClick: a.itemClick
3285
+ onClick: s.itemClick
3282
3286
  }, {
3283
3287
  default: r(() => [
3284
- u(s, {
3288
+ u(a, {
3285
3289
  meta: n.item.meta
3286
3290
  }, null, 8, ["meta"])
3287
3291
  ]),
@@ -3289,10 +3293,10 @@ function ua(e, t, n, o, l, a) {
3289
3293
  }, 8, ["index", "class", "onClick"])
3290
3294
  ]),
3291
3295
  _: 1
3292
- }, 8, ["to", "new-tab"])) : O("", !0)
3296
+ }, 8, ["to", "new-tab"])) : $("", !0)
3293
3297
  ]),
3294
3298
  _: 1
3295
- }, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(p, {
3299
+ }, 8, ["disabled", "content"])) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
3296
3300
  key: 1,
3297
3301
  disabled: !n.isCollapse,
3298
3302
  effect: "dark",
@@ -3300,7 +3304,7 @@ function ua(e, t, n, o, l, a) {
3300
3304
  content: n.item.meta?.title
3301
3305
  }, {
3302
3306
  default: r(() => [
3303
- u(y, {
3307
+ u(g, {
3304
3308
  ref: "subMenu",
3305
3309
  index: n.to,
3306
3310
  class: ee({ "submenu-title-noDropdown": !n.isNest })
@@ -3311,22 +3315,22 @@ function ua(e, t, n, o, l, a) {
3311
3315
  to: n.to
3312
3316
  }, {
3313
3317
  default: r(() => [
3314
- u(s, {
3318
+ u(a, {
3315
3319
  meta: n.item.meta
3316
3320
  }, null, 8, ["meta"])
3317
3321
  ]),
3318
3322
  _: 1
3319
- }, 8, ["to"])) : (i(), h(s, {
3323
+ }, 8, ["to"])) : (i(), h(a, {
3320
3324
  key: 1,
3321
3325
  meta: n.item.meta
3322
3326
  }, null, 8, ["meta"]))
3323
3327
  ]),
3324
3328
  default: r(() => [
3325
- (i(!0), _($, null, N(n.item.children, (w) => (i(), h(f, {
3329
+ (i(!0), _(O, null, U(n.item.children, (w) => (i(), h(p, {
3326
3330
  key: w.path,
3327
3331
  "is-nest": !0,
3328
3332
  item: w,
3329
- to: a.getTo(w),
3333
+ to: s.getTo(w),
3330
3334
  class: "nest-menu"
3331
3335
  }, null, 8, ["item", "to"]))), 128))
3332
3336
  ]),
@@ -3334,69 +3338,69 @@ function ua(e, t, n, o, l, a) {
3334
3338
  }, 8, ["index", "class"])
3335
3339
  ]),
3336
3340
  _: 1
3337
- }, 8, ["disabled", "content"])) : O("", !0)
3338
- ])) : O("", !0);
3341
+ }, 8, ["disabled", "content"])) : $("", !0)
3342
+ ])) : $("", !0);
3339
3343
  }
3340
- const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
3344
+ const ys = /* @__PURE__ */ P(ms, [["render", bs]]), _s = /* @__PURE__ */ K({
3341
3345
  __name: "SearchMenu",
3342
3346
  setup(e) {
3343
- const t = U();
3344
- function n(p) {
3345
- return p.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
3347
+ const t = j();
3348
+ function n(f) {
3349
+ return f.filter((p) => p.meta?.menuType === 0 ? !1 : (p.children && (p.children = n(p.children), p.children.length === 0 && delete p.children), !0));
3346
3350
  }
3347
- const o = C(""), l = k(() => t.remoteRouter), a = Ce(), s = k(() => {
3348
- let p = [];
3349
- return l.value.forEach((f) => {
3350
- p = p.concat(x(f.routes));
3351
- }), n(p);
3351
+ const o = I(""), l = k(() => t.remoteRouter), s = Te(), a = k(() => {
3352
+ let f = [];
3353
+ return l.value.forEach((p) => {
3354
+ f = f.concat(x(p.routes));
3355
+ }), n(f);
3352
3356
  });
3353
- function c(p) {
3354
- let f = p;
3355
- if (p.meta.menuType === 1 && p.children && p.children.length > 0) {
3356
- for (let y = 0; y < p.children.length; y++)
3357
- if (p.children[y].path.indexOf("/:") === -1) {
3358
- f = p.children[y];
3357
+ function c(f) {
3358
+ let p = f;
3359
+ if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
3360
+ for (let g = 0; g < f.children.length; g++)
3361
+ if (f.children[g].path.indexOf("/:") === -1) {
3362
+ p = f.children[g];
3359
3363
  break;
3360
3364
  }
3361
3365
  }
3362
- return a.resolve(f.redirect ? f.redirect : f).fullPath;
3366
+ return s.resolve(p.redirect ? p.redirect : p).fullPath;
3363
3367
  }
3364
- function d(p) {
3365
- a.push(p), o.value = "";
3368
+ function d(f) {
3369
+ s.push(f), o.value = "";
3366
3370
  }
3367
- return (p, f) => {
3368
- const y = Qe, w = oo, v = We;
3369
- return i(), h(v, {
3371
+ return (f, p) => {
3372
+ const g = Qe, w = co, y = We;
3373
+ return i(), h(y, {
3370
3374
  modelValue: m(o),
3371
- "onUpdate:modelValue": f[0] || (f[0] = (T) => Ge(o) ? o.value = T : null),
3375
+ "onUpdate:modelValue": p[0] || (p[0] = (T) => Ge(o) ? o.value = T : null),
3372
3376
  filterable: "",
3373
3377
  placeholder: "搜索菜单...",
3374
3378
  class: "search-menu",
3375
3379
  onChange: d
3376
3380
  }, {
3377
3381
  default: r(() => [
3378
- (i(!0), _($, null, N(m(s), (T) => (i(), _($, {
3382
+ (i(!0), _(O, null, U(m(a), (T) => (i(), _(O, {
3379
3383
  key: T.path
3380
3384
  }, [
3381
- T.children !== void 0 ? (i(), _($, { key: 0 }, [
3385
+ T.children !== void 0 ? (i(), _(O, { key: 0 }, [
3382
3386
  T.meta.menuType !== 0 ? (i(), h(w, {
3383
3387
  key: T.path + "-",
3384
3388
  label: T.meta.title
3385
3389
  }, {
3386
3390
  default: r(() => [
3387
- (i(!0), _($, null, N(T.children, (I, b) => (i(), _($, {
3388
- key: I.path
3391
+ (i(!0), _(O, null, U(T.children, (B, b) => (i(), _(O, {
3392
+ key: B.path
3389
3393
  }, [
3390
- T.meta.menuType !== 0 ? (i(), h(y, {
3394
+ T.meta.menuType !== 0 ? (i(), h(g, {
3391
3395
  key: 0,
3392
- label: (b === T.children.length - 1 ? "└─" : "├─") + I.meta.title,
3393
- value: c(I)
3394
- }, null, 8, ["label", "value"])) : O("", !0)
3396
+ label: (b === T.children.length - 1 ? "└─" : "├─") + B.meta.title,
3397
+ value: c(B)
3398
+ }, null, 8, ["label", "value"])) : $("", !0)
3395
3399
  ], 64))), 128))
3396
3400
  ]),
3397
3401
  _: 2
3398
- }, 1032, ["label"])) : O("", !0)
3399
- ], 64)) : (i(), h(y, {
3402
+ }, 1032, ["label"])) : $("", !0)
3403
+ ], 64)) : (i(), h(g, {
3400
3404
  key: 1,
3401
3405
  label: "" + T.meta.title,
3402
3406
  value: c(T)
@@ -3407,20 +3411,20 @@ const da = /* @__PURE__ */ R(ra, [["render", ua]]), pa = /* @__PURE__ */ z({
3407
3411
  }, 8, ["modelValue"]);
3408
3412
  };
3409
3413
  }
3410
- }), fa = /* @__PURE__ */ R(pa, [["__scopeId", "data-v-1821c9c2"]]);
3414
+ }), vs = /* @__PURE__ */ P(_s, [["__scopeId", "data-v-1821c9c2"]]);
3411
3415
  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 || {}), G = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(G || {});
3412
- const ma = /* @__PURE__ */ z({
3416
+ const gs = /* @__PURE__ */ K({
3413
3417
  __name: "index",
3414
3418
  setup(e) {
3415
- const t = Y(), n = U(), o = V(), l = k(() => t.sidebar), a = k(() => n.remoteRouter), s = k(() => n.customRouter), c = Ce(), d = Z(), p = k(() => {
3419
+ const t = Y(), n = j(), o = V(), l = k(() => t.sidebar), s = k(() => n.remoteRouter), a = k(() => n.customRouter), c = Te(), d = W(), f = k(() => {
3416
3420
  let b = [];
3417
- return c.options.routes.concat(s.value || []).forEach((E) => {
3421
+ return c.options.routes.concat(a.value || []).forEach((E) => {
3418
3422
  E.path === "/" ? b = b.concat(E.children || []) : b.push(E);
3419
3423
  }), x([
3420
3424
  { label: "", routes: b },
3421
- ...a.value
3425
+ ...s.value
3422
3426
  ]);
3423
- }), f = k(() => {
3427
+ }), p = k(() => {
3424
3428
  const b = d.matched;
3425
3429
  for (let E = b.length - 1; E >= 0; E--) {
3426
3430
  const A = b[E];
@@ -3428,33 +3432,33 @@ const ma = /* @__PURE__ */ z({
3428
3432
  return T(), c.resolve(A.redirect ? A.redirect : A).fullPath;
3429
3433
  }
3430
3434
  return "";
3431
- }), y = k(() => o.sidebarLogo), w = k(() => ({
3435
+ }), g = k(() => o.sidebarLogo), w = k(() => ({
3432
3436
  menuBg: "#304156",
3433
3437
  menuText: "#bfcbd9",
3434
3438
  menuActiveText: "#409EFF"
3435
- })), v = k(() => !l.value.opened);
3436
- Ee(() => T());
3439
+ })), y = k(() => !l.value.opened);
3440
+ Ie(() => T());
3437
3441
  function T() {
3438
- kt("is-active", 200);
3442
+ xt("is-active", 200);
3439
3443
  }
3440
- function I(b) {
3441
- return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = I(E.children)), E));
3444
+ function B(b) {
3445
+ return b.filter((E) => [G.dir, G.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = B(E.children)), E));
3442
3446
  }
3443
3447
  return (b, E) => {
3444
- const A = ao, W = lo;
3448
+ const A = po, Q = uo;
3445
3449
  return i(), _("div", {
3446
- class: ee({ "has-logo": m(y) })
3450
+ class: ee({ "has-logo": m(g) })
3447
3451
  }, [
3448
- m(y) ? (i(), h(ta, {
3452
+ m(g) ? (i(), h(is, {
3449
3453
  key: 0,
3450
- collapse: m(v)
3451
- }, null, 8, ["collapse"])) : O("", !0),
3452
- u(W, { "wrap-class": "scrollbar-wrapper" }, {
3454
+ collapse: m(y)
3455
+ }, null, 8, ["collapse"])) : $("", !0),
3456
+ u(Q, { "wrap-class": "scrollbar-wrapper" }, {
3453
3457
  default: r(() => [
3454
- m(v) ? O("", !0) : (i(), h(fa, { key: 0 })),
3458
+ m(y) ? $("", !0) : (i(), h(vs, { key: 0 })),
3455
3459
  u(A, {
3456
- "default-active": m(f),
3457
- collapse: m(v),
3460
+ "default-active": m(p),
3461
+ collapse: m(y),
3458
3462
  "background-color": m(w).menuBg,
3459
3463
  "text-color": m(w).menuText,
3460
3464
  "unique-opened": !1,
@@ -3463,14 +3467,14 @@ const ma = /* @__PURE__ */ z({
3463
3467
  mode: "vertical"
3464
3468
  }, {
3465
3469
  default: r(() => [
3466
- (i(!0), _($, null, N(m(p), (S, q) => (i(), _($, {
3470
+ (i(!0), _(O, null, U(m(f), (S, q) => (i(), _(O, {
3467
3471
  key: q + "-module"
3468
3472
  }, [
3469
- (i(!0), _($, null, N(I(S.routes), (K) => (i(), h(da, {
3470
- key: K.path,
3471
- item: K,
3472
- to: b.$router.resolve(K.redirect ? K.redirect : K).fullPath,
3473
- "is-collapse": m(v)
3473
+ (i(!0), _(O, null, U(B(S.routes), (z) => (i(), h(ys, {
3474
+ key: z.path,
3475
+ item: z,
3476
+ to: b.$router.resolve(z.redirect ? z.redirect : z).fullPath,
3477
+ "is-collapse": m(y)
3474
3478
  }, null, 8, ["item", "to", "is-collapse"]))), 128))
3475
3479
  ], 64))), 128))
3476
3480
  ]),
@@ -3482,149 +3486,151 @@ const ma = /* @__PURE__ */ z({
3482
3486
  ], 2);
3483
3487
  };
3484
3488
  }
3485
- }), ha = /* @__PURE__ */ R(ma, [["__scopeId", "data-v-3be8fe55"]]), ba = { class: "app-main" }, ya = {
3489
+ }), ks = /* @__PURE__ */ P(gs, [["__scopeId", "data-v-3be8fe55"]]), Ss = { class: "app-main" }, ws = {
3486
3490
  __name: "AppMain",
3487
3491
  setup(e) {
3488
- const t = Z(), n = [], o = C(0);
3489
- return Un(() => {
3492
+ const t = W(), n = [], o = I(0);
3493
+ return Kn(() => {
3490
3494
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3491
- }), (l, a) => {
3492
- const s = L("router-view"), c = so;
3493
- return i(), _("section", ba, [
3494
- (i(), h(s, {
3495
+ }), (l, s) => {
3496
+ const a = L("router-view"), c = fo;
3497
+ return i(), _("section", Ss, [
3498
+ (i(), h(a, {
3495
3499
  key: l.$route.fullPath + m(o)
3496
3500
  })),
3497
3501
  u(c, { bottom: 50 })
3498
3502
  ]);
3499
3503
  };
3500
3504
  }
3501
- }, _a = /* @__PURE__ */ R(ya, [["__scopeId", "data-v-ca0f0d98"]]), va = { class: "main-container" }, ga = 992, ka = {
3505
+ }, xs = /* @__PURE__ */ P(ws, [["__scopeId", "data-v-ca0f0d98"]]), Es = { class: "main-container" }, Is = 992, Cs = {
3502
3506
  __name: "index",
3503
3507
  setup(e) {
3504
- const { body: t } = document, n = Y(), o = V(), l = k(() => n.sidebar), a = k(() => n.device), s = k(() => o.fixedHeader), c = k(() => ({
3505
- hideSidebar: !l.value.opened,
3506
- openSidebar: l.value.opened,
3507
- withoutAnimation: l.value.withoutAnimation,
3508
+ const { body: t } = document, n = Y(), o = V(), l = W(), s = k(() => n.sidebar), a = k(() => n.device), c = k(() => o.fixedHeader), d = k(() => ({
3509
+ hideSidebar: !s.value.opened,
3510
+ openSidebar: s.value.opened,
3511
+ withoutAnimation: s.value.withoutAnimation,
3508
3512
  mobile: a.value === "mobile"
3509
- })), d = () => t.getBoundingClientRect().width - 1 < ga;
3510
- yo(window, "resize", () => f());
3511
- const p = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
3513
+ })), f = () => t.getBoundingClientRect().width - 1 < Is, p = () => {
3512
3514
  if (!document.hidden) {
3513
- const y = d();
3514
- n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
3515
+ const w = f();
3516
+ n.toggleDevice(w ? "mobile" : "desktop"), w && n.closeSideBar({ withoutAnimation: !0 });
3515
3517
  }
3516
3518
  };
3517
- return (y, w) => (i(), _("div", {
3518
- class: ee([m(c), "app-wrapper"])
3519
+ p(), wo(window, "resize", () => p()), be(l, () => {
3520
+ a.value === "mobile" && s.value.opened && n.closeSideBar({ withoutAnimation: !1 });
3521
+ });
3522
+ const g = () => n.closeSideBar({ withoutAnimation: !1 });
3523
+ return (w, y) => (i(), _("div", {
3524
+ class: ee([m(d), "app-wrapper"])
3519
3525
  }, [
3520
- m(a) === "mobile" && m(l).opened ? (i(), _("div", {
3526
+ m(a) === "mobile" && m(s).opened ? (i(), _("div", {
3521
3527
  key: 0,
3522
3528
  class: "drawer-bg",
3523
- onClick: p
3524
- })) : O("", !0),
3525
- u(m(ha), { class: "sidebar-container" }),
3526
- g("div", va, [
3527
- g("div", {
3528
- class: ee({ "fixed-header": m(s) })
3529
+ onClick: g
3530
+ })) : $("", !0),
3531
+ u(m(ks), { class: "sidebar-container" }),
3532
+ v("div", Es, [
3533
+ v("div", {
3534
+ class: ee({ "fixed-header": m(c) })
3529
3535
  }, [
3530
- u(m(Jl))
3536
+ u(m(es))
3531
3537
  ], 2),
3532
- u(m(_a))
3538
+ u(m(xs))
3533
3539
  ])
3534
3540
  ], 2));
3535
3541
  }
3536
- }, Ht = /* @__PURE__ */ R(ka, [["__scopeId", "data-v-b7ab74f0"]]), Sa = { id: "login" }, wa = { id: "form" }, xa = {
3542
+ }, Kt = /* @__PURE__ */ P(Cs, [["__scopeId", "data-v-6bf05d7c"]]), Ts = { id: "login" }, Bs = { id: "form" }, $s = {
3537
3543
  key: 0,
3538
3544
  class: "captcha"
3539
- }, Ea = ["src"], Ia = { class: "tips" }, Ca = { class: "sso" }, Ta = /* @__PURE__ */ z({
3545
+ }, Os = ["src"], As = { class: "tips" }, Rs = { class: "sso" }, Ps = /* @__PURE__ */ K({
3540
3546
  __name: "login",
3541
3547
  setup(e) {
3542
- const t = Ce(), n = Z(), o = V(), l = Y(), a = U(), s = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), p = C(0), f = C(!1), y = () => p.value++, w = k(() => v.value.username.length > 0 && v.value.password.length >= 4 && (c.value ? v.value.captcha.length === 4 : !0)), v = C({
3548
+ const t = Te(), n = W(), o = V(), l = Y(), s = j(), a = k(() => o.loginTips), c = k(() => o.captcha), d = k(() => l.baseURL), f = I(0), p = I(!1), g = () => f.value++, w = k(() => y.value.username.length > 0 && y.value.password.length >= 4 && (c.value ? y.value.captcha.length === 4 : !0)), y = I({
3543
3549
  username: "",
3544
3550
  password: "",
3545
3551
  captcha: "",
3546
3552
  sing: ""
3547
3553
  }), T = () => {
3548
- if (!f.value) {
3549
- if (v.value.username === "" || v.value.password === "" || c.value && v.value.captcha === "") {
3550
- io.error("用户名, 密码, 验证码是必须的");
3554
+ if (!p.value) {
3555
+ if (y.value.username === "" || y.value.password === "" || c.value && y.value.captcha === "") {
3556
+ mo.error("用户名, 密码, 验证码是必须的");
3551
3557
  return;
3552
3558
  }
3553
- c.value && (v.value.sing = vo.MD5(`${v.value.username}${v.value.password}${v.value.captcha}`).toString()), f.value = !0, a.login(v.value).then((I) => {
3559
+ c.value && (y.value.sing = Eo.MD5(`${y.value.username}${y.value.password}${y.value.captcha}`).toString()), p.value = !0, s.login(y.value).then((B) => {
3554
3560
  t.push({ path: n.query?.redirect || "/" });
3555
- }).catch((I) => {
3556
- p.value++;
3561
+ }).catch((B) => {
3562
+ f.value++;
3557
3563
  }).finally(() => {
3558
- f.value = !1;
3564
+ p.value = !1;
3559
3565
  });
3560
3566
  }
3561
3567
  };
3562
- return (I, b) => {
3568
+ return (B, b) => {
3563
3569
  const E = me;
3564
- return i(), _("div", Sa, [
3565
- b[5] || (b[5] = g("h1", { id: "title" }, "登录", -1)),
3566
- g("form", wa, [
3567
- ve(g("input", {
3568
- "onUpdate:modelValue": b[0] || (b[0] = (A) => m(v).username = A),
3570
+ return i(), _("div", Ts, [
3571
+ b[5] || (b[5] = v("h1", { id: "title" }, "登录", -1)),
3572
+ v("form", Bs, [
3573
+ ge(v("input", {
3574
+ "onUpdate:modelValue": b[0] || (b[0] = (A) => m(y).username = A),
3569
3575
  type: "text",
3570
3576
  placeholder: "用户名",
3571
3577
  class: "input"
3572
3578
  }, null, 512), [
3573
- [$e, m(v).username]
3579
+ [Ae, m(y).username]
3574
3580
  ]),
3575
- ve(g("input", {
3576
- "onUpdate:modelValue": b[1] || (b[1] = (A) => m(v).password = A),
3581
+ ge(v("input", {
3582
+ "onUpdate:modelValue": b[1] || (b[1] = (A) => m(y).password = A),
3577
3583
  type: "password",
3578
3584
  placeholder: "密码",
3579
3585
  class: "input"
3580
3586
  }, null, 512), [
3581
- [$e, m(v).password]
3587
+ [Ae, m(y).password]
3582
3588
  ]),
3583
- c.value ? (i(), _("div", xa, [
3584
- ve(g("input", {
3585
- "onUpdate:modelValue": b[2] || (b[2] = (A) => m(v).captcha = A),
3589
+ c.value ? (i(), _("div", $s, [
3590
+ ge(v("input", {
3591
+ "onUpdate:modelValue": b[2] || (b[2] = (A) => m(y).captcha = A),
3586
3592
  type: "text",
3587
3593
  placeholder: "验证码",
3588
3594
  class: "input-captcha"
3589
3595
  }, null, 512), [
3590
- [$e, m(v).captcha]
3596
+ [Ae, m(y).captcha]
3591
3597
  ]),
3592
- g("img", {
3598
+ v("img", {
3593
3599
  class: "captcha-img",
3594
- src: d.value + "/user/captcha?ts=" + m(p),
3600
+ src: d.value + "/user/captcha?ts=" + m(f),
3595
3601
  title: "点击刷新",
3596
- onClick: y
3597
- }, null, 8, Ea)
3598
- ])) : O("", !0),
3602
+ onClick: g
3603
+ }, null, 8, Os)
3604
+ ])) : $("", !0),
3599
3605
  u(E, {
3600
3606
  class: "login-button",
3601
3607
  type: "primary",
3602
- loading: m(f),
3608
+ loading: m(p),
3603
3609
  disabled: !w.value,
3604
3610
  onClick: T
3605
3611
  }, {
3606
3612
  default: r(() => [...b[3] || (b[3] = [
3607
- B("登录", -1)
3613
+ C("登录", -1)
3608
3614
  ])]),
3609
3615
  _: 1
3610
3616
  }, 8, ["loading", "disabled"]),
3611
- g("div", Ia, [
3612
- g("div", null, P(s.value), 1)
3617
+ v("div", As, [
3618
+ v("div", null, R(a.value), 1)
3613
3619
  ]),
3614
- g("div", Ca, [
3615
- b[4] || (b[4] = g("div", { id: "sso-qrcode" }, null, -1)),
3616
- (i(!0), _($, null, N(Object.keys([]), (A) => (i(), _("div", { key: A }, P(A), 1))), 128))
3620
+ v("div", Rs, [
3621
+ b[4] || (b[4] = v("div", { id: "sso-qrcode" }, null, -1)),
3622
+ (i(!0), _(O, null, U(Object.keys([]), (A) => (i(), _("div", { key: A }, R(A), 1))), 128))
3617
3623
  ])
3618
3624
  ])
3619
3625
  ]);
3620
3626
  };
3621
3627
  }
3622
- }), Ba = {
3628
+ }), Ls = {
3623
3629
  name: "NotFoundPage"
3624
- }, Oa = { class: "not-found" };
3625
- function $a(e, t, n, o, l, a) {
3626
- return i(), _("div", Oa, [...t[0] || (t[0] = [
3627
- g("svg", {
3630
+ }, Ms = { class: "not-found" };
3631
+ function Ds(e, t, n, o, l, s) {
3632
+ return i(), _("div", Ms, [...t[0] || (t[0] = [
3633
+ v("svg", {
3628
3634
  width: "380px",
3629
3635
  height: "500px",
3630
3636
  viewBox: "0 0 837 1045",
@@ -3633,7 +3639,7 @@ function $a(e, t, n, o, l, a) {
3633
3639
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3634
3640
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
3635
3641
  }, [
3636
- g("g", {
3642
+ v("g", {
3637
3643
  id: "Page-1",
3638
3644
  stroke: "none",
3639
3645
  "stroke-width": "1",
@@ -3641,35 +3647,35 @@ function $a(e, t, n, o, l, a) {
3641
3647
  "fill-rule": "evenodd",
3642
3648
  "sketch:type": "MSPage"
3643
3649
  }, [
3644
- g("path", {
3650
+ v("path", {
3645
3651
  id: "Polygon-1",
3646
3652
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
3647
3653
  stroke: "#007FB2",
3648
3654
  "stroke-width": "6",
3649
3655
  "sketch:type": "MSShapeGroup"
3650
3656
  }),
3651
- g("path", {
3657
+ v("path", {
3652
3658
  id: "Polygon-2",
3653
3659
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
3654
3660
  stroke: "#EF4A5B",
3655
3661
  "stroke-width": "6",
3656
3662
  "sketch:type": "MSShapeGroup"
3657
3663
  }),
3658
- g("path", {
3664
+ v("path", {
3659
3665
  id: "Polygon-3",
3660
3666
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
3661
3667
  stroke: "#795D9C",
3662
3668
  "stroke-width": "6",
3663
3669
  "sketch:type": "MSShapeGroup"
3664
3670
  }),
3665
- g("path", {
3671
+ v("path", {
3666
3672
  id: "Polygon-4",
3667
3673
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
3668
3674
  stroke: "#F2773F",
3669
3675
  "stroke-width": "6",
3670
3676
  "sketch:type": "MSShapeGroup"
3671
3677
  }),
3672
- g("path", {
3678
+ v("path", {
3673
3679
  id: "Polygon-5",
3674
3680
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
3675
3681
  stroke: "#36B455",
@@ -3678,12 +3684,12 @@ function $a(e, t, n, o, l, a) {
3678
3684
  })
3679
3685
  ])
3680
3686
  ], -1),
3681
- g("div", { class: "message-box" }, [
3682
- g("h1", null, "404"),
3683
- g("p", null, "Page not found"),
3684
- g("div", { class: "buttons-con" }, [
3685
- g("div", { class: "action-link-wrap" }, [
3686
- g("a", {
3687
+ v("div", { class: "message-box" }, [
3688
+ v("h1", null, "404"),
3689
+ v("p", null, "Page not found"),
3690
+ v("div", { class: "buttons-con" }, [
3691
+ v("div", { class: "action-link-wrap" }, [
3692
+ v("a", {
3687
3693
  href: "",
3688
3694
  class: "link-button"
3689
3695
  }, "Go to Home Page")
@@ -3692,10 +3698,10 @@ function $a(e, t, n, o, l, a) {
3692
3698
  ], -1)
3693
3699
  ])]);
3694
3700
  }
3695
- const Aa = /* @__PURE__ */ R(Ba, [["render", $a], ["__scopeId", "data-v-26068803"]]), Pa = [
3701
+ const js = /* @__PURE__ */ P(Ls, [["render", Ds], ["__scopeId", "data-v-26068803"]]), Ns = [
3696
3702
  {
3697
3703
  path: "/",
3698
- component: Ht,
3704
+ component: Kt,
3699
3705
  redirect: "/dashboard",
3700
3706
  name: "Root",
3701
3707
  meta: {
@@ -3705,49 +3711,49 @@ const Aa = /* @__PURE__ */ R(Ba, [["render", $a], ["__scopeId", "data-v-26068803
3705
3711
  {
3706
3712
  path: "dashboard",
3707
3713
  name: "Dashboard",
3708
- component: Fo,
3714
+ component: Qo,
3709
3715
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3710
3716
  }
3711
3717
  ]
3712
3718
  },
3713
3719
  {
3714
3720
  path: "/login",
3715
- component: Ta,
3721
+ component: Ps,
3716
3722
  meta: { title: "用户登录", menuType: 0 },
3717
3723
  hidden: !0
3718
3724
  },
3719
3725
  {
3720
3726
  path: "/404",
3721
- component: Aa,
3727
+ component: js,
3722
3728
  meta: { menuType: 0 },
3723
3729
  hidden: !0
3724
3730
  }
3725
- ], oe = Vn({
3726
- history: qn(),
3727
- routes: Pa
3731
+ ], oe = zn({
3732
+ history: Jn(),
3733
+ routes: Ns
3728
3734
  });
3729
- je.configure({ showSpinner: !1 });
3730
- function Ra(e) {
3735
+ Ne.configure({ showSpinner: !1 });
3736
+ function Us(e) {
3731
3737
  e.beforeEach((t, n, o) => {
3732
- je.start(), t.preHash = location.hash.replace("#", ""), o();
3738
+ Ne.start(), t.preHash = location.hash.replace("#", ""), o();
3733
3739
  }), e.afterEach((t) => {
3734
- const n = U(D);
3740
+ const n = j(M);
3735
3741
  t.matched.length > 0 && n.updateState({
3736
3742
  key: "path",
3737
3743
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3738
- }), je.done();
3744
+ }), Ne.done();
3739
3745
  });
3740
3746
  }
3741
- function La() {
3742
- return U(D).isLodeRemoteRoutes;
3747
+ function Vs() {
3748
+ return j(M).isLodeRemoteRoutes;
3743
3749
  }
3744
- function Ft() {
3745
- return V(D).whiteRoutes || [];
3750
+ function zt() {
3751
+ return V(M).whiteRoutes || [];
3746
3752
  }
3747
- function Ma() {
3748
- return U(D).token;
3753
+ function qs() {
3754
+ return j(M).token;
3749
3755
  }
3750
- class Gt {
3756
+ class Jt {
3751
3757
  type = "qrcode";
3752
3758
  flag() {
3753
3759
  }
@@ -3757,14 +3763,14 @@ class Gt {
3757
3763
  showQrCode() {
3758
3764
  }
3759
3765
  }
3760
- class or extends Gt {
3766
+ class cr extends Jt {
3761
3767
  type = "jump";
3762
3768
  client_id = "";
3763
3769
  constructor(t) {
3764
3770
  super(), this.client_id = t.client_id;
3765
3771
  }
3766
3772
  flag() {
3767
- const t = St("code");
3773
+ const t = Et("code");
3768
3774
  if (t)
3769
3775
  return {
3770
3776
  ticket: t,
@@ -3776,7 +3782,7 @@ class or extends Gt {
3776
3782
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3777
3783
  }
3778
3784
  }
3779
- class lr extends Gt {
3785
+ class ur extends Jt {
3780
3786
  type = "qrcode";
3781
3787
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3782
3788
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3789,7 +3795,7 @@ class lr extends Gt {
3789
3795
  super();
3790
3796
  }
3791
3797
  flag() {
3792
- const t = St("code");
3798
+ const t = Et("code");
3793
3799
  if (t)
3794
3800
  return {
3795
3801
  ticket: t,
@@ -3798,67 +3804,67 @@ class lr extends Gt {
3798
3804
  }
3799
3805
  showQrCode() {
3800
3806
  const t = (l) => {
3801
- const a = {
3807
+ const s = {
3802
3808
  appid: this.appid,
3803
3809
  redirect_uri: encodeURIComponent(this.redirectUri)
3804
3810
  };
3805
- return se(this.reloadUrl, a) + "&" + On(l || {});
3811
+ return ae(this.reloadUrl, s) + "&" + Mn(l || {});
3806
3812
  }, n = () => {
3807
3813
  const l = {
3808
3814
  goto: encodeURIComponent(t()),
3809
3815
  style: encodeURIComponent(this.style)
3810
3816
  };
3811
- return se(this.qrCodeUrl, l);
3817
+ return ae(this.qrCodeUrl, l);
3812
3818
  }, o = (l) => {
3813
- const { origin: a, data: s } = l;
3814
- a === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: s }));
3819
+ const { origin: s, data: a } = l;
3820
+ s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
3815
3821
  };
3816
- this.iframe.src = n(), Bn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3822
+ this.iframe.src = n(), Ln({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3817
3823
  "message",
3818
3824
  (l) => o(l),
3819
3825
  !1
3820
3826
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
3821
3827
  }
3822
3828
  }
3823
- const Da = {};
3824
- function ja() {
3825
- return H(V(D).sso || {}, Da);
3829
+ const Hs = {};
3830
+ function Fs() {
3831
+ return H(V(M).sso || {}, Hs);
3826
3832
  }
3827
- function Na() {
3828
- const e = ja(), t = V(D).activeSsoKey || "", n = e[t];
3833
+ function Gs() {
3834
+ const e = Fs(), t = V(M).activeSsoKey || "", n = e[t];
3829
3835
  if (n !== void 0)
3830
3836
  return n();
3831
3837
  }
3832
- function Ua(e) {
3838
+ function Ks(e) {
3833
3839
  e.beforeEach(async (t, n, o) => {
3834
- if (Ft().indexOf(t.path) !== -1) {
3840
+ if (zt().indexOf(t.path) !== -1) {
3835
3841
  o();
3836
3842
  return;
3837
3843
  }
3838
- if (Ma()) {
3844
+ if (qs()) {
3839
3845
  t.query?.redirect ? o(t.query?.redirect) : o();
3840
3846
  return;
3841
3847
  }
3842
- const a = t.query.redirect || t.path, s = Na();
3843
- if (!s) {
3844
- o(`/login?redirect=${a}`);
3848
+ const s = t.query.redirect || t.path, a = Gs();
3849
+ if (!a) {
3850
+ o(`/login?redirect=${s}`);
3845
3851
  return;
3846
3852
  }
3847
- const c = s.flag(), d = U(D);
3848
- if (c && await d.login(Rn(c) ? c : { ticket: c })) {
3853
+ const c = a.flag(), d = j(M);
3854
+ if (c && await d.login(Un(c) ? c : { ticket: c })) {
3849
3855
  o();
3850
3856
  return;
3851
3857
  }
3852
- s.jumpToLoginPage(o, `/login?redirect=${a}`);
3858
+ a.jumpToLoginPage(o, `/login?redirect=${s}`);
3853
3859
  });
3854
3860
  }
3855
- const Va = {}, qa = { class: "loading preloader" };
3856
- function Ha(e, t) {
3857
- return i(), _("div", qa, [...t[0] || (t[0] = [
3858
- g("div", { class: "preloader-inner" }, null, -1)
3861
+ const zs = {}, Js = { class: "loading preloader" };
3862
+ function Ws(e, t) {
3863
+ return i(), _("div", Js, [...t[0] || (t[0] = [
3864
+ v("div", { class: "preloader-inner" }, null, -1)
3859
3865
  ])]);
3860
3866
  }
3861
- const Fa = /* @__PURE__ */ R(Va, [["render", Ha]]), Ga = {
3867
+ const Qs = /* @__PURE__ */ P(zs, [["render", Ws]]), Xs = {
3862
3868
  name: "VNotice",
3863
3869
  props: {
3864
3870
  dataApi: {
@@ -3887,127 +3893,127 @@ const Fa = /* @__PURE__ */ R(Va, [["render", Ha]]), Ga = {
3887
3893
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
3888
3894
  }
3889
3895
  };
3890
- function za(e, t, n, o, l, a) {
3891
- const s = Xe;
3896
+ function Zs(e, t, n, o, l, s) {
3897
+ const a = Xe;
3892
3898
  return i(), _("div", null, [
3893
- l.hasNotice ? (i(), h(s, X(Q({ key: 0 }, l.noticeProps)), null, 16)) : O("", !0)
3899
+ l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : $("", !0)
3894
3900
  ]);
3895
3901
  }
3896
- const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /* @__PURE__ */ z({
3902
+ const Ys = /* @__PURE__ */ P(Xs, [["render", Zs]]), ea = ["innerHTML"], ta = /* @__PURE__ */ K({
3897
3903
  __name: "PageLoad",
3898
3904
  props: {
3899
3905
  schemaHandler: { type: Function, default: (e) => e },
3900
3906
  schemaApi: { default: "" }
3901
3907
  },
3902
3908
  setup(e) {
3903
- const t = e, n = Y(), o = V(), l = U(), a = Z(), s = C(!0), c = C(!1), d = C({}), p = C(""), f = C({}), y = C([]), w = C(!1), v = k(() => l.env), T = k(() => o);
3909
+ const t = e, n = Y(), o = V(), l = j(), s = W(), a = I(!0), c = I(!1), d = I({}), f = I(""), p = I({}), g = I([]), w = I(!1), y = k(() => l.env), T = k(() => o);
3904
3910
  return Fe(() => {
3905
- const I = a.path.split("/").filter((S) => S), b = I.length > 1 ? I.slice(0, I.length - 1).join("/") : I[0], E = "/schema" + a.meta.path, A = { params: a.params };
3911
+ const B = s.path.split("/").filter((S) => S), b = B.length > 1 ? B.slice(0, B.length - 1).join("/") : B[0], E = "/schema" + s.meta.path, A = { params: s.params };
3906
3912
  (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, A).then(({ data: S }) => {
3907
- s.value = !1, ie(S) && (S.notice !== void 0 && (c.value = !0, Ke(S.notice) ? d.value = { title: S.notice } : ie(S.notice) && (d.value = S.notice, p.value = S.notice.noticeApi), delete S.notice), y.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), f.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: a.path, json: f.value });
3913
+ a.value = !1, ie(S) && (S.notice !== void 0 && (c.value = !0, ze(S.notice) ? d.value = { title: S.notice } : ie(S.notice) && (d.value = S.notice, f.value = S.notice.noticeApi), delete S.notice), g.value = S.ownerNames || [], w.value = S.serviceOffLine || !1), p.value = t.schemaHandler(S, b), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: p.value });
3908
3914
  });
3909
- }), (I, b) => {
3915
+ }), (B, b) => {
3910
3916
  const E = Xe;
3911
- return i(), _($, null, [
3912
- m(y).length > 0 ? (i(), h(E, {
3917
+ return i(), _(O, null, [
3918
+ m(g).length > 0 ? (i(), h(E, {
3913
3919
  key: 0,
3914
- title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
3920
+ title: `该页面功能对应开发: [ ${m(g).join(", ")} ] 有问题可直接企微反馈`,
3915
3921
  type: "info",
3916
3922
  style: { margin: "0 0 20px 0" },
3917
3923
  closable: !1
3918
- }, null, 8, ["title"])) : O("", !0),
3919
- m(v) === "prod" && m(w) ? (i(), _("div", {
3924
+ }, null, 8, ["title"])) : $("", !0),
3925
+ m(y) === "prod" && m(w) ? (i(), _("div", {
3920
3926
  key: 1,
3921
3927
  class: "offline-notice",
3922
3928
  innerHTML: m(w) === !0 ? m(T).serviceOffLineNotice : m(w)
3923
- }, null, 8, Ja)) : (i(), _($, { key: 2 }, [
3924
- m(c) ? (i(), h(Ka, {
3929
+ }, null, 8, ea)) : (i(), _(O, { key: 2 }, [
3930
+ m(c) ? (i(), h(Ys, {
3925
3931
  key: 0,
3926
3932
  notice: m(d),
3927
3933
  style: { margin: "0 0 20px 0" },
3928
- "data-api": m(p)
3929
- }, null, 8, ["notice", "data-api"])) : O("", !0),
3930
- m(s) ? (i(), h(Fa, { key: 1 })) : de(I.$slots, "default", X(Q({ key: 2 }, m(f))), void 0, !0)
3934
+ "data-api": m(f)
3935
+ }, null, 8, ["notice", "data-api"])) : $("", !0),
3936
+ m(a) ? (i(), h(Qs, { key: 1 })) : de(B.$slots, "default", Z(X({ key: 2 }, m(p))), void 0, !0)
3931
3937
  ], 64))
3932
3938
  ], 64);
3933
3939
  };
3934
3940
  }
3935
- }), _e = /* @__PURE__ */ R(Wa, [["__scopeId", "data-v-e330fdc7"]]), zt = {
3941
+ }), ve = /* @__PURE__ */ P(ta, [["__scopeId", "data-v-e330fdc7"]]), Wt = {
3936
3942
  __name: "table",
3937
3943
  setup(e) {
3938
3944
  const t = (n, o) => {
3939
3945
  if (n.orderBy) {
3940
- const a = {
3946
+ const s = {
3941
3947
  prop: n.orderBy.field,
3942
3948
  order: n.orderBy.mod === "desc" ? "descending" : "ascending"
3943
3949
  };
3944
- n.tableProps = H(n.tableProps, { defaultSort: a });
3950
+ n.tableProps = H(n.tableProps, { defaultSort: s });
3945
3951
  }
3946
3952
  const l = Object.keys(he.props);
3947
- return Object.keys(n).forEach((a) => {
3948
- l.indexOf(a) === -1 && delete n[a];
3953
+ return Object.keys(n).forEach((s) => {
3954
+ l.indexOf(s) === -1 && delete n[s];
3949
3955
  }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
3950
3956
  };
3951
- return (n, o) => (i(), h(_e, { "schema-handler": t }, {
3957
+ return (n, o) => (i(), h(ve, { "schema-handler": t }, {
3952
3958
  default: r((l) => [
3953
- u(m(he), X(re(l)), null, 16)
3959
+ u(m(he), Z(re(l)), null, 16)
3954
3960
  ]),
3955
3961
  _: 1
3956
3962
  }));
3957
3963
  }
3958
- }, Ve = {
3964
+ }, qe = {
3959
3965
  __name: "form",
3960
3966
  setup(e) {
3961
- const t = Z(), n = Ce(), o = (c, d) => {
3962
- const p = Object.keys(ne.props);
3963
- return Object.keys(c).forEach((f) => {
3964
- if (p.indexOf(f) === -1) {
3965
- delete c[f];
3967
+ const t = W(), n = Te(), o = (c, d) => {
3968
+ const f = Object.keys(ne.props);
3969
+ return Object.keys(c).forEach((p) => {
3970
+ if (f.indexOf(p) === -1) {
3971
+ delete c[p];
3966
3972
  return;
3967
3973
  }
3968
- /.*Api$/.test(f) && (c[f] = se(c[f], t.params));
3974
+ /.*Api$/.test(p) && (c[p] = ae(c[p], t.params));
3969
3975
  }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${d}/update/${t.params.id}`, c.getApi || (c.getApi = `/${d}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${d}/create`)), c = H({
3970
3976
  saveApi: d + "/save",
3971
3977
  afterSubmit: "goback",
3972
3978
  afterReset: "goback",
3973
3979
  mod: t.params.id ? "edit" : "create"
3974
3980
  }, c), c;
3975
- }, l = C(0), a = () => {
3976
- Zt.request({
3981
+ }, l = I(0), s = () => {
3982
+ tn.request({
3977
3983
  url: "/form_mutex",
3978
3984
  method: "get",
3979
3985
  params: {
3980
3986
  path: t.fullPath
3981
3987
  }
3982
3988
  }).then((c) => {
3983
- c.data && (clearInterval(l.value), It.alert(`${c.data}`, "操作提醒", {
3989
+ c.data && (clearInterval(l.value), Bt.alert(`${c.data}`, "操作提醒", {
3984
3990
  showClose: !1,
3985
3991
  showCancelButton: !0,
3986
3992
  confirmButtonText: "返回",
3987
3993
  cancelButtonText: "刷新",
3988
3994
  callback: (d) => {
3989
- d === "cancel" ? location.reload() : s();
3995
+ d === "cancel" ? location.reload() : a();
3990
3996
  }
3991
3997
  }));
3992
3998
  });
3993
3999
  };
3994
- Ee(() => {
4000
+ Ie(() => {
3995
4001
  const c = V();
3996
- t.params.id !== void 0 && c.formMutex && (a(), l.value = setInterval(a, 2e3));
3997
- }), bn(() => {
4002
+ t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
4003
+ }), Sn(() => {
3998
4004
  clearInterval(l.value);
3999
4005
  });
4000
- function s() {
4006
+ function a() {
4001
4007
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
4002
4008
  }
4003
- return (c, d) => (i(), h(_e, { "schema-handler": o }, {
4004
- default: r((p) => [
4005
- u(m(ne), X(re(p)), null, 16)
4009
+ return (c, d) => (i(), h(ve, { "schema-handler": o }, {
4010
+ default: r((f) => [
4011
+ u(m(ne), Z(re(f)), null, 16)
4006
4012
  ]),
4007
4013
  _: 1
4008
4014
  }));
4009
4015
  }
4010
- }, Qa = z({
4016
+ }, na = K({
4011
4017
  name: "VTree",
4012
4018
  components: {
4013
4019
  VForm: ne
@@ -4081,7 +4087,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
4081
4087
  return ["", "新建", "编辑"][this.type];
4082
4088
  },
4083
4089
  formProps() {
4084
- let e = se(this.$props.saveApi, this.formData);
4090
+ let e = ae(this.$props.saveApi, this.formData);
4085
4091
  return this.type === 1 && (e = this.$props.createApi), {
4086
4092
  saveApi: e,
4087
4093
  getApi: this.$props.getApi,
@@ -4106,7 +4112,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
4106
4112
  },
4107
4113
  append(e, t) {
4108
4114
  this.type = 1;
4109
- const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...$n(this.$props.props?.effectData, e) };
4115
+ const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...Dn(this.$props.props?.effectData, e) };
4110
4116
  e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
4111
4117
  },
4112
4118
  canAppend(e, t) {
@@ -4120,7 +4126,7 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
4120
4126
  remove(e) {
4121
4127
  this.$http.request({
4122
4128
  method: "DELETE",
4123
- url: se(this.$props.deleteApi, e)
4129
+ url: ae(this.$props.deleteApi, e)
4124
4130
  }).then(({ code: t }) => {
4125
4131
  t !== 0 ? this.$message.error("操作失败") : this.loadTree();
4126
4132
  });
@@ -4140,46 +4146,46 @@ const Ka = /* @__PURE__ */ R(Ga, [["render", za]]), Ja = ["innerHTML"], Wa = /*
4140
4146
  const l = e.data;
4141
4147
  l.pid = t.data.id, this.$http.request({
4142
4148
  method: "POST",
4143
- url: se(this.$props.saveApi, l),
4149
+ url: ae(this.$props.saveApi, l),
4144
4150
  data: l
4145
- }).then(({ code: a }) => {
4146
- a !== 0 && this.$message.error("操作失败");
4151
+ }).then(({ code: s }) => {
4152
+ s !== 0 && this.$message.error("操作失败");
4147
4153
  });
4148
4154
  }
4149
4155
  }
4150
- }), Xa = { class: "card-header" }, Za = { class: "tree-action" }, Ya = { key: 0 }, es = {
4156
+ }), oa = { class: "card-header" }, la = { class: "tree-action" }, sa = { key: 0 }, aa = {
4151
4157
  key: 1,
4152
4158
  style: { color: "#E6A23C" }
4153
- }, ts = { class: "card-header" };
4154
- function ns(e, t, n, o, l, a) {
4155
- const s = me, c = ro, d = Ze, p = Te, f = L("v-form"), y = be;
4156
- return i(), h(y, {
4159
+ }, ia = { class: "card-header" };
4160
+ function ra(e, t, n, o, l, s) {
4161
+ const a = me, c = ho, d = Ze, f = Be, p = L("v-form"), g = ye;
4162
+ return i(), h(g, {
4157
4163
  class: "tree-box",
4158
4164
  gutter: 20
4159
4165
  }, {
4160
4166
  default: r(() => [
4161
- u(p, {
4167
+ u(f, {
4162
4168
  span: 8,
4163
4169
  class: "tree-tree"
4164
4170
  }, {
4165
4171
  default: r(() => [
4166
4172
  u(d, { shadow: "never" }, {
4167
4173
  header: r(() => [
4168
- g("div", Xa, [
4169
- t[3] || (t[3] = g("span", null, "列表", -1)),
4170
- u(s, {
4174
+ v("div", oa, [
4175
+ t[3] || (t[3] = v("span", null, "列表", -1)),
4176
+ u(a, {
4171
4177
  type: "text",
4172
4178
  onClick: t[0] || (t[0] = () => e.appendNew())
4173
4179
  }, {
4174
4180
  default: r(() => [...t[2] || (t[2] = [
4175
- B("添加", -1)
4181
+ C("添加", -1)
4176
4182
  ])]),
4177
4183
  _: 1
4178
4184
  })
4179
4185
  ])
4180
4186
  ]),
4181
4187
  default: r(() => [
4182
- (e.treeData || []).length > 0 ? (i(), h(c, Q({
4188
+ (e.treeData || []).length > 0 ? (i(), h(c, X({
4183
4189
  key: 0,
4184
4190
  style: { height: "100vh" },
4185
4191
  data: e.treeData,
@@ -4190,55 +4196,55 @@ function ns(e, t, n, o, l, a) {
4190
4196
  "allow-drop": e.allowDrop,
4191
4197
  onNodeDragEnd: e.handleDragEnd
4192
4198
  }), {
4193
- default: r(({ node: w, data: v }) => [
4194
- g("span", Za, [
4195
- v[e.localTreeProps.props.label] ? (i(), _("span", Ya, P(v[e.localTreeProps.props.label]), 1)) : (i(), _("span", es, "请在右侧表单中修改 --> ")),
4196
- g("span", null, [
4197
- v[e.localTreeProps.props.label] ? (i(), h(s, {
4199
+ default: r(({ node: w, data: y }) => [
4200
+ v("span", la, [
4201
+ y[e.localTreeProps.props.label] ? (i(), _("span", sa, R(y[e.localTreeProps.props.label]), 1)) : (i(), _("span", aa, "请在右侧表单中修改 --> ")),
4202
+ v("span", null, [
4203
+ y[e.localTreeProps.props.label] ? (i(), h(a, {
4198
4204
  key: 0,
4199
4205
  class: "button",
4200
4206
  type: "text",
4201
- onClick: () => e.onclick(v)
4207
+ onClick: () => e.onclick(y)
4202
4208
  }, {
4203
4209
  default: r(() => [...t[4] || (t[4] = [
4204
- B("编辑", -1)
4210
+ C("编辑", -1)
4205
4211
  ])]),
4206
4212
  _: 1
4207
- }, 8, ["onClick"])) : O("", !0),
4208
- e.canAppend(v, w) ? (i(), h(s, {
4213
+ }, 8, ["onClick"])) : $("", !0),
4214
+ e.canAppend(y, w) ? (i(), h(a, {
4209
4215
  key: 1,
4210
4216
  class: "button",
4211
4217
  type: "text",
4212
- onClick: () => e.append(v, w)
4218
+ onClick: () => e.append(y, w)
4213
4219
  }, {
4214
4220
  default: r(() => [...t[5] || (t[5] = [
4215
- B("添加", -1)
4221
+ C("添加", -1)
4216
4222
  ])]),
4217
4223
  _: 1
4218
- }, 8, ["onClick"])) : O("", !0),
4219
- v.children === void 0 || v.children.length === 0 ? (i(), h(s, {
4224
+ }, 8, ["onClick"])) : $("", !0),
4225
+ y.children === void 0 || y.children.length === 0 ? (i(), h(a, {
4220
4226
  key: 2,
4221
4227
  class: "button",
4222
4228
  type: "text",
4223
- onClick: () => e.remove(v)
4229
+ onClick: () => e.remove(y)
4224
4230
  }, {
4225
4231
  default: r(() => [...t[6] || (t[6] = [
4226
- B("删除", -1)
4232
+ C("删除", -1)
4227
4233
  ])]),
4228
4234
  _: 1
4229
- }, 8, ["onClick"])) : O("", !0)
4235
+ }, 8, ["onClick"])) : $("", !0)
4230
4236
  ])
4231
4237
  ])
4232
4238
  ]),
4233
4239
  _: 1
4234
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : O("", !0)
4240
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : $("", !0)
4235
4241
  ]),
4236
4242
  _: 1
4237
4243
  })
4238
4244
  ]),
4239
4245
  _: 1
4240
4246
  }),
4241
- u(p, {
4247
+ u(f, {
4242
4248
  span: 16,
4243
4249
  class: "tree-form"
4244
4250
  }, {
@@ -4248,19 +4254,19 @@ function ns(e, t, n, o, l, a) {
4248
4254
  shadow: "never"
4249
4255
  }, {
4250
4256
  header: r(() => [
4251
- g("div", ts, [
4252
- g("span", null, P(e.formType), 1)
4257
+ v("div", ia, [
4258
+ v("span", null, R(e.formType), 1)
4253
4259
  ])
4254
4260
  ]),
4255
4261
  default: r(() => [
4256
- (i(), h(f, Q({
4262
+ (i(), h(p, X({
4257
4263
  key: e.formkey,
4258
4264
  modelValue: e.formData,
4259
4265
  "onUpdate:modelValue": t[1] || (t[1] = (w) => e.formData = w)
4260
4266
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4261
4267
  ]),
4262
4268
  _: 1
4263
- })) : O("", !0)
4269
+ })) : $("", !0)
4264
4270
  ]),
4265
4271
  _: 1
4266
4272
  })
@@ -4268,34 +4274,34 @@ function ns(e, t, n, o, l, a) {
4268
4274
  _: 1
4269
4275
  });
4270
4276
  }
4271
- const bt = /* @__PURE__ */ R(Qa, [["render", ns]]), os = {
4277
+ const yt = /* @__PURE__ */ P(na, [["render", ra]]), ca = {
4272
4278
  __name: "tree",
4273
4279
  setup(e) {
4274
4280
  const t = (n, o) => {
4275
- const l = Object.keys(bt.props);
4276
- return Object.keys(n).forEach((a) => {
4277
- l.indexOf(a) === -1 && delete n[a];
4281
+ const l = Object.keys(yt.props);
4282
+ return Object.keys(n).forEach((s) => {
4283
+ l.indexOf(s) === -1 && delete n[s];
4278
4284
  }), n;
4279
4285
  };
4280
- return (n, o) => (i(), h(_e, { "schema-handler": t }, {
4286
+ return (n, o) => (i(), h(ve, { "schema-handler": t }, {
4281
4287
  default: r((l) => [
4282
- u(bt, X(re(l)), null, 16)
4288
+ u(yt, Z(re(l)), null, 16)
4283
4289
  ]),
4284
4290
  _: 1
4285
4291
  }));
4286
4292
  }
4287
- }, De = {
4293
+ }, je = {
4288
4294
  __name: "container",
4289
4295
  setup(e) {
4290
- const t = C(0);
4291
- return Hn(() => {
4296
+ const t = I(0);
4297
+ return Wn(() => {
4292
4298
  t.value++;
4293
4299
  }), (n, o) => {
4294
4300
  const l = L("router-view");
4295
4301
  return i(), h(l);
4296
4302
  };
4297
4303
  }
4298
- }, ls = {
4304
+ }, ua = {
4299
4305
  title: {
4300
4306
  text: ""
4301
4307
  },
@@ -4324,34 +4330,34 @@ const bt = /* @__PURE__ */ R(Qa, [["render", ns]]), os = {
4324
4330
  },
4325
4331
  series: []
4326
4332
  };
4327
- function as(e, t, n) {
4333
+ function da(e, t, n) {
4328
4334
  if (n.length === 0)
4329
4335
  return {};
4330
- let o = H({}, ls);
4331
- if (o.title.text = e, Ke(t)) {
4332
- const l = [], a = Object.keys(n[0]);
4333
- let s = a[0], c = a.filter((p, f) => f > 0), d = t;
4336
+ let o = H({}, ua);
4337
+ if (o.title.text = e, ze(t)) {
4338
+ const l = [], s = Object.keys(n[0]);
4339
+ let a = s[0], c = s.filter((f, p) => p > 0), d = t;
4334
4340
  if (t.indexOf(":") > -1) {
4335
- const p = t.split(":"), f = p[1].split(",");
4336
- d = p[0], s = f[0], c = f.filter((y, w) => w > 0);
4341
+ const f = t.split(":"), p = f[1].split(",");
4342
+ d = f[0], a = p[0], c = p.filter((g, w) => w > 0);
4337
4343
  }
4338
- c.forEach((p) => {
4339
- const f = [];
4340
- n.forEach((y) => {
4341
- f.push(y[p]);
4344
+ c.forEach((f) => {
4345
+ const p = [];
4346
+ n.forEach((g) => {
4347
+ p.push(g[f]);
4342
4348
  }), o.series.push({
4343
- name: p,
4349
+ name: f,
4344
4350
  type: d,
4345
4351
  smooth: !0,
4346
- data: f
4347
- }), o.legend.data.push(p);
4348
- }), n.forEach((p) => {
4349
- l.push(p[s]);
4352
+ data: p
4353
+ }), o.legend.data.push(f);
4354
+ }), n.forEach((f) => {
4355
+ l.push(f[a]);
4350
4356
  }), o.xAxis.data = l;
4351
4357
  }
4352
4358
  return ie(t) && (o = H(o, t)), o;
4353
4359
  }
4354
- const ss = z({
4360
+ const pa = K({
4355
4361
  name: "NumberPanel",
4356
4362
  props: {
4357
4363
  dataList: {
@@ -4362,27 +4368,27 @@ const ss = z({
4362
4368
  data() {
4363
4369
  return {};
4364
4370
  }
4365
- }), is = { class: "number-panel-title" }, rs = { class: "number" }, cs = { class: "name" };
4366
- function us(e, t, n, o, l, a) {
4367
- return i(!0), _($, null, N(e.dataList, (s, c) => (i(), _("span", { key: c }, [
4368
- g("div", is, [
4369
- (i(!0), _($, null, N(Object.keys(s), (d, p) => (i(), _("div", {
4370
- key: p,
4371
+ }), fa = { class: "number-panel-title" }, ma = { class: "number" }, ha = { class: "name" };
4372
+ function ba(e, t, n, o, l, s) {
4373
+ return i(!0), _(O, null, U(e.dataList, (a, c) => (i(), _("span", { key: c }, [
4374
+ v("div", fa, [
4375
+ (i(!0), _(O, null, U(Object.keys(a), (d, f) => (i(), _("div", {
4376
+ key: f,
4371
4377
  class: "title-inner"
4372
4378
  }, [
4373
- g("p", rs, P(s[d]), 1),
4374
- g("p", cs, P(d), 1)
4379
+ v("p", ma, R(a[d]), 1),
4380
+ v("p", ha, R(d), 1)
4375
4381
  ]))), 128))
4376
4382
  ])
4377
4383
  ]))), 128);
4378
4384
  }
4379
- const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293"]]), ps = {
4385
+ const ya = /* @__PURE__ */ P(pa, [["render", ba], ["__scopeId", "data-v-cc0d8293"]]), _a = {
4380
4386
  components: {
4381
- Chart: uo,
4382
- Md: _o,
4387
+ Chart: yo,
4388
+ Md: xo,
4383
4389
  Json: Ye,
4384
4390
  Table: he,
4385
- Number: ds,
4391
+ Number: ya,
4386
4392
  Html: ""
4387
4393
  },
4388
4394
  props: {
@@ -4403,20 +4409,20 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
4403
4409
  };
4404
4410
  if (l === "chart")
4405
4411
  return {
4406
- options: as(o.id, o.chart, o.data)
4412
+ options: da(o.id, o.chart, o.data)
4407
4413
  };
4408
4414
  if (l === "md")
4409
4415
  return {
4410
4416
  source: o.data
4411
4417
  };
4412
4418
  if (l === "table") {
4413
- if (!wt(o.data))
4419
+ if (!It(o.data))
4414
4420
  return { showPagination: !1 };
4415
- const a = [];
4416
- return o.data[0] && Object.keys(o.data[0]).forEach((s, c) => {
4417
- a.push({ field: s, label: s });
4421
+ const s = [];
4422
+ return o.data[0] && Object.keys(o.data[0]).forEach((a, c) => {
4423
+ s.push({ field: a, label: a });
4418
4424
  }), {
4419
- headers: a,
4425
+ headers: s,
4420
4426
  list: o.data,
4421
4427
  showPagination: !1
4422
4428
  };
@@ -4427,21 +4433,21 @@ const ds = /* @__PURE__ */ R(ss, [["render", us], ["__scopeId", "data-v-cc0d8293
4427
4433
  };
4428
4434
  }
4429
4435
  };
4430
- function fs(e, t, n, o, l, a) {
4431
- const s = Ze, c = yn("resize");
4432
- return ve((i(), h(s, {
4436
+ function va(e, t, n, o, l, s) {
4437
+ const a = Ze, c = wn("resize");
4438
+ return ge((i(), h(a, {
4433
4439
  shadow: "never",
4434
4440
  class: "part"
4435
4441
  }, {
4436
4442
  default: r(() => [
4437
- (i(), h(ze(o.comptype()), X(re(o.compprops(n.option))), null, 16))
4443
+ (i(), h(Ke(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
4438
4444
  ]),
4439
4445
  _: 1
4440
4446
  })), [
4441
4447
  [c, !0]
4442
4448
  ]);
4443
4449
  }
4444
- const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1"]]), hs = /* @__PURE__ */ z({
4450
+ const ga = /* @__PURE__ */ P(_a, [["render", va], ["__scopeId", "data-v-a5a65cc1"]]), ka = /* @__PURE__ */ K({
4445
4451
  __name: "index",
4446
4452
  props: {
4447
4453
  filter: {
@@ -4454,13 +4460,13 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4454
4460
  }
4455
4461
  },
4456
4462
  setup(e) {
4457
- const t = Z();
4458
- Ee(() => {
4463
+ const t = W();
4464
+ Ie(() => {
4459
4465
  });
4460
- const n = e, o = C({});
4466
+ const n = e, o = I({});
4461
4467
  Fe(() => {
4462
- n.filter?.forEach((f) => {
4463
- f.default !== null && (o.value[f.field] = f.default);
4468
+ n.filter?.forEach((p) => {
4469
+ p.default !== null && (o.value[p.field] = p.default);
4464
4470
  });
4465
4471
  });
4466
4472
  const l = {
@@ -4473,23 +4479,23 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4473
4479
  cancelButton: {
4474
4480
  text: "重置"
4475
4481
  }
4476
- }, a = C(1), s = C(n.filter), c = C(n.dataPart), d = k(() => {
4477
- let f = t.params.id;
4478
- if (!f) {
4479
- const y = t.path.split("/");
4480
- f = y[y.length - 1];
4482
+ }, s = I(1), a = I(n.filter), c = I(n.dataPart), d = k(() => {
4483
+ let p = t.params.id;
4484
+ if (!p) {
4485
+ const g = t.path.split("/");
4486
+ p = g[g.length - 1];
4481
4487
  }
4482
- return "/focusbi_report/view/" + f;
4483
- }), p = (f) => {
4484
- Zt.get(d.value, { params: f }).then(({ data: y }) => {
4485
- s.value = y.filter, c.value = y.dataPart, a.value++;
4488
+ return "/focusbi_report/view/" + p;
4489
+ }), f = (p) => {
4490
+ tn.get(d.value, { params: p }).then(({ data: g }) => {
4491
+ a.value = g.filter, c.value = g.dataPart, s.value++;
4486
4492
  });
4487
4493
  };
4488
- return (f, y) => {
4489
- const w = Ze, v = Te, T = Xe, I = be;
4490
- return i(), h(I, null, {
4494
+ return (p, g) => {
4495
+ const w = Ze, y = Be, T = Xe, B = ye;
4496
+ return i(), h(B, null, {
4491
4497
  default: r(() => [
4492
- m(s).length > 0 ? (i(), h(v, {
4498
+ m(a).length > 0 ? (i(), h(y, {
4493
4499
  key: 0,
4494
4500
  span: 24
4495
4501
  }, {
@@ -4501,22 +4507,22 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4501
4507
  default: r(() => [
4502
4508
  u(m(ne), {
4503
4509
  modelValue: m(o),
4504
- "onUpdate:modelValue": y[0] || (y[0] = (b) => Ge(o) ? o.value = b : null),
4505
- "form-items": m(s),
4510
+ "onUpdate:modelValue": g[0] || (g[0] = (b) => Ge(o) ? o.value = b : null),
4511
+ "form-items": m(a),
4506
4512
  options: l,
4507
- onSubmit: p
4513
+ onSubmit: f
4508
4514
  }, null, 8, ["modelValue", "form-items"])
4509
4515
  ]),
4510
4516
  _: 1
4511
4517
  })
4512
4518
  ]),
4513
4519
  _: 1
4514
- })) : O("", !0),
4515
- u(v, { span: 24 }, {
4520
+ })) : $("", !0),
4521
+ u(y, { span: 24 }, {
4516
4522
  default: r(() => [
4517
- u(I, { gutter: 20 }, {
4523
+ u(B, { gutter: 20 }, {
4518
4524
  default: r(() => [
4519
- (i(!0), _($, null, N(m(c), (b, E) => (i(), h(v, {
4525
+ (i(!0), _(O, null, U(m(c), (b, E) => (i(), h(y, {
4520
4526
  key: E,
4521
4527
  span: b.col || 24
4522
4528
  }, {
@@ -4527,11 +4533,11 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4527
4533
  type: "error"
4528
4534
  }, {
4529
4535
  default: r(() => [
4530
- B(P(b.errMsg), 1)
4536
+ C(R(b.errMsg), 1)
4531
4537
  ]),
4532
4538
  _: 2
4533
- }, 1032, ["title"])) : (i(), h(ms, {
4534
- key: m(a),
4539
+ }, 1032, ["title"])) : (i(), h(ga, {
4540
+ key: m(s),
4535
4541
  option: b
4536
4542
  }, null, 8, ["option"]))
4537
4543
  ]),
@@ -4548,10 +4554,10 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4548
4554
  });
4549
4555
  };
4550
4556
  }
4551
- }), bs = {
4557
+ }), Sa = {
4552
4558
  __name: "report",
4553
4559
  setup(e) {
4554
- const t = Z(), n = k(() => {
4560
+ const t = W(), n = k(() => {
4555
4561
  let o = t.params.id;
4556
4562
  if (!o) {
4557
4563
  const l = t.path.split("/");
@@ -4559,21 +4565,21 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4559
4565
  }
4560
4566
  return "/focusbi_report/view/" + o;
4561
4567
  });
4562
- return (o, l) => (i(), h(_e, { "schema-api": m(n) }, {
4563
- default: r((a) => [
4564
- u(hs, X(re(a)), null, 16)
4568
+ return (o, l) => (i(), h(ve, { "schema-api": m(n) }, {
4569
+ default: r((s) => [
4570
+ u(ka, Z(re(s)), null, 16)
4565
4571
  ]),
4566
4572
  _: 1
4567
4573
  }, 8, ["schema-api"]));
4568
4574
  }
4569
- }, ys = (e) => u("div", null, [e.test]), _s = {
4570
- card: Nn,
4575
+ }, wa = (e) => u("div", null, [e.test]), xa = {
4576
+ card: Gn,
4571
4577
  form: ne,
4572
4578
  table: he,
4573
- test: ys,
4574
- row: jn,
4575
- col: Dn
4576
- }, vs = {
4579
+ test: wa,
4580
+ row: Fn,
4581
+ col: Hn
4582
+ }, Ea = {
4577
4583
  card: {
4578
4584
  type: "card",
4579
4585
  props: {
@@ -4594,16 +4600,16 @@ const ms = /* @__PURE__ */ R(ps, [["render", fs], ["__scopeId", "data-v-a5a65cc1
4594
4600
  }
4595
4601
  }
4596
4602
  };
4597
- function gs(e) {
4603
+ function Ia(e) {
4598
4604
  const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
4599
4605
  delete t.span;
4600
4606
  let l = {
4601
4607
  ...t,
4602
4608
  type: n[0]
4603
4609
  };
4604
- for (let a = 1; a < n.length; a++)
4610
+ for (let s = 1; s < n.length; s++)
4605
4611
  l = {
4606
- type: n[a],
4612
+ type: n[s],
4607
4613
  children: [l]
4608
4614
  };
4609
4615
  return l.span = o, ot([l]);
@@ -4620,10 +4626,10 @@ function ot(e) {
4620
4626
  return e.forEach((n) => {
4621
4627
  let o = Object.assign({}, n);
4622
4628
  if (ie(o.props?.style)) {
4623
- let s = "";
4629
+ let a = "";
4624
4630
  Object.keys(o.props?.style).forEach((c) => {
4625
- s += c + ":" + o.props?.style[c] + ";";
4626
- }), o.props.style = s;
4631
+ a += c + ":" + o.props?.style[c] + ";";
4632
+ }), o.props.style = a;
4627
4633
  }
4628
4634
  const l = {
4629
4635
  span: o.span ?? 24,
@@ -4633,82 +4639,82 @@ function ot(e) {
4633
4639
  t.children.push({
4634
4640
  type: "col",
4635
4641
  props: l,
4636
- children: gs(o)
4642
+ children: Ia(o)
4637
4643
  });
4638
4644
  return;
4639
4645
  }
4640
4646
  o = H({
4641
4647
  props: {}
4642
- }, vs[o.type] || {}, o);
4643
- const a = Kt(o.children);
4644
- a.length && (o.children = ot(a)), t.children.push({
4648
+ }, Ea[o.type] || {}, o);
4649
+ const s = Qt(o.children);
4650
+ s.length && (o.children = ot(s)), t.children.push({
4645
4651
  type: "col",
4646
4652
  props: l,
4647
4653
  children: [o]
4648
4654
  });
4649
4655
  }), [t];
4650
4656
  }
4651
- function Kt(e) {
4652
- return wt(e) ? e : ie(e) ? [e] : [];
4657
+ function Qt(e) {
4658
+ return It(e) ? e : ie(e) ? [e] : [];
4653
4659
  }
4654
- let qe = {};
4655
- const Jt = (e) => {
4656
- const t = _s[e.type] || qe[e.type] || e.type;
4657
- return vn(t, e.props, {
4658
- default: () => Kt(e.children).map((n) => Jt(n))
4660
+ let He = {};
4661
+ const Xt = (e) => {
4662
+ const t = xa[e.type] || He[e.type] || e.type;
4663
+ return En(t, e.props, {
4664
+ default: () => Qt(e.children).map((n) => Xt(n))
4659
4665
  });
4660
- }, ks = (e) => (Object.keys(qe).length === 0 && (qe = _n().appContext.components), ot(Object.values(e.schema)).map((n) => Jt(n))), Ss = {
4666
+ }, Ca = (e) => (Object.keys(He).length === 0 && (He = xn().appContext.components), ot(Object.values(e.schema)).map((n) => Xt(n))), Ta = {
4661
4667
  __name: "custom",
4662
4668
  setup(e) {
4663
- const t = C([]), n = (o, l) => (t.value = gn(o), o);
4664
- return (o, l) => (i(), h(_e, { "schema-handler": n }, {
4669
+ const t = I([]), n = (o, l) => (t.value = In(o), o);
4670
+ return (o, l) => (i(), h(ve, { "schema-handler": n }, {
4665
4671
  default: r(() => [
4666
- u(m(ks), { schema: m(t) }, null, 8, ["schema"])
4672
+ u(m(Ca), { schema: m(t) }, null, 8, ["schema"])
4667
4673
  ]),
4668
4674
  _: 1
4669
4675
  }));
4670
4676
  }
4671
4677
  };
4672
4678
  let ue = {};
4673
- function ar(e) {
4679
+ function dr(e) {
4674
4680
  ue = e;
4675
4681
  }
4676
- const ws = (e) => {
4682
+ const Ba = (e) => {
4677
4683
  const t = (n) => {
4678
4684
  const o = "./views/" + n + ".vue";
4679
- return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), De);
4685
+ return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), je);
4680
4686
  };
4681
4687
  if (e.path === "#")
4682
- return De;
4688
+ return je;
4683
4689
  switch (e.page_type) {
4684
4690
  case J.list:
4685
- return zt;
4691
+ return Wt;
4686
4692
  case J.form:
4687
- return Ve;
4693
+ return qe;
4688
4694
  case J.custom:
4689
4695
  case J.localComp:
4690
4696
  return t(e.view || "");
4691
4697
  case J.tree:
4692
- return os;
4698
+ return ca;
4693
4699
  case J.report:
4694
- return bs;
4700
+ return Sa;
4695
4701
  case J.customSchema:
4696
- return Ss;
4702
+ return Ta;
4697
4703
  }
4698
- return De;
4704
+ return je;
4699
4705
  };
4700
- function xs(e) {
4706
+ function $a(e) {
4701
4707
  let t = e.path;
4702
4708
  return e.type === G.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;
4703
4709
  }
4704
- function Es(e) {
4710
+ function Oa(e) {
4705
4711
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4706
4712
  }
4707
- const Wt = (e) => {
4713
+ const Zt = (e) => {
4708
4714
  const t = e.type !== G.page, n = {
4709
- path: xs(e),
4710
- name: e.id + "_" + Es(e) + "_" + e.path.replaceAll("/", "_"),
4711
- component: ws(e),
4715
+ path: $a(e),
4716
+ name: e.id + "_" + Oa(e) + "_" + e.path.replaceAll("/", "_"),
4717
+ component: Ba(e),
4712
4718
  meta: {
4713
4719
  id: e.id,
4714
4720
  pageId: e.id,
@@ -4720,13 +4726,13 @@ const Wt = (e) => {
4720
4726
  keepAlive: !1,
4721
4727
  role: e.role
4722
4728
  },
4723
- children: e.children ? e.children.map((o) => Wt(o)) : []
4729
+ children: e.children ? e.children.map((o) => Zt(o)) : []
4724
4730
  };
4725
4731
  if (e.page_type === J.entity) {
4726
- const o = e.path + "/list", l = e.path + "/form", a = e.path + "/:id", s = [{
4732
+ const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
4727
4733
  path: o,
4728
4734
  name: e.name + "列表" + e.id,
4729
- component: zt,
4735
+ component: Wt,
4730
4736
  meta: {
4731
4737
  id: e.id + 99999,
4732
4738
  title: "列表",
@@ -4739,7 +4745,7 @@ const Wt = (e) => {
4739
4745
  }, {
4740
4746
  path: l,
4741
4747
  name: e.name + "新建" + e.id,
4742
- component: Ve,
4748
+ component: qe,
4743
4749
  meta: {
4744
4750
  id: e.id + 99999 + 1,
4745
4751
  title: "新建",
@@ -4750,9 +4756,9 @@ const Wt = (e) => {
4750
4756
  path: e.path
4751
4757
  }
4752
4758
  }, {
4753
- path: a,
4759
+ path: s,
4754
4760
  name: e.name + "编辑" + e.id,
4755
- component: Ve,
4761
+ component: qe,
4756
4762
  meta: {
4757
4763
  id: e.id + 99999 + 2,
4758
4764
  title: "编辑",
@@ -4763,7 +4769,7 @@ const Wt = (e) => {
4763
4769
  path: e.path
4764
4770
  }
4765
4771
  }];
4766
- n.children = [...s, ...n.children];
4772
+ n.children = [...a, ...n.children];
4767
4773
  }
4768
4774
  if (n.children && n.children.length > 0) {
4769
4775
  let o = !0;
@@ -4772,16 +4778,16 @@ const Wt = (e) => {
4772
4778
  }), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
4773
4779
  n.meta && (n.meta.menuType = G.menu);
4774
4780
  let l = "/";
4775
- for (let a = 0; a < n.children.length; a++)
4776
- if (n.children[a].path.indexOf("/:") === -1) {
4777
- l = n.children[a].path;
4781
+ for (let s = 0; s < n.children.length; s++)
4782
+ if (n.children[s].path.indexOf("/:") === -1) {
4783
+ l = n.children[s].path;
4778
4784
  break;
4779
4785
  }
4780
4786
  n.redirect = l, n.path = "/" + e.id + "_DIR" + n.redirect.replaceAll("/", "_").toUpperCase();
4781
4787
  }
4782
4788
  }
4783
4789
  return n;
4784
- }, Is = (e) => {
4790
+ }, Aa = (e) => {
4785
4791
  const t = [];
4786
4792
  return e.forEach((n) => {
4787
4793
  const o = {
@@ -4790,26 +4796,26 @@ const Wt = (e) => {
4790
4796
  routes: []
4791
4797
  };
4792
4798
  n.routes.forEach((l) => {
4793
- o.routes.push(Wt(l));
4799
+ o.routes.push(Zt(l));
4794
4800
  }), t.push(o);
4795
4801
  }), t;
4796
- }, Cs = "root", yt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Ts = (e) => {
4797
- const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...yt(t), ...yt(n)];
4802
+ }, Ra = "root", _t = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], Pa = (e) => {
4803
+ const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [..._t(t), ..._t(n)];
4798
4804
  return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
4799
- }, Qt = (e) => {
4805
+ }, Yt = (e) => {
4800
4806
  const t = { ...e };
4801
- return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Qt(n))), t;
4802
- }, Bs = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, lt = (e = [], t) => t.includes(Cs) ? e.map((n) => Qt(n)) : e.reduce((n, o) => {
4803
- const l = Ts(o);
4804
- if (!Bs(l, t))
4807
+ return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Yt(n))), t;
4808
+ }, La = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, lt = (e = [], t) => t.includes(Ra) ? e.map((n) => Yt(n)) : e.reduce((n, o) => {
4809
+ const l = Pa(o);
4810
+ if (!La(l, t))
4805
4811
  return n;
4806
- const a = { ...o };
4807
- if (o.meta && (a.meta = { ...o.meta }), o.children && o.children.length) {
4808
- const s = lt(o.children, t);
4809
- s.length ? a.children = s : delete a.children;
4812
+ const s = { ...o };
4813
+ if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
4814
+ const a = lt(o.children, t);
4815
+ a.length ? s.children = a : delete s.children;
4810
4816
  }
4811
- return n.push(a), n;
4812
- }, []), Os = (e) => {
4817
+ return n.push(s), n;
4818
+ }, []), Ma = (e) => {
4813
4819
  const t = globalThis.atob(e);
4814
4820
  let n = "";
4815
4821
  for (let o = 0; o < t.length; o++) {
@@ -4821,117 +4827,117 @@ const Wt = (e) => {
4821
4827
  } catch {
4822
4828
  return decodeURIComponent(encodeURIComponent(t));
4823
4829
  }
4824
- }, $s = (e) => {
4830
+ }, Da = (e) => {
4825
4831
  const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
4826
- return typeof globalThis.atob == "function" ? Os(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
4827
- }, As = (e) => {
4832
+ return typeof globalThis.atob == "function" ? Ma(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
4833
+ }, ja = (e) => {
4828
4834
  if (!e)
4829
4835
  return null;
4830
4836
  const t = e.split(".");
4831
4837
  if (t.length < 2)
4832
4838
  return null;
4833
4839
  try {
4834
- const n = $s(t[1]);
4840
+ const n = Da(t[1]);
4835
4841
  return n ? JSON.parse(n) : null;
4836
4842
  } catch {
4837
4843
  return null;
4838
4844
  }
4839
- }, Xt = (e) => {
4840
- const t = As(e);
4845
+ }, en = (e) => {
4846
+ const t = ja(e);
4841
4847
  return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
4842
4848
  };
4843
- function Ps(e) {
4849
+ function Na(e) {
4844
4850
  e.beforeEach(async (t, n, o) => {
4845
- if (Ft().indexOf(t.path) !== -1) {
4851
+ if (zt().indexOf(t.path) !== -1) {
4846
4852
  o();
4847
4853
  return;
4848
4854
  }
4849
- if (La()) {
4855
+ if (Vs()) {
4850
4856
  o();
4851
4857
  return;
4852
4858
  }
4853
- const l = U(D);
4859
+ const l = j(M);
4854
4860
  await l.info();
4855
- const a = await l.loadRemoteRoutes(), s = Is(a), c = Xt(ye()), d = s.map((p) => {
4856
- const f = lt(p.routes, c);
4861
+ const s = await l.loadRemoteRoutes(), a = Aa(s), c = en(_e()), d = a.map((f) => {
4862
+ const p = lt(f.routes, c);
4857
4863
  return {
4858
- ...p,
4859
- routes: f
4864
+ ...f,
4865
+ routes: p
4860
4866
  };
4861
- }).filter((p) => p.routes.length > 0);
4862
- d.forEach((p) => {
4863
- p.routes.forEach((f) => {
4867
+ }).filter((f) => f.routes.length > 0);
4868
+ d.forEach((f) => {
4869
+ f.routes.forEach((p) => {
4864
4870
  e.addRoute({
4865
4871
  path: "/",
4866
- component: Ht,
4867
- children: [f]
4872
+ component: Kt,
4873
+ children: [p]
4868
4874
  });
4869
4875
  });
4870
4876
  }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
4871
4877
  });
4872
4878
  }
4873
- function Rs(e) {
4879
+ function Ua(e) {
4874
4880
  e.beforeEach(async (t, n, o) => {
4875
- const a = [V(D).title || ""], s = t.matched.length;
4876
- for (let c = s; c > s - 3; c--) {
4881
+ const s = [V(M).title || ""], a = t.matched.length;
4882
+ for (let c = a; c > a - 3; c--) {
4877
4883
  const d = t.matched[c - 1];
4878
- d?.meta?.title && a.push(d.meta.title + "");
4884
+ d?.meta?.title && s.push(d.meta.title + "");
4879
4885
  }
4880
- a.length > 1 && (document.title = a.reverse().join("-")), o();
4886
+ s.length > 1 && (document.title = s.reverse().join("-")), o();
4881
4887
  }), e.afterEach(async (t, n, o) => {
4882
- const l = Y(D);
4888
+ const l = Y(M);
4883
4889
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4884
4890
  });
4885
4891
  }
4886
- function Ls(e) {
4887
- Ua(e), Ra(e), Ps(e), Rs(e);
4892
+ function Va(e) {
4893
+ Ks(e), Us(e), Na(e), Ua(e);
4888
4894
  }
4889
- Ls(oe);
4890
- function Ms() {
4891
- return U(D).token;
4895
+ Va(oe);
4896
+ function qa() {
4897
+ return j(M).token;
4892
4898
  }
4893
- function Ds() {
4894
- return U(D).expired;
4899
+ function Ha() {
4900
+ return j(M).expired;
4895
4901
  }
4896
- function _t(e) {
4897
- jo({
4902
+ function vt(e) {
4903
+ Fo({
4898
4904
  message: e,
4899
4905
  type: "error",
4900
4906
  duration: 5 * 1e3,
4901
4907
  grouping: !0
4902
4908
  });
4903
4909
  }
4904
- const js = {
4910
+ const Fa = {
4905
4911
  onFulfilled: function(e) {
4906
4912
  e.headers = e.headers || {};
4907
- const t = Ms();
4913
+ const t = qa();
4908
4914
  return t && (e.headers["X-Token"] = t), oe.currentRoute.value.meta?.path && (e.headers["X-Path"] = oe.currentRoute.value.meta.path), e;
4909
4915
  }
4910
- }, Ns = {
4916
+ }, Ga = {
4911
4917
  onFulfilled(e) {
4912
4918
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
4913
4919
  const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
4914
4920
  if (e.data.code === 401) {
4915
- if (Ds())
4921
+ if (Ha())
4916
4922
  return;
4917
- U(D).SetExpired(), mt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4923
+ j(M).SetExpired(), ht.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4918
4924
  showClose: !1,
4919
4925
  confirmButtonText: "重新登录",
4920
4926
  showCancelButton: !0,
4921
4927
  cancelButtonText: "取消",
4922
4928
  callback: (l) => {
4923
- l === "confirm" && (At(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), U(D).SetExpired();
4929
+ l === "confirm" && (Lt(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(M).SetExpired();
4924
4930
  }
4925
4931
  });
4926
4932
  return;
4927
4933
  } else
4928
- _t(o);
4934
+ vt(o);
4929
4935
  return Promise.reject(o);
4930
4936
  }
4931
4937
  let n = e.data?.data?._message_box;
4932
- return n !== void 0 && (Ke(n) && (n = {
4938
+ return n !== void 0 && (ze(n) && (n = {
4933
4939
  message: e.data?.data?._message_box
4934
- }), mt({
4940
+ }), ht({
4935
4941
  title: "提示",
4936
4942
  type: "success",
4937
4943
  grouping: !0,
@@ -4939,28 +4945,28 @@ const js = {
4939
4945
  })), e.data;
4940
4946
  },
4941
4947
  onRejected(e) {
4942
- return Je.isCancel(e) ? Promise.reject("") : (_t(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4948
+ return Je.isCancel(e) ? Promise.reject("") : (vt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4943
4949
  }
4944
- }, Us = [
4950
+ }, Ka = [
4945
4951
  {
4946
- request: Uo,
4947
- response: Vo
4952
+ request: Ko,
4953
+ response: zo
4948
4954
  },
4949
4955
  {
4950
- request: js,
4951
- response: Ns
4956
+ request: Fa,
4957
+ response: Ga
4952
4958
  }
4953
4959
  ];
4954
- function at(e = {}) {
4955
- const t = Be.axios || {}, n = H(t, e || {}), o = Je.create({
4960
+ function st(e = {}) {
4961
+ const t = $e.axios || {}, n = H(t, e || {}), o = Je.create({
4956
4962
  ...n
4957
4963
  // adapter: (c) => cacheAdapter(c, defaultAxios)
4958
4964
  });
4959
- return Us.forEach((l) => {
4965
+ return Ka.forEach((l) => {
4960
4966
  o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
4961
4967
  }), o;
4962
4968
  }
4963
- const Zt = at(), Vs = {
4969
+ const tn = st(), za = {
4964
4970
  beforeMount(e, t) {
4965
4971
  e.clickOutsideEvent = function(n) {
4966
4972
  e === n.target || e.contains(n.target) || t.value(n, e);
@@ -4969,23 +4975,23 @@ const Zt = at(), Vs = {
4969
4975
  unmounted(e) {
4970
4976
  document.body.removeEventListener("click", e.clickOutsideEvent);
4971
4977
  }
4972
- }, le = mo(), qs = {
4978
+ }, le = go(), Ja = {
4973
4979
  mounted: (e, t) => {
4974
4980
  e !== null && (t.value, e.oncontextmenu = (n) => {
4975
4981
  n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && le.emit("right-click", { event: n, data: t.value });
4976
4982
  });
4977
4983
  }
4978
- }, Hs = {
4984
+ }, Wa = {
4979
4985
  mounted(e) {
4980
4986
  }
4981
4987
  };
4982
- function vt(e, t) {
4988
+ function gt(e, t) {
4983
4989
  let n = e[`offset${t}`], o = e.offsetParent;
4984
4990
  for (; o; )
4985
4991
  n += o[`offset${t}`], o = o.offsetParent;
4986
4992
  return n;
4987
4993
  }
4988
- const Fs = {
4994
+ const Qa = {
4989
4995
  mounted: (e, t) => {
4990
4996
  if (e === null || !t.value.dev)
4991
4997
  return;
@@ -4996,64 +5002,73 @@ const Fs = {
4996
5002
  n.classList.add("devtool-hover");
4997
5003
  const o = document.createElement("i");
4998
5004
  o.className = "devtool-item-wrapper", n.onmouseover = () => {
4999
- o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = vt(n, "Top") - 15 + "px", o.style.left = vt(n, "Left") - 15 + "px";
5005
+ o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = gt(n, "Top") - 15 + "px", o.style.left = gt(n, "Left") - 15 + "px";
5000
5006
  };
5001
5007
  const l = document.createElement("span");
5002
5008
  l.className = "dev-action-edit", l.title = "编辑";
5003
- const a = document.createElement("i");
5004
- a.className = "iconfont ra-editor1", l.appendChild(a), l.onclick = (d) => {
5009
+ const s = document.createElement("i");
5010
+ s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
5005
5011
  le.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
5006
5012
  }, o.appendChild(l);
5007
- const s = document.createElement("span");
5008
- s.className = "dev-action-del", s.title = "删除";
5013
+ const a = document.createElement("span");
5014
+ a.className = "dev-action-del", a.title = "删除";
5009
5015
  const c = document.createElement("i");
5010
- c.className = "iconfont ra-cut", s.appendChild(c), s.onclick = (d) => {
5016
+ c.className = "iconfont ra-cut", a.appendChild(c), a.onclick = (d) => {
5011
5017
  le.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
5012
- }, o.appendChild(s), n.insertBefore(o, n.firstChild);
5018
+ }, o.appendChild(a), n.insertBefore(o, n.firstChild);
5013
5019
  }
5014
- }, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5020
+ }, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5015
5021
  __proto__: null,
5016
- devtool: Fs,
5017
- outClick: Vs,
5018
- resize: Hs,
5019
- rightClick: qs
5022
+ devtool: Qa,
5023
+ outClick: za,
5024
+ resize: Wa,
5025
+ rightClick: Ja
5020
5026
  }, Symbol.toStringTag, { value: "Module" }));
5021
- let we;
5022
- function sr(e) {
5023
- return e ? at(H(Be.axios, e)) : we;
5027
+ let xe;
5028
+ const nn = [], kt = /* @__PURE__ */ new Set(), St = (e) => typeof e.name == "string" ? e.name : e.path;
5029
+ function pr(e) {
5030
+ return e ? st(H($e.axios, e)) : xe;
5024
5031
  }
5025
- function ir(e) {
5026
- const t = H(Be, e), n = kn($o), o = Zs(t), l = t.plugins || [];
5027
- l.unshift(o), l.forEach((c) => {
5028
- Xs(n, c);
5029
- }), t?.mock && Do(), we = at(t.axios), Co(n);
5030
- const a = Y(D), s = V(D);
5031
- ko(we), s.updateSettings(e?.settings || {}), a.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = we, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, po(() => ({
5032
- "X-Token": ye()
5033
- })), oe.isReady().then(() => n.mount("#app"));
5032
+ function fr(e) {
5033
+ const t = H($e, e), n = Cn(Do), o = li(t), l = t.plugins || [];
5034
+ l.unshift(o), l.forEach((d) => {
5035
+ oi(n, d);
5036
+ }), t?.mock && Ho(), xe = st(t.axios), Ro(n);
5037
+ const s = Y(M), a = V(M), c = j(M);
5038
+ Co(xe), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = xe, n.config.globalProperties.$router = oe, window.App = n, window.OmsOptions = t, _o(() => ({
5039
+ "X-Token": _e()
5040
+ })), be(() => c.token, () => {
5041
+ on();
5042
+ }, { immediate: !0 }), oe.isReady().then(() => n.mount("#app"));
5034
5043
  }
5035
- function zs(e, t = {}) {
5044
+ function Za(e, t = {}) {
5036
5045
  Object.keys(t).forEach((n) => {
5037
5046
  e.component(n, t[n]);
5038
5047
  });
5039
5048
  }
5040
- function Ks(e = []) {
5041
- const t = Xt(ye()), n = lt(e, t);
5042
- n.forEach((o) => {
5043
- oe.addRoute(o);
5044
- }), U(D).setCustomRoutes(n);
5049
+ function on() {
5050
+ const e = en(_e()), t = lt(nn, e), n = j(M), o = new Set(n.customRouter.map((s) => St(s))), l = t.filter((s) => {
5051
+ const a = St(s);
5052
+ return kt.has(a) || o.has(a) ? !1 : (kt.add(a), !0);
5053
+ });
5054
+ l.forEach((s) => {
5055
+ oe.addRoute(s);
5056
+ }), l.length && n.setCustomRoutes(l);
5057
+ }
5058
+ function Ya(e = []) {
5059
+ nn.push(...e), on();
5045
5060
  }
5046
- function Js(e, t) {
5061
+ function ei(e, t) {
5047
5062
  t.forEach((n) => {
5048
5063
  ie(n) && (n = [n]), e.use(...n);
5049
5064
  });
5050
5065
  }
5051
- function Ws(e, t = {}) {
5066
+ function ti(e, t = {}) {
5052
5067
  Object.keys(t).forEach((n) => {
5053
5068
  e.directive(n, t[n]);
5054
5069
  });
5055
5070
  }
5056
- function Qs(e = {}) {
5071
+ function ni(e = {}) {
5057
5072
  const t = ["app", "settings", "user"];
5058
5073
  Object.keys(e).forEach((n) => {
5059
5074
  if (t.indexOf(n) !== -1) {
@@ -5063,50 +5078,50 @@ function Qs(e = {}) {
5063
5078
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
5064
5079
  });
5065
5080
  }
5066
- function Xs(e, t) {
5067
- zs(e, t.components || {}), Ks(t.routes || []), Js(e, t.use || []), Ws(e, t.directives || {}), Qs(t.storeModules || {}), jt(t.mockApis || []);
5081
+ function oi(e, t) {
5082
+ Za(e, t.components || {}), Ya(t.routes || []), ei(e, t.use || []), ti(e, t.directives || {}), ni(t.storeModules || {}), Vt(t.mockApis || []);
5068
5083
  }
5069
- function Zs(e) {
5084
+ function li(e) {
5070
5085
  return {
5071
- components: { VIcon: fo },
5072
- directives: Gs,
5086
+ components: { VIcon: vo },
5087
+ directives: Xa,
5073
5088
  use: [
5074
5089
  oe,
5075
- [Ln, { locale: xt, ...e.settings?.ElementPlus }]
5090
+ [Vn, { locale: Ct, ...e.settings?.ElementPlus }]
5076
5091
  ]
5077
5092
  };
5078
5093
  }
5079
5094
  export {
5080
- Gt as BaseSso,
5081
- De as Container,
5082
- lr as DingTalk,
5083
- or as Github,
5084
- Ht as Layout,
5095
+ Jt as BaseSso,
5096
+ je as Container,
5097
+ ur as DingTalk,
5098
+ cr as Github,
5099
+ Kt as Layout,
5085
5100
  G as MenuType,
5086
- jo as Message,
5087
- mt as MessageBox,
5101
+ Fo as Message,
5102
+ ht as MessageBox,
5088
5103
  J as PageType,
5089
- ja as allSso,
5090
- Eo as appState,
5091
- Io as builderSchemaState,
5092
- ir as createAdmin,
5104
+ Fs as allSso,
5105
+ Oo as appState,
5106
+ Ao as builderSchemaState,
5107
+ fr as createAdmin,
5093
5108
  le as eventBus,
5094
- qo as getCmp,
5109
+ Jo as getCmp,
5095
5110
  Pe as getHttp,
5096
- we as http,
5097
- at as instance,
5098
- D as pinia,
5099
- ar as regViews,
5100
- nr as setCmp,
5101
- ko as setHttp,
5102
- wo as settings,
5103
- Co as setupStore,
5104
- Is as transRemoteModules,
5111
+ xe as http,
5112
+ st as instance,
5113
+ M as pinia,
5114
+ dr as regViews,
5115
+ rr as setCmp,
5116
+ Co as setHttp,
5117
+ Bo as settings,
5118
+ Ro as setupStore,
5119
+ Aa as transRemoteModules,
5105
5120
  Y as useAppStore,
5106
- tr as useBuilderSchemaStore,
5107
- sr as useHttp,
5121
+ ir as useBuilderSchemaStore,
5122
+ pr as useHttp,
5108
5123
  V as useSettingsStore,
5109
- U as useUserStore,
5124
+ j as useUserStore,
5110
5125
  dt as userState
5111
5126
  };
5112
5127
  //# sourceMappingURL=index.es.js.map