@okiss/oms 0.0.78 → 0.0.79

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 $, watch as Xt, computed as S, defineComponent as z, onBeforeMount as Ve, provide as Zt, resolveComponent as A, createBlock as h, openBlock as i, createVNode as u, createTextVNode as T, withCtx as c, TransitionGroup as Yt, createElementBlock as b, Fragment as B, renderList as j, toDisplayString as M, normalizeClass as Q, renderSlot as pe, createCommentVNode as O, mergeProps as X, toRefs as en, unref as d, isRef as qe, onMounted as Se, normalizeStyle as tn, createElementVNode as v, withKeys as lt, withModifiers as st, resolveDynamicComponent as Ue, Transition as nn, normalizeProps as Z, guardReactiveProps as re, withDirectives as ye, vModelText as Te, onUnmounted as on, resolveDirective as ln, getCurrentInstance as sn, h as an, toRaw as rn, createApp as cn } from "vue";
2
- import { normalizeTheme as de, applyDocumentTheme as un, dispatchThemeChange as pn, addNewStyle as dn, addNewStyleTag as mn, queryParams as fn, logGroup as hn, compactObject as ft, showEleByClassName as ht, waterMarker as bn, Cache as _e, isExternal as at, getQueryParam as bt, createIFrame as yn, strVarReplace as ae, obj2Param as _n, isObject as ie, isString as He, effectDataTrans as vn, isArray as yt } from "@okiss/utils";
3
- import { defineStore as xe, createPinia as gn } from "pinia";
1
+ import { ref as $, watch as tn, computed as w, defineComponent as z, onBeforeMount as Ue, provide as nn, resolveComponent as A, createBlock as h, openBlock as i, createVNode as u, createTextVNode as T, withCtx as c, TransitionGroup as on, createElementBlock as b, Fragment as O, renderList as j, toDisplayString as M, normalizeClass as Q, renderSlot as pe, createCommentVNode as B, mergeProps as X, toRefs as ln, unref as m, isRef as qe, onMounted as xe, normalizeStyle as sn, createElementVNode as v, withKeys as st, withModifiers as at, resolveDynamicComponent as He, Transition as an, normalizeProps as Z, guardReactiveProps as re, withDirectives as _e, vModelText as $e, onUnmounted as rn, resolveDirective as cn, getCurrentInstance as un, h as pn, toRaw as dn, createApp as fn } from "vue";
2
+ import { normalizeTheme as de, applyDocumentTheme as mn, dispatchThemeChange as hn, addNewStyle as bn, addNewStyleTag as yn, queryParams as _n, logGroup as vn, compactObject as bt, showEleByClassName as yt, waterMarker as gn, Cache as ve, isExternal as it, getQueryParam as _t, createIFrame as kn, strVarReplace as ae, obj2Param as Sn, isObject as ie, isString as Fe, effectDataTrans as wn, isArray as vt } from "@okiss/utils";
3
+ import { defineStore as Ee, createPinia as xn } from "pinia";
4
4
  import W from "js-cookie";
5
- import _t from "element-plus/es/locale/lang/zh-cn";
6
- import kn, { cloneDeep as x, merge as U, get as me, unset as vt, isObject as wn } from "lodash";
7
- import $e from "mockjs";
8
- import Fe from "axios";
9
- import Sn, { ElMessageBox as gt, ElMessage as xn, ElCol as En, ElRow as In, ElCard as Cn } from "element-plus";
5
+ import gt from "element-plus/es/locale/lang/zh-cn";
6
+ import En, { cloneDeep as x, merge as q, get as fe, unset as kt, isObject as In } from "lodash";
7
+ import Be from "mockjs";
8
+ import Ge from "axios";
9
+ import Cn, { ElMessageBox as St, ElMessage as Tn, ElCol as $n, ElRow as Bn, ElCard as On } 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 Y, useRouter as Ee, onBeforeRouteLeave as Tn, createRouter as $n, createWebHashHistory as On, onBeforeRouteUpdate as Bn } from "vue-router";
14
- import { ElBreadcrumb as Pn, ElBreadcrumbItem as An, ElContainer as Ln, ElRow as he, ElMain as Rn, ElAside as Mn, ElForm as kt, ElFormItem as wt, ElSelect as Ge, ElOption as ze, ElDivider as St, ElButton as we, ElCol as Ie, ElDrawer as xt, ElTooltip as Dn, ElIcon as jn, ElDropdown as Nn, ElDropdownMenu as Vn, ElDropdownItem as qn, ElMenuItem as Un, ElSubMenu as Hn, ElOptionGroup as Fn, ElScrollbar as Gn, ElMenu as zn, ElBacktop as Kn, ElMessage as Jn, ElAlert as Ke, ElCard as Je, ElTree as Wn } from "element-plus/es";
13
+ import { useRoute as Y, useRouter as Ie, onBeforeRouteLeave as Pn, createRouter as An, createWebHashHistory as Rn, onBeforeRouteUpdate as Ln } from "vue-router";
14
+ import { ElBreadcrumb as Mn, ElBreadcrumbItem as Dn, ElContainer as jn, ElRow as he, ElMain as Nn, ElAside as Vn, ElForm as wt, ElFormItem as xt, ElSelect as ze, ElOption as Je, ElDivider as Et, ElButton as we, ElCol as Ce, ElDrawer as It, ElTooltip as Un, ElIcon as qn, ElDropdown as Hn, ElDropdownMenu as Fn, ElDropdownItem as Gn, ElMenuItem as zn, ElSubMenu as Jn, ElOptionGroup as Kn, ElScrollbar as Wn, ElMenu as Qn, ElBacktop as Xn, ElMessage as Zn, ElAlert as Ke, ElCard as We, ElTree as Yn } 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";
@@ -23,7 +23,7 @@ import "element-plus/es/components/icon/style/css";
23
23
  import "element-plus/es/components/col/style/css";
24
24
  import "element-plus/es/components/breadcrumb/style/css";
25
25
  import "element-plus/es/components/breadcrumb-item/style/css";
26
- import * as Qn from "path-to-regexp";
26
+ import * as eo from "path-to-regexp";
27
27
  import "element-plus/es/components/form/style/css";
28
28
  import "element-plus/es/components/form-item/style/css";
29
29
  import "element-plus/es/components/select/style/css";
@@ -33,25 +33,25 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
35
  import "element-plus/es/components/main/style/css";
36
- import { JsonView as We, VBtn as Qe, VForm as te, VTable as fe, VChart as Xn, setUploadHeaderHandle as Zn, VIcon as Yn } from "@okiss/vbtf";
36
+ import { JsonView as Qe, VBtn as Xe, VForm as te, VTable as me, VChart as to, setUploadHeaderHandle as no, VIcon as oo } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
- import eo from "mitt";
40
- import { Moon as to, Sunny as no } from "@element-plus/icons-vue";
39
+ import lo from "mitt";
40
+ import { Moon as so, Sunny as ao } from "@element-plus/icons-vue";
41
41
  import "element-plus/es/components/scrollbar/style/css";
42
42
  import "element-plus/es/components/menu/style/css";
43
43
  import "element-plus/es/components/sub-menu/style/css";
44
44
  import "element-plus/es/components/menu-item/style/css";
45
45
  import "element-plus/es/components/option-group/style/css";
46
46
  import "element-plus/es/components/backtop/style/css";
47
- import { useEventListener as oo } from "@vueuse/core";
47
+ import { useEventListener as io } from "@vueuse/core";
48
48
  import "element-plus/es/components/alert/style/css";
49
49
  import "element-plus/es/components/card/style/css";
50
50
  import "element-plus/es/components/tree/style/css";
51
- import lo from "vue3-markdown-it";
52
- import so from "crypto-js";
51
+ import ro from "vue3-markdown-it";
52
+ import co from "crypto-js";
53
53
  import "element-plus/es/components/message/style/css";
54
- import Re from "nprogress";
54
+ import Me from "nprogress";
55
55
  import "nprogress/nprogress.css";
56
56
  String.prototype.format || (String.prototype.format = function() {
57
57
  const e = arguments;
@@ -59,29 +59,29 @@ String.prototype.format || (String.prototype.format = function() {
59
59
  return typeof e[n] < "u" ? e[n] : t;
60
60
  });
61
61
  });
62
- const Xe = "oms:token";
63
- function Ze() {
64
- return W.get(Xe) || "";
62
+ const Ze = "oms:token";
63
+ function be() {
64
+ return W.get(Ze) || "";
65
65
  }
66
- function ao(e) {
67
- const t = V(L), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
68
- return W.set(Xe, e, { expires: n });
66
+ function uo(e) {
67
+ const t = V(R), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
68
+ return W.set(Ze, e, { expires: n });
69
69
  }
70
- function Et() {
71
- return W.remove(Xe);
70
+ function Ct() {
71
+ return W.remove(Ze);
72
72
  }
73
- let It = null;
74
- function io(e) {
75
- It = e;
73
+ let Tt = null;
74
+ function po(e) {
75
+ Tt = e;
76
76
  }
77
77
  function Oe() {
78
- return It;
78
+ return Tt;
79
79
  }
80
- const ro = {
80
+ const fo = {
81
81
  baseURL: "/api",
82
82
  withCredentials: !0,
83
83
  cacheEnable: !0
84
- }, Ct = {
84
+ }, $t = {
85
85
  title: "oms",
86
86
  fixedHeader: !1,
87
87
  sidebarLogo: !0,
@@ -95,7 +95,7 @@ const ro = {
95
95
  ElementPlus: {
96
96
  size: "default",
97
97
  zIndex: 3e3,
98
- locale: _t
98
+ locale: gt
99
99
  },
100
100
  nav: [],
101
101
  whiteRoutes: ["/login"],
@@ -109,23 +109,23 @@ const ro = {
109
109
  formMutex: !0,
110
110
  captcha: !0,
111
111
  themeMode: "light"
112
- }, Ce = {
113
- axios: ro,
114
- settings: Ct,
112
+ }, Te = {
113
+ axios: fo,
114
+ settings: $t,
115
115
  plugins: [],
116
116
  mock: !1
117
- }, co = x(Ct), V = xe("settings", {
118
- state: () => ({ ...co }),
117
+ }, mo = x($t), V = Ee("settings", {
118
+ state: () => ({ ...mo }),
119
119
  actions: {
120
120
  updateSettings(e) {
121
- U(this, e);
121
+ q(this, e);
122
122
  }
123
123
  }
124
- }), it = {
124
+ }), rt = {
125
125
  name: "",
126
126
  nickname: "",
127
127
  avatar: "",
128
- token: Ze(),
128
+ token: be(),
129
129
  customRouter: [],
130
130
  remoteRouter: [],
131
131
  menuRoutes: [],
@@ -135,14 +135,14 @@ const ro = {
135
135
  path: "",
136
136
  env: "",
137
137
  expired: !1
138
- }, N = xe("user", {
139
- state: () => ({ ...it }),
138
+ }, N = Ee("user", {
139
+ state: () => ({ ...rt }),
140
140
  actions: {
141
141
  updateToken(e) {
142
- this.token = e, ao(e);
142
+ this.token = e, uo(e);
143
143
  },
144
144
  removeToken() {
145
- this.token = "", Et();
145
+ this.token = "", Ct();
146
146
  },
147
147
  updateRemoteRouter(e) {
148
148
  this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
@@ -154,7 +154,7 @@ const ro = {
154
154
  this[e] = t;
155
155
  },
156
156
  resetUser() {
157
- const e = { ...it, token: Ze() };
157
+ const e = { ...rt, token: be() };
158
158
  Object.assign(this, e);
159
159
  },
160
160
  SET_EXPIRED() {
@@ -218,7 +218,7 @@ const ro = {
218
218
  this.SET_EXPIRED();
219
219
  }
220
220
  }
221
- }), uo = {
221
+ }), ho = {
222
222
  sidebar: {
223
223
  opened: W.get("sidebarStatus") ? !!W.get("sidebarStatus") : !0,
224
224
  withoutAnimation: !1
@@ -228,8 +228,8 @@ const ro = {
228
228
  currentRouteMeta: {},
229
229
  builderSchema: {},
230
230
  baseURL: ""
231
- }, ee = xe("app", {
232
- state: () => ({ ...uo }),
231
+ }, ee = Ee("app", {
232
+ state: () => ({ ...ho }),
233
233
  actions: {
234
234
  TOGGLE_SIDEBAR() {
235
235
  this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, W.set("sidebarStatus", this.sidebar.opened ? "1" : "0");
@@ -275,11 +275,11 @@ const ro = {
275
275
  this.SET_BASE_API(e);
276
276
  }
277
277
  }
278
- }), po = {
278
+ }), bo = {
279
279
  currentCellItem: {}
280
280
  // form/sub-form 当前单元格编辑数据
281
- }, Ai = xe("builderSchema", {
282
- state: () => ({ ...po }),
281
+ }, Hi = Ee("builderSchema", {
282
+ state: () => ({ ...bo }),
283
283
  actions: {
284
284
  SET_CURRENT_CELLITEM(e) {
285
285
  this.currentCellItem = e;
@@ -288,58 +288,58 @@ const ro = {
288
288
  this.SET_CURRENT_CELLITEM(e);
289
289
  }
290
290
  }
291
- }), L = gn();
292
- function mo(e) {
293
- e.use(L);
291
+ }), R = xn();
292
+ function yo(e) {
293
+ e.use(R);
294
294
  }
295
- const Tt = "oms-theme", $t = $("light");
296
- let rt = !1, ve = null;
297
- function fo(e) {
295
+ const Bt = "oms-theme", Ot = $("light");
296
+ let ct = !1, ge = null;
297
+ function _o(e) {
298
298
  const t = de(e ?? void 0);
299
299
  if (typeof window > "u")
300
300
  return t;
301
- const n = window.localStorage?.getItem(Tt);
301
+ const n = window.localStorage?.getItem(Bt);
302
302
  return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
303
303
  }
304
- function ho(e) {
305
- typeof window < "u" && window.localStorage?.setItem(Tt, e);
304
+ function vo(e) {
305
+ typeof window < "u" && window.localStorage?.setItem(Bt, e);
306
306
  }
307
- function Be(e) {
307
+ function Pe(e) {
308
308
  const t = de(e);
309
- $t.value = t, un(t), pn(t), ho(t);
309
+ Ot.value = t, mn(t), hn(t), vo(t);
310
310
  }
311
- function bo(e) {
311
+ function go(e) {
312
312
  if (typeof window > "u" || typeof window.matchMedia != "function") {
313
- ve = null;
313
+ ge = null;
314
314
  return;
315
315
  }
316
316
  const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
317
317
  const l = o.matches ?? t.matches;
318
318
  e(l ? "dark" : "light");
319
319
  };
320
- typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), ve = () => {
321
- typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ve = null;
320
+ typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), ge = () => {
321
+ typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), ge = null;
322
322
  };
323
323
  }
324
- function Ot() {
324
+ function Pt() {
325
325
  const e = V(), t = (s) => {
326
326
  const a = de(s);
327
- e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Be(a);
327
+ e.themeMode !== a ? e.updateSettings({ themeMode: a }) : Pe(a);
328
328
  };
329
- if (!rt) {
330
- rt = !0;
331
- const s = fo(e.themeMode);
332
- de(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Be(s), Xt(
329
+ if (!ct) {
330
+ ct = !0;
331
+ const s = _o(e.themeMode);
332
+ de(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Pe(s), tn(
333
333
  () => e.themeMode,
334
334
  (a) => {
335
- Be(de(a));
335
+ Pe(de(a));
336
336
  },
337
337
  { immediate: !0 }
338
- ), ve?.(), bo((a) => {
338
+ ), ge?.(), go((a) => {
339
339
  t(a);
340
340
  });
341
341
  }
342
- const n = S(() => $t.value), o = S(() => n.value === "dark");
342
+ const n = w(() => Ot.value), o = w(() => n.value === "dark");
343
343
  return {
344
344
  themeMode: n,
345
345
  isDark: o,
@@ -349,25 +349,25 @@ function Ot() {
349
349
  }
350
350
  };
351
351
  }
352
- const yo = /* @__PURE__ */ z({
352
+ const ko = /* @__PURE__ */ z({
353
353
  __name: "App",
354
354
  setup(e) {
355
- return Ot(), Ve(() => {
355
+ return Pt(), Ue(() => {
356
356
  const t = document.getElementById("preloader");
357
- t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), dn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), mn(`.iconfont {
357
+ t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), bn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), yn(`.iconfont {
358
358
  font-size: 19px;
359
359
  font-style: normal;
360
360
  -webkit-font-smoothing: antialiased;
361
361
  font-family: iconfont !important;
362
362
  }`));
363
- }), window?.OmsOptions?.form?.vsPath && Zt("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
363
+ }), window?.OmsOptions?.form?.vsPath && nn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
364
364
  const o = A("router-view");
365
365
  return i(), h(o);
366
366
  };
367
367
  }
368
368
  });
369
369
  var ce = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ce || {});
370
- const _o = [
370
+ const So = [
371
371
  {
372
372
  type: "jump",
373
373
  text: "跳转",
@@ -424,9 +424,9 @@ const _o = [
424
424
  }
425
425
  ];
426
426
  [
427
- ...kn.cloneDeep(_o)
427
+ ...En.cloneDeep(So)
428
428
  ];
429
- const vo = {
429
+ const wo = {
430
430
  code: 0,
431
431
  data: {
432
432
  "list|0-100": [
@@ -447,7 +447,7 @@ const vo = {
447
447
  "page|1-5": 2
448
448
  }
449
449
  }
450
- }, go = { listMock: vo }, ko = [
450
+ }, xo = { listMock: wo }, Eo = [
451
451
  {
452
452
  method: ce.POST,
453
453
  url: "/login",
@@ -491,32 +491,32 @@ const vo = {
491
491
  {
492
492
  url: "/user/list",
493
493
  method: ce.GET,
494
- response: (e) => go.listMock
494
+ response: (e) => xo.listMock
495
495
  }
496
- ], wo = [
497
- ...ko
498
- ], Me = {};
499
- function Bt(e) {
496
+ ], Io = [
497
+ ...Eo
498
+ ], De = {};
499
+ function At(e) {
500
500
  e.forEach((t) => {
501
- const n = Pt(t);
502
- Me[`${t.method}::${n}`] = t;
501
+ const n = Rt(t);
502
+ De[`${t.method}::${n}`] = t;
503
503
  });
504
504
  }
505
- Bt(wo);
506
- function Pt(e) {
507
- let t = e.url, n = e.baseURL || Ce.axios?.baseURL;
505
+ At(Io);
506
+ function Rt(e) {
507
+ let t = e.url, n = e.baseURL || Te.axios?.baseURL;
508
508
  return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
509
509
  }
510
- function So() {
511
- Object.keys(Me).forEach((e) => {
512
- const t = Me[e], n = Pt(t);
513
- $e.mock(n, t.method, function(o) {
514
- const { url: l, type: s, body: a } = o, r = fn(l), p = a ? JSON.parse(a) : {}, f = t.response({ query: r, data: p }), m = $e.mock(f);
515
- return hn(l, { type: s, query: r, data: p, response: m }), $e.mock(m);
510
+ function Co() {
511
+ Object.keys(De).forEach((e) => {
512
+ const t = De[e], n = Rt(t);
513
+ Be.mock(n, t.method, function(o) {
514
+ const { url: l, type: s, body: a } = o, r = _n(l), p = a ? JSON.parse(a) : {}, d = t.response({ query: r, data: p }), f = Be.mock(d);
515
+ return vn(l, { type: s, query: r, data: p, response: f }), Be.mock(f);
516
516
  });
517
517
  });
518
518
  }
519
- const xo = xn, ct = gt, Eo = Fe.CancelToken, ge = {
519
+ const To = Tn, ut = St, $o = Ge.CancelToken, ke = {
520
520
  taskList: {},
521
521
  cacheList: /* @__PURE__ */ new Map(),
522
522
  uniqueId(e) {
@@ -552,36 +552,36 @@ const xo = xn, ct = gt, Eo = Fe.CancelToken, ge = {
552
552
  const t = this.uniqueId(e);
553
553
  return this.cacheList.delete(t);
554
554
  }
555
- }, Io = {
555
+ }, Bo = {
556
556
  onFulfilled: function(e) {
557
- return e.cacheEnable === !1 || (ge.pending(e) && ge.delTask(e), e.cancelToken = new Eo((t) => {
558
- ge.addTask(e, t);
557
+ return e.cacheEnable === !1 || (ke.pending(e) && ke.delTask(e), e.cancelToken = new $o((t) => {
558
+ ke.addTask(e, t);
559
559
  })), e;
560
560
  },
561
561
  onRejected(e) {
562
562
  return Promise.reject(e);
563
563
  }
564
- }, Co = {
564
+ }, Oo = {
565
565
  onFulfilled: function(e) {
566
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ge.addCache(e.config, e.data), e;
566
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ke.addCache(e.config, e.data), e;
567
567
  },
568
568
  onRejected(e) {
569
569
  return Promise.reject(e);
570
570
  }
571
- }, At = {};
572
- function Li(e, t) {
573
- At[e] = t;
571
+ }, Lt = {};
572
+ function Fi(e, t) {
573
+ Lt[e] = t;
574
574
  }
575
- function To(e) {
576
- return At[e];
575
+ function Po(e) {
576
+ return Lt[e];
577
577
  }
578
- const $o = /* @__PURE__ */ z({
578
+ const Ao = /* @__PURE__ */ z({
579
579
  name: "Dashboard",
580
580
  setup() {
581
- const e = To("dashboard");
581
+ const e = Po("dashboard");
582
582
  if (e)
583
583
  return () => u("span", null, [u(e, null, null)]);
584
- const t = S(() => N().name);
584
+ const t = w(() => N().name);
585
585
  return () => u("div", {
586
586
  class: "dashboard-container"
587
587
  }, [u("div", {
@@ -593,7 +593,7 @@ const $o = /* @__PURE__ */ z({
593
593
  for (const [o, l] of t)
594
594
  n[o] = l;
595
595
  return n;
596
- }, Oo = /* @__PURE__ */ P($o, [["__scopeId", "data-v-85165680"]]), Bo = {
596
+ }, Ro = /* @__PURE__ */ P(Ao, [["__scopeId", "data-v-85165680"]]), Lo = {
597
597
  data() {
598
598
  return {
599
599
  levelList: null
@@ -625,7 +625,7 @@ const $o = /* @__PURE__ */ z({
625
625
  },
626
626
  pathCompile(e) {
627
627
  const { params: t } = this.$route;
628
- return Qn.compile(e)(t);
628
+ return eo.compile(e)(t);
629
629
  },
630
630
  handleLink(e) {
631
631
  const { redirect: t, path: n } = e;
@@ -636,27 +636,27 @@ const $o = /* @__PURE__ */ z({
636
636
  this.$router.push(this.pathCompile(n));
637
637
  }
638
638
  }
639
- }, Po = {
639
+ }, Mo = {
640
640
  key: 0,
641
641
  class: "no-redirect"
642
- }, Ao = ["onClick"];
643
- function Lo(e, t, n, o, l, s) {
644
- const a = An, r = Pn;
642
+ }, Do = ["onClick"];
643
+ function jo(e, t, n, o, l, s) {
644
+ const a = Dn, r = Mn;
645
645
  return i(), h(r, {
646
646
  class: "app-breadcrumb",
647
647
  separator: "/"
648
648
  }, {
649
649
  default: c(() => [
650
- u(Yt, { name: "breadcrumb" }, {
650
+ u(on, { name: "breadcrumb" }, {
651
651
  default: c(() => [
652
- (i(!0), b(B, null, j(l.levelList, (p, f) => (i(), h(a, {
652
+ (i(!0), b(O, null, j(l.levelList, (p, d) => (i(), h(a, {
653
653
  key: p.path
654
654
  }, {
655
655
  default: c(() => [
656
- p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || f === l.levelList.length - 1 ? (i(), b("span", Po, M(p.meta.title), 1)) : (i(), b("a", {
656
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || d === l.levelList.length - 1 ? (i(), b("span", Mo, M(p.meta.title), 1)) : (i(), b("a", {
657
657
  key: 1,
658
- onClick: (m) => s.handleLink(p)
659
- }, M(p.meta.title), 9, Ao))
658
+ onClick: (f) => s.handleLink(p)
659
+ }, M(p.meta.title), 9, Do))
660
660
  ]),
661
661
  _: 2
662
662
  }, 1024))), 128))
@@ -667,7 +667,7 @@ function Lo(e, t, n, o, l, s) {
667
667
  _: 1
668
668
  });
669
669
  }
670
- const Ro = /* @__PURE__ */ P(Bo, [["render", Lo], ["__scopeId", "data-v-fa74804e"]]), Mo = {
670
+ const No = /* @__PURE__ */ P(Lo, [["render", jo], ["__scopeId", "data-v-fa74804e"]]), Vo = {
671
671
  name: "Hamburger",
672
672
  props: {
673
673
  isActive: {
@@ -682,7 +682,7 @@ const Ro = /* @__PURE__ */ P(Bo, [["render", Lo], ["__scopeId", "data-v-fa74804e
682
682
  }
683
683
  }
684
684
  };
685
- function Do(e, t, n, o, l, s) {
685
+ function Uo(e, t, n, o, l, s) {
686
686
  const a = A("v-icon");
687
687
  return i(), b("div", {
688
688
  style: { padding: "0 15px" },
@@ -694,9 +694,9 @@ function Do(e, t, n, o, l, s) {
694
694
  }, null, 8, ["class"])
695
695
  ]);
696
696
  }
697
- const jo = /* @__PURE__ */ P(Mo, [["render", Do]]), No = {};
698
- function Vo(e, t) {
699
- const n = he, o = Rn, l = Mn, s = Ln;
697
+ const qo = /* @__PURE__ */ P(Vo, [["render", Uo]]), Ho = {};
698
+ function Fo(e, t) {
699
+ const n = he, o = Nn, l = Vn, s = jn;
700
700
  return i(), h(s, { style: { width: "100%", height: "100%" } }, {
701
701
  default: c(() => [
702
702
  u(n, { class: "aside" }, {
@@ -728,7 +728,7 @@ function Vo(e, t) {
728
728
  _: 3
729
729
  });
730
730
  }
731
- const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b"]]), qo = {
731
+ const Mt = /* @__PURE__ */ P(Ho, [["render", Fo], ["__scopeId", "data-v-7c3d697b"]]), Go = {
732
732
  type: "input",
733
733
  name: "文本框",
734
734
  default: {
@@ -796,7 +796,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
796
796
  }
797
797
  }
798
798
  ]
799
- }, Uo = {
799
+ }, zo = {
800
800
  type: "number",
801
801
  name: "数字",
802
802
  default: {
@@ -838,7 +838,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
838
838
  }
839
839
  }
840
840
  ]
841
- }, Ho = {
841
+ }, Jo = {
842
842
  type: "number-range",
843
843
  name: "数字区间",
844
844
  default: {
@@ -879,7 +879,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
879
879
  }
880
880
  }
881
881
  ]
882
- }, Fo = {
882
+ }, Ko = {
883
883
  type: "select",
884
884
  name: "下拉框",
885
885
  default: {
@@ -985,7 +985,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
985
985
  const t = x(e);
986
986
  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;
987
987
  }
988
- }, Go = {
988
+ }, Wo = {
989
989
  type: "radio",
990
990
  name: "单选框",
991
991
  default: {
@@ -1031,7 +1031,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1031
1031
  label: "默认值"
1032
1032
  }
1033
1033
  ]
1034
- }, zo = {
1034
+ }, Qo = {
1035
1035
  type: "switch",
1036
1036
  name: "开关",
1037
1037
  default: {
@@ -1087,7 +1087,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1087
1087
  }
1088
1088
  }
1089
1089
  ]
1090
- }, Ko = {
1090
+ }, Xo = {
1091
1091
  type: "code",
1092
1092
  name: "Code",
1093
1093
  default: {
@@ -1107,7 +1107,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1107
1107
  label: "字段key"
1108
1108
  }
1109
1109
  ]
1110
- }, Jo = {
1110
+ }, Zo = {
1111
1111
  type: "json",
1112
1112
  name: "json",
1113
1113
  default: {
@@ -1127,7 +1127,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1127
1127
  label: "字段key"
1128
1128
  }
1129
1129
  ]
1130
- }, Wo = {
1130
+ }, Yo = {
1131
1131
  type: "upload",
1132
1132
  name: "上传",
1133
1133
  default: {
@@ -1147,7 +1147,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1147
1147
  label: "字段key"
1148
1148
  }
1149
1149
  ]
1150
- }, Qo = {
1150
+ }, el = {
1151
1151
  type: "template",
1152
1152
  name: "自定义组件",
1153
1153
  default: {
@@ -1167,7 +1167,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1167
1167
  label: "字段key"
1168
1168
  }
1169
1169
  ]
1170
- }, Xo = {
1170
+ }, tl = {
1171
1171
  type: "icon-select",
1172
1172
  name: "图标选择器",
1173
1173
  default: {
@@ -1187,7 +1187,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1187
1187
  label: "字段key"
1188
1188
  }
1189
1189
  ]
1190
- }, Zo = {
1190
+ }, nl = {
1191
1191
  type: "sub-form",
1192
1192
  name: "子表单",
1193
1193
  default: {
@@ -1255,7 +1255,7 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1255
1255
  }
1256
1256
  }
1257
1257
  ]
1258
- }, Yo = {
1258
+ }, ol = {
1259
1259
  type: "checkbox",
1260
1260
  name: "复选框",
1261
1261
  default: {
@@ -1301,24 +1301,24 @@ const Lt = /* @__PURE__ */ P(No, [["render", Vo], ["__scopeId", "data-v-7c3d697b
1301
1301
  }
1302
1302
  }
1303
1303
  ]
1304
- }, Rt = {};
1304
+ }, Dt = {};
1305
1305
  function H(e) {
1306
- Rt[e.type] = e;
1306
+ Dt[e.type] = e;
1307
1307
  }
1308
- H(qo);
1309
- H(Fo);
1310
- H(Uo);
1311
- H(Ho);
1312
- H(zo);
1313
- H(Zo);
1314
1308
  H(Go);
1315
- H(Yo);
1316
1309
  H(Ko);
1310
+ H(zo);
1317
1311
  H(Jo);
1312
+ H(Qo);
1313
+ H(nl);
1318
1314
  H(Wo);
1315
+ H(ol);
1319
1316
  H(Xo);
1320
- H(Qo);
1321
- const De = Rt, el = {
1317
+ H(Zo);
1318
+ H(Yo);
1319
+ H(tl);
1320
+ H(el);
1321
+ const je = Dt, ll = {
1322
1322
  options: {
1323
1323
  labelPosition: "top",
1324
1324
  submitButton: !1,
@@ -1416,15 +1416,15 @@ const De = Rt, el = {
1416
1416
  }
1417
1417
  }
1418
1418
  ]
1419
- }, Pe = {
1419
+ }, Ae = {
1420
1420
  labelPosition: "top",
1421
1421
  submitButton: !1,
1422
1422
  cancelButton: !1
1423
1423
  }, Ye = [];
1424
- Object.keys(De).forEach((e) => {
1425
- Ye.push({ value: e, label: De[e].name });
1424
+ Object.keys(je).forEach((e) => {
1425
+ Ye.push({ value: e, label: je[e].name });
1426
1426
  });
1427
- const tl = {
1427
+ const sl = {
1428
1428
  options: {
1429
1429
  submitButton: !1,
1430
1430
  cancelButton: !1
@@ -1456,8 +1456,8 @@ const tl = {
1456
1456
  }
1457
1457
  }
1458
1458
  ]
1459
- }, nl = {
1460
- components: { DevLayout: Lt, VForm: te, VButton: Qe, JsonView: We },
1459
+ }, al = {
1460
+ components: { DevLayout: Mt, VForm: te, VButton: Xe, JsonView: Qe },
1461
1461
  props: {
1462
1462
  schema: {
1463
1463
  type: Object,
@@ -1468,8 +1468,8 @@ const tl = {
1468
1468
  data() {
1469
1469
  return {
1470
1470
  sqlOptions: {},
1471
- sqlSchema: tl,
1472
- baseSchema: el,
1471
+ sqlSchema: sl,
1472
+ baseSchema: ll,
1473
1473
  activeTab: "base",
1474
1474
  builderSchema: Object.assign(
1475
1475
  {},
@@ -1489,7 +1489,7 @@ const tl = {
1489
1489
  ctrlSchema: {},
1490
1490
  ctrlName: "",
1491
1491
  activeIndex: void 0,
1492
- ctrlMap: De,
1492
+ ctrlMap: je,
1493
1493
  activeIndexReg: /(formItems)?\[(\d+)\]/,
1494
1494
  tableStruct: "",
1495
1495
  activeName: "1",
@@ -1510,14 +1510,14 @@ const tl = {
1510
1510
  immediate: !0,
1511
1511
  handler(e) {
1512
1512
  const t = x(e);
1513
- e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = U(this.builderSchema, { options: t }), this.key++);
1513
+ e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = q(this.builderSchema, { options: t }), this.key++);
1514
1514
  }
1515
1515
  },
1516
1516
  ctrlOptions: {
1517
1517
  deep: !0,
1518
1518
  // immediate: true,
1519
1519
  handler(e) {
1520
- const t = me(this.builderSchema, this.activeIndex);
1520
+ const t = fe(this.builderSchema, this.activeIndex);
1521
1521
  if (!t)
1522
1522
  return;
1523
1523
  const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
@@ -1535,10 +1535,10 @@ const tl = {
1535
1535
  handler(e) {
1536
1536
  const t = this.ctrlMap[e];
1537
1537
  this.ctrlSchema = x({
1538
- options: x(Pe),
1538
+ options: x(Ae),
1539
1539
  formItems: x(t.builder)
1540
1540
  });
1541
- const n = me(this.builderSchema, this.activeIndex);
1541
+ const n = fe(this.builderSchema, this.activeIndex);
1542
1542
  this.ctrlOptions = x(n), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
1543
1543
  }
1544
1544
  }
@@ -1560,23 +1560,23 @@ const tl = {
1560
1560
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1561
1561
  const n = this.ctrlMap[e];
1562
1562
  this.activeCtrl = n, this.builderSchema[t].push(x(n.default)), this.ctrlSchema = x({
1563
- options: x(Pe),
1563
+ options: x(Ae),
1564
1564
  formItems: x(n.builder)
1565
1565
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1566
1566
  },
1567
1567
  removeOne() {
1568
- vt(this.builderSchema, this.activeIndex), this.builderSchema = x(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1568
+ kt(this.builderSchema, this.activeIndex), this.builderSchema = x(bt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1569
1569
  },
1570
1570
  clicklabel() {
1571
1571
  const e = this.activeIndex;
1572
1572
  if (e.match(this.activeIndexReg)) {
1573
- const n = x(me(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
1573
+ const n = x(fe(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
1574
1574
  if (!l) {
1575
1575
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
1576
1576
  return;
1577
1577
  }
1578
1578
  this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = x({
1579
- options: x(Pe),
1579
+ options: x(Ae),
1580
1580
  formItems: x(l.builder)
1581
1581
  }), this.ctrlKey++;
1582
1582
  }
@@ -1592,15 +1592,15 @@ const tl = {
1592
1592
  }
1593
1593
  }
1594
1594
  };
1595
- function ol(e, t, n, o, l, s) {
1596
- const a = A("v-form"), r = St, p = we, f = A("JsonView"), m = A("VButton"), y = ze, _ = Ge, C = wt, E = kt, w = A("dev-layout");
1597
- return i(), h(w, null, {
1595
+ function il(e, t, n, o, l, s) {
1596
+ const a = A("v-form"), r = Et, p = we, d = A("JsonView"), f = A("VButton"), y = Je, _ = ze, C = xt, E = wt, S = A("dev-layout");
1597
+ return i(), h(S, null, {
1598
1598
  main: c(() => [
1599
1599
  l.builderSchema.formItems ? (i(), h(a, X({
1600
1600
  ref: "form",
1601
1601
  key: l.key,
1602
1602
  dev: !0
1603
- }, l.builderSchema), null, 16)) : O("", !0),
1603
+ }, l.builderSchema), null, 16)) : B("", !0),
1604
1604
  u(r),
1605
1605
  u(p, {
1606
1606
  type: "primary",
@@ -1612,12 +1612,12 @@ function ol(e, t, n, o, l, s) {
1612
1612
  _: 1
1613
1613
  }, 8, ["onClick"]),
1614
1614
  t[3] || (t[3] = T("    ", -1)),
1615
- u(m, {
1615
+ u(f, {
1616
1616
  text: "PageSchema",
1617
1617
  type: "modal"
1618
1618
  }, {
1619
1619
  default: c(() => [
1620
- u(f, { data: s.getSaveSchema }, null, 8, ["data"])
1620
+ u(d, { data: s.getSaveSchema }, null, 8, ["data"])
1621
1621
  ]),
1622
1622
  _: 1
1623
1623
  })
@@ -1632,7 +1632,7 @@ function ol(e, t, n, o, l, s) {
1632
1632
  "onUpdate:modelValue": t[0] || (t[0] = (g) => l.currentCtrlType = g)
1633
1633
  }, {
1634
1634
  default: c(() => [
1635
- (i(!0), b(B, null, j(l.types, (g, I) => (i(), h(y, {
1635
+ (i(!0), b(O, null, j(l.types, (g, I) => (i(), h(y, {
1636
1636
  key: I,
1637
1637
  label: g.label,
1638
1638
  value: g.value
@@ -1645,7 +1645,7 @@ function ol(e, t, n, o, l, s) {
1645
1645
  })
1646
1646
  ]),
1647
1647
  _: 1
1648
- })) : O("", !0),
1648
+ })) : B("", !0),
1649
1649
  (i(), h(a, X({
1650
1650
  key: l.ctrlKey,
1651
1651
  modelValue: l.ctrlOptions,
@@ -1655,7 +1655,7 @@ function ol(e, t, n, o, l, s) {
1655
1655
  _: 1
1656
1656
  });
1657
1657
  }
1658
- const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171"]]), sl = {
1658
+ const rl = /* @__PURE__ */ P(al, [["render", il], ["__scopeId", "data-v-875f0171"]]), cl = {
1659
1659
  type: "input",
1660
1660
  name: "文本框",
1661
1661
  default: {
@@ -1703,7 +1703,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1703
1703
  }
1704
1704
  }
1705
1705
  ]
1706
- }, al = {
1706
+ }, ul = {
1707
1707
  type: "select",
1708
1708
  name: "下拉框",
1709
1709
  default: {
@@ -1804,7 +1804,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1804
1804
  const t = x(e);
1805
1805
  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;
1806
1806
  }
1807
- }, il = {
1807
+ }, pl = {
1808
1808
  type: "date",
1809
1809
  name: "日期",
1810
1810
  default: {
@@ -1824,7 +1824,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1824
1824
  label: "字段key"
1825
1825
  }
1826
1826
  ]
1827
- }, ut = {
1827
+ }, pt = {
1828
1828
  options: {
1829
1829
  labelPosition: "top",
1830
1830
  submitButton: !1,
@@ -1849,11 +1849,11 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1849
1849
  label: "导出按钮"
1850
1850
  }
1851
1851
  ]
1852
- }, Ae = {
1852
+ }, Re = {
1853
1853
  labelPosition: "top",
1854
1854
  submitButton: !1,
1855
1855
  cancelButton: !1
1856
- }, rl = {
1856
+ }, dl = {
1857
1857
  type: "span",
1858
1858
  name: "文本",
1859
1859
  default: {
@@ -1883,7 +1883,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1883
1883
  label: "排序"
1884
1884
  }
1885
1885
  ]
1886
- }, cl = {
1886
+ }, fl = {
1887
1887
  type: "enum",
1888
1888
  name: "标签",
1889
1889
  default: {
@@ -1934,7 +1934,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1934
1934
  trans(e) {
1935
1935
  return e.options = e.options || [], e.label || (e.label = "表头"), e;
1936
1936
  }
1937
- }, ul = {
1937
+ }, ml = {
1938
1938
  type: "html",
1939
1939
  name: "HTML",
1940
1940
  default: {
@@ -1959,7 +1959,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1959
1959
  label: "提示"
1960
1960
  }
1961
1961
  ]
1962
- }, pl = {
1962
+ }, hl = {
1963
1963
  type: "icon",
1964
1964
  name: "图标",
1965
1965
  default: {
@@ -1984,7 +1984,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
1984
1984
  label: "提示"
1985
1985
  }
1986
1986
  ]
1987
- }, dl = {
1987
+ }, bl = {
1988
1988
  type: "image",
1989
1989
  name: "图片",
1990
1990
  default: {
@@ -2009,7 +2009,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2009
2009
  label: "提示"
2010
2010
  }
2011
2011
  ]
2012
- }, ml = {
2012
+ }, yl = {
2013
2013
  type: "json",
2014
2014
  name: "JSON",
2015
2015
  default: {
@@ -2034,7 +2034,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2034
2034
  label: "提示"
2035
2035
  }
2036
2036
  ]
2037
- }, fl = {
2037
+ }, _l = {
2038
2038
  type: "link",
2039
2039
  name: "链接",
2040
2040
  default: {
@@ -2059,7 +2059,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2059
2059
  label: "提示"
2060
2060
  }
2061
2061
  ]
2062
- }, hl = {
2062
+ }, vl = {
2063
2063
  type: "rich",
2064
2064
  name: "富文本",
2065
2065
  default: {
@@ -2084,7 +2084,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2084
2084
  label: "提示"
2085
2085
  }
2086
2086
  ]
2087
- }, bl = {
2087
+ }, gl = {
2088
2088
  type: "tpl",
2089
2089
  name: "模板",
2090
2090
  default: {
@@ -2115,17 +2115,17 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2115
2115
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2116
2116
  }
2117
2117
  ]
2118
- }, yl = {
2119
- span: rl,
2120
- enum: cl,
2121
- html: ul,
2122
- icon: pl,
2123
- image: dl,
2124
- json: ml,
2125
- link: fl,
2126
- rich: hl,
2127
- tpl: bl
2128
- }, _l = {
2118
+ }, kl = {
2119
+ span: dl,
2120
+ enum: fl,
2121
+ html: ml,
2122
+ icon: hl,
2123
+ image: bl,
2124
+ json: yl,
2125
+ link: _l,
2126
+ rich: vl,
2127
+ tpl: gl
2128
+ }, Sl = {
2129
2129
  type: "jump",
2130
2130
  name: "跳转",
2131
2131
  default: {
@@ -2172,7 +2172,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2172
2172
  }
2173
2173
  }
2174
2174
  ]
2175
- }, vl = {
2175
+ }, wl = {
2176
2176
  type: "api",
2177
2177
  name: "接口请求",
2178
2178
  default: {
@@ -2241,7 +2241,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2241
2241
  }
2242
2242
  }
2243
2243
  ]
2244
- }, gl = {
2244
+ }, xl = {
2245
2245
  type: "form",
2246
2246
  name: "弹框表单",
2247
2247
  default: {
@@ -2295,7 +2295,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2295
2295
  label: "保存接口"
2296
2296
  }
2297
2297
  ]
2298
- }, kl = {
2298
+ }, El = {
2299
2299
  type: "table",
2300
2300
  name: "弹框列表",
2301
2301
  default: {
@@ -2349,13 +2349,13 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2349
2349
  label: "保存接口"
2350
2350
  }
2351
2351
  ]
2352
- }, wl = {
2353
- jump: _l,
2354
- api: vl,
2355
- form: gl,
2356
- table: kl
2357
- }, Sl = {
2358
- components: { JsonView: We, DevLayout: Lt, VTable: fe, VForm: te, VButton: Qe },
2352
+ }, Il = {
2353
+ jump: Sl,
2354
+ api: wl,
2355
+ form: xl,
2356
+ table: El
2357
+ }, Cl = {
2358
+ components: { JsonView: Qe, DevLayout: Mt, VTable: me, VForm: te, VButton: Xe },
2359
2359
  props: {
2360
2360
  schema: {
2361
2361
  type: Object,
@@ -2364,13 +2364,13 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2364
2364
  }
2365
2365
  },
2366
2366
  data() {
2367
- const e = en(this.$props.schema);
2367
+ const e = ln(this.$props.schema);
2368
2368
  return delete e.listApi, e.list = [{}], {
2369
- baseSchema: ut,
2369
+ baseSchema: pt,
2370
2370
  activeTab: "base",
2371
2371
  builderSchema: Object.assign(
2372
2372
  {},
2373
- ut,
2373
+ pt,
2374
2374
  e
2375
2375
  ),
2376
2376
  baseOptions: {},
@@ -2383,9 +2383,9 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2383
2383
  ctrlName: "",
2384
2384
  activeIndex: void 0,
2385
2385
  ctrlMap: {
2386
- filter: { input: sl, select: al, date: il },
2387
- headers: yl,
2388
- buttons: wl
2386
+ filter: { input: cl, select: ul, date: pl },
2387
+ headers: kl,
2388
+ buttons: Il
2389
2389
  },
2390
2390
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
2391
2391
  currentCtrlType: "input"
@@ -2416,7 +2416,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2416
2416
  deep: !0,
2417
2417
  immediate: !0,
2418
2418
  handler(e) {
2419
- this.builderSchema = U(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2419
+ this.builderSchema = q(this.builderSchema, e), this.key++, this.updateBuilderSchema();
2420
2420
  }
2421
2421
  },
2422
2422
  ctrlOptions: {
@@ -2447,10 +2447,10 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2447
2447
  handler(e) {
2448
2448
  const t = this.ctrlMap[this.activeBrick][e];
2449
2449
  this.ctrlSchema = x({
2450
- options: x(Ae),
2450
+ options: x(Re),
2451
2451
  formItems: x(t.builder)
2452
2452
  });
2453
- const n = me(this.builderSchema, this.activeIndex);
2453
+ const n = fe(this.builderSchema, this.activeIndex);
2454
2454
  n.type = e;
2455
2455
  const o = x(n);
2456
2456
  this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
@@ -2495,17 +2495,17 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2495
2495
  return;
2496
2496
  }
2497
2497
  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({
2498
- options: x(Ae),
2498
+ options: x(Re),
2499
2499
  formItems: x(l[e].builder)
2500
2500
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2501
2501
  },
2502
2502
  removeOne() {
2503
- vt(this.builderSchema, this.activeIndex), this.builderSchema = x(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2503
+ kt(this.builderSchema, this.activeIndex), this.builderSchema = x(bt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2504
2504
  },
2505
2505
  clicklabel() {
2506
2506
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
2507
2507
  if (t) {
2508
- const n = x(me(this.builderSchema, e));
2508
+ const n = x(fe(this.builderSchema, e));
2509
2509
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
2510
2510
  let o = this.builderSchema[t[1]][parseInt(t[2])].type;
2511
2511
  t[1] === "headers" && o === void 0 && (o = "span");
@@ -2515,7 +2515,7 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2515
2515
  return;
2516
2516
  }
2517
2517
  this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = x({
2518
- options: x(Ae),
2518
+ options: x(Re),
2519
2519
  formItems: x(l.builder)
2520
2520
  }), this.ctrlKey++;
2521
2521
  }
@@ -2538,8 +2538,8 @@ const ll = /* @__PURE__ */ P(nl, [["render", ol], ["__scopeId", "data-v-875f0171
2538
2538
  }
2539
2539
  }
2540
2540
  };
2541
- function xl(e, t, n, o, l, s) {
2542
- const a = Ie, r = we, p = he, f = A("v-table"), m = St, y = we, _ = A("JsonView"), C = A("VButton"), E = ze, w = Ge, g = wt, I = kt, F = A("v-form"), le = A("dev-layout");
2541
+ function Tl(e, t, n, o, l, s) {
2542
+ const a = Ce, r = we, p = he, d = A("v-table"), f = Et, y = we, _ = A("JsonView"), C = A("VButton"), E = Je, S = ze, g = xt, I = wt, F = A("v-form"), le = A("dev-layout");
2543
2543
  return i(), h(le, null, {
2544
2544
  "left-aside": c(() => [
2545
2545
  u(p, { style: { width: "200px" } }, {
@@ -2608,14 +2608,14 @@ function xl(e, t, n, o, l, s) {
2608
2608
  ])]),
2609
2609
  _: 1
2610
2610
  }),
2611
- (i(!0), b(B, null, j(Object.keys(l.ctrlMap.headers), (k, q) => (i(), h(a, {
2612
- key: `column-${q}`,
2611
+ (i(!0), b(O, null, j(Object.keys(l.ctrlMap.headers), (k, U) => (i(), h(a, {
2612
+ key: `column-${U}`,
2613
2613
  class: "ctrl"
2614
2614
  }, {
2615
2615
  default: c(() => [
2616
2616
  u(r, {
2617
2617
  class: "ctrl-btn",
2618
- onClick: (K) => s.pushHeaders(l.ctrlMap.headers[k].type)
2618
+ onClick: (J) => s.pushHeaders(l.ctrlMap.headers[k].type)
2619
2619
  }, {
2620
2620
  default: c(() => [
2621
2621
  T(M(l.ctrlMap.headers[k].name), 1)
@@ -2636,14 +2636,14 @@ function xl(e, t, n, o, l, s) {
2636
2636
  ])]),
2637
2637
  _: 1
2638
2638
  }),
2639
- (i(!0), b(B, null, j(Object.keys(l.ctrlMap.buttons), (k, q) => (i(), h(a, {
2640
- key: `column-${q}`,
2639
+ (i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
2640
+ key: `column-${U}`,
2641
2641
  class: "ctrl"
2642
2642
  }, {
2643
2643
  default: c(() => [
2644
2644
  u(r, {
2645
2645
  class: "ctrl-btn",
2646
- onClick: (K) => s.pushRowButton(l.ctrlMap.buttons[k].type)
2646
+ onClick: (J) => s.pushRowButton(l.ctrlMap.buttons[k].type)
2647
2647
  }, {
2648
2648
  default: c(() => [
2649
2649
  T(M(l.ctrlMap.buttons[k].name), 1)
@@ -2664,14 +2664,14 @@ function xl(e, t, n, o, l, s) {
2664
2664
  ])]),
2665
2665
  _: 1
2666
2666
  }),
2667
- (i(!0), b(B, null, j(Object.keys(l.ctrlMap.buttons), (k, q) => (i(), h(a, {
2668
- key: `column-${q}`,
2667
+ (i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
2668
+ key: `column-${U}`,
2669
2669
  class: "ctrl"
2670
2670
  }, {
2671
2671
  default: c(() => [
2672
2672
  u(r, {
2673
2673
  class: "ctrl-btn",
2674
- onClick: (K) => s.pushNormalButton(l.ctrlMap.buttons[k].type)
2674
+ onClick: (J) => s.pushNormalButton(l.ctrlMap.buttons[k].type)
2675
2675
  }, {
2676
2676
  default: c(() => [
2677
2677
  T(M(l.ctrlMap.buttons[k].name), 1)
@@ -2703,14 +2703,14 @@ function xl(e, t, n, o, l, s) {
2703
2703
  ])]),
2704
2704
  _: 1
2705
2705
  }),
2706
- (i(!0), b(B, null, j(Object.keys(l.ctrlMap.buttons), (k, q) => (i(), h(a, {
2707
- key: `column-${q}`,
2706
+ (i(!0), b(O, null, j(Object.keys(l.ctrlMap.buttons), (k, U) => (i(), h(a, {
2707
+ key: `column-${U}`,
2708
2708
  class: "ctrl"
2709
2709
  }, {
2710
2710
  default: c(() => [
2711
2711
  u(r, {
2712
2712
  class: "ctrl-btn",
2713
- onClick: (K) => s.pushBatchButton(l.ctrlMap.buttons[k].type)
2713
+ onClick: (J) => s.pushBatchButton(l.ctrlMap.buttons[k].type)
2714
2714
  }, {
2715
2715
  default: c(() => [
2716
2716
  T(M(l.ctrlMap.buttons[k].name), 1)
@@ -2739,12 +2739,12 @@ function xl(e, t, n, o, l, s) {
2739
2739
  })
2740
2740
  ]),
2741
2741
  main: c(() => [
2742
- (i(), h(f, X({
2742
+ (i(), h(d, X({
2743
2743
  ref: "table",
2744
2744
  key: l.key,
2745
2745
  dev: !0
2746
2746
  }, l.builderSchema), null, 16)),
2747
- u(m),
2747
+ u(f),
2748
2748
  u(y, {
2749
2749
  type: "primary",
2750
2750
  onClick: s.saveSchema
@@ -2770,13 +2770,13 @@ function xl(e, t, n, o, l, s) {
2770
2770
  default: c(() => [
2771
2771
  u(g, { label: "控件类型" }, {
2772
2772
  default: c(() => [
2773
- u(w, {
2773
+ u(S, {
2774
2774
  modelValue: l.currentCtrlType,
2775
2775
  "onUpdate:modelValue": t[3] || (t[3] = (k) => l.currentCtrlType = k)
2776
2776
  }, {
2777
2777
  default: c(() => [
2778
- (i(!0), b(B, null, j(s.types, (k, q) => (i(), h(E, {
2779
- key: q,
2778
+ (i(!0), b(O, null, j(s.types, (k, U) => (i(), h(E, {
2779
+ key: U,
2780
2780
  label: k.label,
2781
2781
  value: k.value
2782
2782
  }, null, 8, ["label", "value"]))), 128))
@@ -2788,7 +2788,7 @@ function xl(e, t, n, o, l, s) {
2788
2788
  })
2789
2789
  ]),
2790
2790
  _: 1
2791
- })) : O("", !0),
2791
+ })) : B("", !0),
2792
2792
  (i(), h(F, X({
2793
2793
  key: l.ctrlKey,
2794
2794
  modelValue: l.ctrlOptions,
@@ -2798,58 +2798,58 @@ function xl(e, t, n, o, l, s) {
2798
2798
  _: 1
2799
2799
  });
2800
2800
  }
2801
- const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f"]]), Il = "rtl", Cl = {
2801
+ const $l = /* @__PURE__ */ P(Cl, [["render", Tl], ["__scopeId", "data-v-cd18f87f"]]), Bl = "rtl", Ol = {
2802
2802
  __name: "PageEditor",
2803
2803
  setup(e) {
2804
2804
  const t = $(!1);
2805
2805
  $(1);
2806
- const n = Y(), o = ee(), l = S(() => o.pages[n.path]);
2806
+ const n = Y(), o = ee(), l = w(() => o.pages[n.path]);
2807
2807
  return (s, a) => {
2808
- const r = A("VIcon"), p = xt;
2809
- return i(), b(B, null, [
2808
+ const r = A("VIcon"), p = It;
2809
+ return i(), b(O, null, [
2810
2810
  u(r, {
2811
2811
  name: "ra-set",
2812
- onClick: a[0] || (a[0] = (f) => t.value = !d(t))
2812
+ onClick: a[0] || (a[0] = (d) => t.value = !m(t))
2813
2813
  }),
2814
2814
  u(p, {
2815
- modelValue: d(t),
2816
- "onUpdate:modelValue": a[1] || (a[1] = (f) => qe(t) ? t.value = f : null),
2815
+ modelValue: m(t),
2816
+ "onUpdate:modelValue": a[1] || (a[1] = (d) => qe(t) ? t.value = d : null),
2817
2817
  title: "页面设计",
2818
2818
  class: "my-drawer",
2819
- direction: Il,
2819
+ direction: Bl,
2820
2820
  size: "90%",
2821
2821
  "destroy-on-close": "",
2822
2822
  "append-to-body": ""
2823
2823
  }, {
2824
2824
  default: c(() => [
2825
- d(l).formItems !== void 0 ? (i(), h(ll, {
2825
+ m(l).formItems !== void 0 ? (i(), h(rl, {
2826
2826
  key: 0,
2827
- schema: d(l)
2828
- }, null, 8, ["schema"])) : O("", !0),
2829
- d(l).headers !== void 0 ? (i(), h(El, {
2827
+ schema: m(l)
2828
+ }, null, 8, ["schema"])) : B("", !0),
2829
+ m(l).headers !== void 0 ? (i(), h($l, {
2830
2830
  key: 1,
2831
- schema: d(l)
2832
- }, null, 8, ["schema"])) : O("", !0)
2831
+ schema: m(l)
2832
+ }, null, 8, ["schema"])) : B("", !0)
2833
2833
  ]),
2834
2834
  _: 1
2835
2835
  }, 8, ["modelValue"])
2836
2836
  ], 64);
2837
2837
  };
2838
2838
  }
2839
- }, Tl = { class: "right-content" }, $l = {
2839
+ }, Pl = { class: "right-content" }, Al = {
2840
2840
  key: 0,
2841
2841
  class: "right-item"
2842
- }, Ol = {
2842
+ }, Rl = {
2843
2843
  class: "right-item-button",
2844
2844
  style: { padding: "0" }
2845
- }, Bl = { class: "user-info" }, Pl = ["src"], Al = { class: "user-name" }, Ll = /* @__PURE__ */ z({
2845
+ }, Ll = { class: "user-info" }, Ml = ["src"], Dl = { class: "user-name" }, jl = /* @__PURE__ */ z({
2846
2846
  __name: "Navbar",
2847
2847
  setup(e) {
2848
2848
  const t = ee(), n = V(), o = N();
2849
2849
  $(!1);
2850
2850
  const l = $(!1);
2851
2851
  $(""), $(0);
2852
- const s = S(() => n.defaultAvatar), a = S(() => t.sidebar), r = S(() => o.avatar), p = S(() => o.name), f = S(() => o.nickname), m = S(() => n.nav), y = S(() => n), _ = S(() => o), C = S(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: w } = Ot(), g = S(() => {
2852
+ const s = w(() => n.defaultAvatar), a = w(() => t.sidebar), r = w(() => o.avatar), p = w(() => o.name), d = w(() => o.nickname), f = w(() => n.nav), y = w(() => n), _ = w(() => o), C = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: S } = Pt(), g = w(() => {
2853
2853
  const D = y.value.envColor?.[_.value.env];
2854
2854
  return E.value ? {
2855
2855
  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%)",
@@ -2865,16 +2865,16 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
2865
2865
  boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
2866
2866
  };
2867
2867
  });
2868
- Se(() => {
2869
- ht("el-submenu is-active");
2868
+ xe(() => {
2869
+ yt("el-submenu is-active");
2870
2870
  const D = k("navBarNotice") || "";
2871
- D.length > 0 && !k("closeNavNotice") && K(D) && window?.App?.config?.globalProperties?.$notify({
2871
+ D.length > 0 && !k("closeNavNotice") && J(D) && window?.App?.config?.globalProperties?.$notify({
2872
2872
  title: "提示",
2873
2873
  message: D,
2874
2874
  dangerouslyUseHTMLString: !0,
2875
2875
  duration: 0,
2876
- onClose: q
2877
- }), y.value.envColor?.[_.value.env] && bn({
2876
+ onClose: U
2877
+ }), y.value.envColor?.[_.value.env] && gn({
2878
2878
  elRef: I.value.$el,
2879
2879
  waterMark: _.value.env,
2880
2880
  color: "skyblue",
@@ -2893,72 +2893,72 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
2893
2893
  function k(D) {
2894
2894
  return n[D];
2895
2895
  }
2896
- async function q() {
2897
- n.updateSettings({ closeNavNotice: !0 }), Ft(k("navBarNotice"));
2896
+ async function U() {
2897
+ n.updateSettings({ closeNavNotice: !0 }), Kt(k("navBarNotice"));
2898
2898
  }
2899
- function K(D) {
2900
- const R = "dismiss:navbar_notice";
2901
- return _e.exist(R) ? _e.get(R) !== D : !0;
2899
+ function J(D) {
2900
+ const L = "dismiss:navbar_notice";
2901
+ return ve.exist(L) ? ve.get(L) !== D : !0;
2902
2902
  }
2903
- function Ft(D) {
2904
- _e.set("dismiss:navbar_notice", D);
2903
+ function Kt(D) {
2904
+ ve.set("dismiss:navbar_notice", D);
2905
2905
  }
2906
- return (D, R) => {
2907
- const nt = Ie, Gt = jn, zt = Dn, ot = qn, Kt = Vn, Jt = Nn, Wt = xt, Qt = he;
2908
- return i(), h(Qt, {
2906
+ return (D, L) => {
2907
+ const ot = Ce, Wt = qn, Qt = Un, lt = Gn, Xt = Fn, Zt = Hn, Yt = It, en = he;
2908
+ return i(), h(en, {
2909
2909
  ref_key: "header",
2910
2910
  ref: I,
2911
2911
  class: "navbar",
2912
- style: tn(g.value)
2912
+ style: sn(g.value)
2913
2913
  }, {
2914
2914
  default: c(() => [
2915
- u(nt, { span: 16 }, {
2915
+ u(ot, { span: 16 }, {
2916
2916
  default: c(() => [
2917
- u(jo, {
2917
+ u(qo, {
2918
2918
  "is-active": a.value.opened,
2919
2919
  class: "hamburger-container",
2920
2920
  onToggleClick: F
2921
2921
  }, null, 8, ["is-active"]),
2922
- u(Ro, { class: "breadcrumb-container" })
2922
+ u(No, { class: "breadcrumb-container" })
2923
2923
  ]),
2924
2924
  _: 1
2925
2925
  }),
2926
- u(nt, { span: 8 }, {
2926
+ u(ot, { span: 8 }, {
2927
2927
  default: c(() => [
2928
- v("div", Tl, [
2929
- C.value ? (i(), b("div", $l, [
2930
- u(Cl)
2931
- ])) : O("", !0),
2932
- v("div", Ol, [
2933
- u(d(Qe), { buttons: m.value }, null, 8, ["buttons"])
2928
+ v("div", Pl, [
2929
+ C.value ? (i(), b("div", Al, [
2930
+ u(Ol)
2931
+ ])) : B("", !0),
2932
+ v("div", Rl, [
2933
+ u(m(Xe), { buttons: f.value }, null, 8, ["buttons"])
2934
2934
  ]),
2935
- u(zt, {
2935
+ u(Qt, {
2936
2936
  placement: "bottom",
2937
- content: d(E) ? "切换为明亮模式" : "切换为暗黑模式"
2937
+ content: m(E) ? "切换为明亮模式" : "切换为暗黑模式"
2938
2938
  }, {
2939
2939
  default: c(() => [
2940
2940
  v("div", {
2941
2941
  class: "right-item theme-toggle",
2942
2942
  role: "button",
2943
2943
  tabindex: "0",
2944
- onClick: R[0] || (R[0] = //@ts-ignore
2945
- (...se) => d(w) && d(w)(...se)),
2944
+ onClick: L[0] || (L[0] = //@ts-ignore
2945
+ (...se) => m(S) && m(S)(...se)),
2946
2946
  onKeydown: [
2947
- R[1] || (R[1] = lt(st(
2947
+ L[1] || (L[1] = st(at(
2948
2948
  //@ts-ignore
2949
- (...se) => d(w) && d(w)(...se),
2949
+ (...se) => m(S) && m(S)(...se),
2950
2950
  ["prevent"]
2951
2951
  ), ["enter"])),
2952
- R[2] || (R[2] = lt(st(
2952
+ L[2] || (L[2] = st(at(
2953
2953
  //@ts-ignore
2954
- (...se) => d(w) && d(w)(...se),
2954
+ (...se) => m(S) && m(S)(...se),
2955
2955
  ["prevent"]
2956
2956
  ), ["space"]))
2957
2957
  ]
2958
2958
  }, [
2959
- u(Gt, null, {
2959
+ u(Wt, null, {
2960
2960
  default: c(() => [
2961
- (i(), h(Ue(d(E) ? d(to) : d(no))))
2961
+ (i(), h(He(m(E) ? m(so) : m(ao))))
2962
2962
  ]),
2963
2963
  _: 1
2964
2964
  })
@@ -2966,28 +2966,28 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
2966
2966
  ]),
2967
2967
  _: 1
2968
2968
  }, 8, ["content"]),
2969
- u(Jt, {
2969
+ u(Zt, {
2970
2970
  class: "right-item",
2971
2971
  trigger: "click"
2972
2972
  }, {
2973
2973
  dropdown: c(() => [
2974
- u(Kt, { class: "user-dropdown" }, {
2974
+ u(Xt, { class: "user-dropdown" }, {
2975
2975
  default: c(() => [
2976
- u(ot, {
2976
+ u(lt, {
2977
2977
  icon: "oms-icon-index",
2978
- onClick: R[3] || (R[3] = (se) => D.$router.push("/"))
2978
+ onClick: L[3] || (L[3] = (se) => D.$router.push("/"))
2979
2979
  }, {
2980
- default: c(() => [...R[5] || (R[5] = [
2980
+ default: c(() => [...L[5] || (L[5] = [
2981
2981
  T("首页", -1)
2982
2982
  ])]),
2983
2983
  _: 1
2984
2984
  }),
2985
- u(ot, {
2985
+ u(lt, {
2986
2986
  divided: "",
2987
2987
  icon: "el-icon-switch-button",
2988
2988
  onClick: le
2989
2989
  }, {
2990
- default: c(() => [...R[6] || (R[6] = [
2990
+ default: c(() => [...L[6] || (L[6] = [
2991
2991
  T("退出登录", -1)
2992
2992
  ])]),
2993
2993
  _: 1
@@ -2997,14 +2997,14 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
2997
2997
  })
2998
2998
  ]),
2999
2999
  default: c(() => [
3000
- v("div", Bl, [
3000
+ v("div", Ll, [
3001
3001
  v("img", {
3002
3002
  src: r.value ? r.value : s.value,
3003
3003
  class: "user-avatar",
3004
3004
  alt: "头像"
3005
- }, null, 8, Pl),
3006
- R[4] || (R[4] = T()),
3007
- v("span", Al, M(f.value || p.value), 1)
3005
+ }, null, 8, Ml),
3006
+ L[4] || (L[4] = T()),
3007
+ v("span", Dl, M(d.value || p.value), 1)
3008
3008
  ])
3009
3009
  ]),
3010
3010
  _: 1
@@ -3013,32 +3013,32 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3013
3013
  ]),
3014
3014
  _: 1
3015
3015
  }),
3016
- l.value ? (i(), h(Wt, {
3016
+ l.value ? (i(), h(Yt, {
3017
3017
  key: 0,
3018
3018
  "with-header": !1,
3019
3019
  size: "50%"
3020
- })) : O("", !0)
3020
+ })) : B("", !0)
3021
3021
  ]),
3022
3022
  _: 1
3023
3023
  }, 8, ["style"]);
3024
3024
  };
3025
3025
  }
3026
- }), Rl = /* @__PURE__ */ P(Ll, [["__scopeId", "data-v-c4905268"]]), Ml = ["src"], Dl = {
3026
+ }), Nl = /* @__PURE__ */ P(jl, [["__scopeId", "data-v-c4905268"]]), Vl = ["src"], Ul = {
3027
3027
  key: 1,
3028
3028
  class: "sidebar-title"
3029
- }, jl = ["src"], Nl = { class: "sidebar-title" }, Vl = /* @__PURE__ */ z({
3029
+ }, ql = ["src"], Hl = { class: "sidebar-title" }, Fl = /* @__PURE__ */ z({
3030
3030
  __name: "Logo",
3031
3031
  props: {
3032
3032
  collapse: { type: Boolean }
3033
3033
  },
3034
3034
  setup(e) {
3035
- const t = V(), n = S(() => t.title), o = S(() => t.logo);
3035
+ const t = V(), n = w(() => t.title), o = w(() => t.logo);
3036
3036
  return (l, s) => {
3037
3037
  const a = A("router-link");
3038
3038
  return i(), b("div", {
3039
3039
  class: Q(["sidebar-logo-container", { collapse: l.collapse }])
3040
3040
  }, [
3041
- u(nn, { name: "sidebarLogoFade" }, {
3041
+ u(an, { name: "sidebarLogoFade" }, {
3042
3042
  default: c(() => [
3043
3043
  l.collapse ? (i(), h(a, {
3044
3044
  key: "collapse",
@@ -3050,7 +3050,7 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3050
3050
  key: 0,
3051
3051
  src: o.value,
3052
3052
  class: "sidebar-logo"
3053
- }, null, 8, Ml)) : (i(), b("h1", Dl, M(n.value), 1)),
3053
+ }, null, 8, Vl)) : (i(), b("h1", Ul, M(n.value), 1)),
3054
3054
  s[0] || (s[0] = v("div", null, "系统", -1))
3055
3055
  ]),
3056
3056
  _: 1
@@ -3064,8 +3064,8 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3064
3064
  key: 0,
3065
3065
  src: o.value,
3066
3066
  class: "sidebar-logo"
3067
- }, null, 8, jl)) : O("", !0),
3068
- v("h1", Nl, M(n.value), 1)
3067
+ }, null, 8, ql)) : B("", !0),
3068
+ v("h1", Hl, M(n.value), 1)
3069
3069
  ]),
3070
3070
  _: 1
3071
3071
  }))
@@ -3075,7 +3075,7 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3075
3075
  ], 2);
3076
3076
  };
3077
3077
  }
3078
- }), ql = /* @__PURE__ */ P(Vl, [["__scopeId", "data-v-7c0ca32e"]]), Ul = {
3078
+ }), Gl = /* @__PURE__ */ P(Fl, [["__scopeId", "data-v-7c0ca32e"]]), zl = {
3079
3079
  props: {
3080
3080
  to: {
3081
3081
  type: String,
@@ -3088,10 +3088,10 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3088
3088
  },
3089
3089
  methods: {
3090
3090
  compType(e) {
3091
- return at(e) || this.newTab ? "a" : "router-link";
3091
+ return it(e) || this.newTab ? "a" : "router-link";
3092
3092
  },
3093
3093
  linkProps(e) {
3094
- return at(e) ? {
3094
+ return it(e) ? {
3095
3095
  is: "a",
3096
3096
  href: e,
3097
3097
  target: "_blank",
@@ -3108,15 +3108,15 @@ const El = /* @__PURE__ */ P(Sl, [["render", xl], ["__scopeId", "data-v-cd18f87f
3108
3108
  }
3109
3109
  }
3110
3110
  };
3111
- function Hl(e, t, n, o, l, s) {
3112
- return i(), h(Ue(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
3111
+ function Jl(e, t, n, o, l, s) {
3112
+ return i(), h(He(s.compType(n.to)), Z(re(s.linkProps(n.to))), {
3113
3113
  default: c(() => [
3114
3114
  pe(e.$slots, "default")
3115
3115
  ]),
3116
3116
  _: 3
3117
3117
  }, 16);
3118
3118
  }
3119
- const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
3119
+ const Kl = /* @__PURE__ */ P(zl, [["render", Jl]]), Wl = {
3120
3120
  computed: {
3121
3121
  // @ts-ignore
3122
3122
  device() {
@@ -3137,7 +3137,7 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
3137
3137
  }
3138
3138
  }
3139
3139
  }
3140
- }, zl = { class: "menu-content" }, Kl = /* @__PURE__ */ z({
3140
+ }, Ql = { class: "menu-content" }, Xl = /* @__PURE__ */ z({
3141
3141
  __name: "MenuContent",
3142
3142
  props: {
3143
3143
  meta: {
@@ -3151,21 +3151,21 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
3151
3151
  setup(e) {
3152
3152
  return (t, n) => {
3153
3153
  const o = A("VIcon");
3154
- return i(), b(B, null, [
3154
+ return i(), b(O, null, [
3155
3155
  u(o, {
3156
3156
  name: e.meta.icon || "ra-all"
3157
3157
  }, null, 8, ["name"]),
3158
- v("span", zl, M(e.meta.title), 1)
3158
+ v("span", Ql, M(e.meta.title), 1)
3159
3159
  ], 64);
3160
3160
  };
3161
3161
  }
3162
- }), Jl = {
3162
+ }), Zl = {
3163
3163
  name: "SidebarItem",
3164
3164
  components: {
3165
- AppLink: Fl,
3166
- MenuContent: Kl
3165
+ AppLink: Kl,
3166
+ MenuContent: Xl
3167
3167
  },
3168
- mixins: [Gl],
3168
+ mixins: [Wl],
3169
3169
  props: {
3170
3170
  // route object
3171
3171
  item: {
@@ -3183,7 +3183,7 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
3183
3183
  },
3184
3184
  methods: {
3185
3185
  itemClick() {
3186
- _e.remove("table_filter:" + this.$props.to);
3186
+ ve.remove("table_filter:" + this.$props.to);
3187
3187
  },
3188
3188
  getTo(e) {
3189
3189
  try {
@@ -3193,14 +3193,14 @@ const Fl = /* @__PURE__ */ P(Ul, [["render", Hl]]), Gl = {
3193
3193
  }
3194
3194
  }
3195
3195
  }
3196
- }, Wl = {
3196
+ }, Yl = {
3197
3197
  key: 0,
3198
3198
  class: "menu-wrapper"
3199
3199
  };
3200
- function Ql(e, t, n, o, l, s) {
3201
- const a = A("menu-content"), r = Un, p = A("app-link"), f = A("sidebar-item", !0), m = Hn;
3202
- return n.item.hidden !== !1 ? (i(), b("div", Wl, [
3203
- n.item.meta && n.item.meta.menuType === 2 ? (i(), b(B, { key: 0 }, [
3200
+ function es(e, t, n, o, l, s) {
3201
+ const a = A("menu-content"), r = zn, p = A("app-link"), d = A("sidebar-item", !0), f = Jn;
3202
+ return n.item.hidden !== !1 ? (i(), b("div", Yl, [
3203
+ n.item.meta && n.item.meta.menuType === 2 ? (i(), b(O, { key: 0 }, [
3204
3204
  n.item.meta ? (i(), h(p, {
3205
3205
  key: 0,
3206
3206
  to: n.to,
@@ -3221,8 +3221,8 @@ function Ql(e, t, n, o, l, s) {
3221
3221
  }, 8, ["index", "class", "onClick"])
3222
3222
  ]),
3223
3223
  _: 1
3224
- }, 8, ["to", "new-tab"])) : O("", !0)
3225
- ], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(m, {
3224
+ }, 8, ["to", "new-tab"])) : B("", !0)
3225
+ ], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (i(), h(f, {
3226
3226
  key: 1,
3227
3227
  ref: "subMenu",
3228
3228
  index: n.to,
@@ -3245,7 +3245,7 @@ function Ql(e, t, n, o, l, s) {
3245
3245
  }, null, 8, ["meta"]))
3246
3246
  ]),
3247
3247
  default: c(() => [
3248
- (i(!0), b(B, null, j(n.item.children, (y) => (i(), h(f, {
3248
+ (i(!0), b(O, null, j(n.item.children, (y) => (i(), h(d, {
3249
3249
  key: y.path,
3250
3250
  "is-nest": !0,
3251
3251
  item: y,
@@ -3254,68 +3254,68 @@ function Ql(e, t, n, o, l, s) {
3254
3254
  }, null, 8, ["item", "to"]))), 128))
3255
3255
  ]),
3256
3256
  _: 1
3257
- }, 8, ["index", "class"])) : O("", !0)
3258
- ])) : O("", !0);
3257
+ }, 8, ["index", "class"])) : B("", !0)
3258
+ ])) : B("", !0);
3259
3259
  }
3260
- const Xl = /* @__PURE__ */ P(Jl, [["render", Ql]]), Zl = /* @__PURE__ */ z({
3260
+ const ts = /* @__PURE__ */ P(Zl, [["render", es]]), ns = /* @__PURE__ */ z({
3261
3261
  __name: "SearchMenu",
3262
3262
  setup(e) {
3263
3263
  const t = N();
3264
- function n(f) {
3265
- return f.filter((m) => m.meta?.menuType === 0 ? !1 : (m.children && (m.children = n(m.children), m.children.length === 0 && delete m.children), !0));
3264
+ function n(d) {
3265
+ return d.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
3266
3266
  }
3267
- const o = $(""), l = S(() => t.remoteRouter), s = Ee(), a = S(() => {
3268
- let f = [];
3269
- return l.value.forEach((m) => {
3270
- f = f.concat(x(m.routes));
3271
- }), n(f);
3267
+ const o = $(""), l = w(() => t.remoteRouter), s = Ie(), a = w(() => {
3268
+ let d = [];
3269
+ return l.value.forEach((f) => {
3270
+ d = d.concat(x(f.routes));
3271
+ }), n(d);
3272
3272
  });
3273
- function r(f) {
3274
- let m = f;
3275
- if (f.meta.menuType === 1 && f.children && f.children.length > 0) {
3276
- for (let y = 0; y < f.children.length; y++)
3277
- if (f.children[y].path.indexOf("/:") === -1) {
3278
- m = f.children[y];
3273
+ function r(d) {
3274
+ let f = d;
3275
+ if (d.meta.menuType === 1 && d.children && d.children.length > 0) {
3276
+ for (let y = 0; y < d.children.length; y++)
3277
+ if (d.children[y].path.indexOf("/:") === -1) {
3278
+ f = d.children[y];
3279
3279
  break;
3280
3280
  }
3281
3281
  }
3282
- return s.resolve(m.redirect ? m.redirect : m).fullPath;
3282
+ return s.resolve(f.redirect ? f.redirect : f).fullPath;
3283
3283
  }
3284
- function p(f) {
3285
- s.push(f), o.value = "";
3284
+ function p(d) {
3285
+ s.push(d), o.value = "";
3286
3286
  }
3287
- return (f, m) => {
3288
- const y = ze, _ = Fn, C = Ge;
3287
+ return (d, f) => {
3288
+ const y = Je, _ = Kn, C = ze;
3289
3289
  return i(), h(C, {
3290
- modelValue: d(o),
3291
- "onUpdate:modelValue": m[0] || (m[0] = (E) => qe(o) ? o.value = E : null),
3290
+ modelValue: m(o),
3291
+ "onUpdate:modelValue": f[0] || (f[0] = (E) => qe(o) ? o.value = E : null),
3292
3292
  filterable: "",
3293
3293
  placeholder: "搜索菜单...",
3294
3294
  class: "search-menu",
3295
3295
  onChange: p
3296
3296
  }, {
3297
3297
  default: c(() => [
3298
- (i(!0), b(B, null, j(d(a), (E) => (i(), b(B, {
3298
+ (i(!0), b(O, null, j(m(a), (E) => (i(), b(O, {
3299
3299
  key: E.path
3300
3300
  }, [
3301
- E.children !== void 0 ? (i(), b(B, { key: 0 }, [
3301
+ E.children !== void 0 ? (i(), b(O, { key: 0 }, [
3302
3302
  E.meta.menuType !== 0 ? (i(), h(_, {
3303
3303
  key: E.path + "-",
3304
3304
  label: E.meta.title
3305
3305
  }, {
3306
3306
  default: c(() => [
3307
- (i(!0), b(B, null, j(E.children, (w, g) => (i(), b(B, {
3308
- key: w.path
3307
+ (i(!0), b(O, null, j(E.children, (S, g) => (i(), b(O, {
3308
+ key: S.path
3309
3309
  }, [
3310
3310
  E.meta.menuType !== 0 ? (i(), h(y, {
3311
3311
  key: 0,
3312
- label: (g === E.children.length - 1 ? "└─" : "├─") + w.meta.title,
3313
- value: r(w)
3314
- }, null, 8, ["label", "value"])) : O("", !0)
3312
+ label: (g === E.children.length - 1 ? "└─" : "├─") + S.meta.title,
3313
+ value: r(S)
3314
+ }, null, 8, ["label", "value"])) : B("", !0)
3315
3315
  ], 64))), 128))
3316
3316
  ]),
3317
3317
  _: 2
3318
- }, 1032, ["label"])) : O("", !0)
3318
+ }, 1032, ["label"])) : B("", !0)
3319
3319
  ], 64)) : (i(), h(y, {
3320
3320
  key: 1,
3321
3321
  label: "" + E.meta.title,
@@ -3327,12 +3327,12 @@ const Xl = /* @__PURE__ */ P(Jl, [["render", Ql]]), Zl = /* @__PURE__ */ z({
3327
3327
  }, 8, ["modelValue"]);
3328
3328
  };
3329
3329
  }
3330
- }), Yl = /* @__PURE__ */ P(Zl, [["__scopeId", "data-v-1821c9c2"]]);
3331
- 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 || {});
3332
- const es = /* @__PURE__ */ z({
3330
+ }), os = /* @__PURE__ */ P(ns, [["__scopeId", "data-v-1821c9c2"]]);
3331
+ var K = /* @__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))(K || {}), 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 || {});
3332
+ const ls = /* @__PURE__ */ z({
3333
3333
  __name: "index",
3334
3334
  setup(e) {
3335
- const t = ee(), n = N(), o = V(), l = S(() => t.sidebar), s = S(() => n.remoteRouter), a = S(() => n.customRouter), r = Ee(), p = Y(), f = S(() => {
3335
+ const t = ee(), n = N(), o = V(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), a = w(() => n.customRouter), r = Ie(), p = Y(), d = w(() => {
3336
3336
  let g = [];
3337
3337
  return r.options.routes.concat(a.value || []).forEach((I) => {
3338
3338
  I.path === "/" ? g = g.concat(I.children || []) : g.push(I);
@@ -3340,7 +3340,7 @@ const es = /* @__PURE__ */ z({
3340
3340
  { label: "", routes: g },
3341
3341
  ...s.value
3342
3342
  ]);
3343
- }), m = S(() => {
3343
+ }), f = w(() => {
3344
3344
  const g = p.matched;
3345
3345
  for (let I = g.length - 1; I >= 0; I--) {
3346
3346
  const F = g[I];
@@ -3348,48 +3348,48 @@ const es = /* @__PURE__ */ z({
3348
3348
  return E(), r.resolve(F.redirect ? F.redirect : F).fullPath;
3349
3349
  }
3350
3350
  return "";
3351
- }), y = S(() => o.sidebarLogo), _ = S(() => ({
3351
+ }), y = w(() => o.sidebarLogo), _ = w(() => ({
3352
3352
  menuBg: "#304156",
3353
3353
  menuText: "#bfcbd9",
3354
3354
  menuActiveText: "#409EFF"
3355
- })), C = S(() => !l.value.opened);
3356
- Se(() => E());
3355
+ })), C = w(() => !l.value.opened);
3356
+ xe(() => E());
3357
3357
  function E() {
3358
- ht("is-active", 200);
3358
+ yt("is-active", 200);
3359
3359
  }
3360
- function w(g) {
3361
- return g.filter((I) => [G.dir, G.menu].indexOf(I.meta.menuType) !== -1).map((I) => (I = Object.assign({}, I), I.children && (I.children = w(I.children)), I));
3360
+ function S(g) {
3361
+ return g.filter((I) => [G.dir, G.menu].indexOf(I.meta.menuType) !== -1).map((I) => (I = Object.assign({}, I), I.children && (I.children = S(I.children)), I));
3362
3362
  }
3363
3363
  return (g, I) => {
3364
- const F = zn, le = Gn;
3364
+ const F = Qn, le = Wn;
3365
3365
  return i(), b("div", {
3366
- class: Q({ "has-logo": d(y) })
3366
+ class: Q({ "has-logo": m(y) })
3367
3367
  }, [
3368
- d(y) ? (i(), h(ql, {
3368
+ m(y) ? (i(), h(Gl, {
3369
3369
  key: 0,
3370
- collapse: d(C)
3371
- }, null, 8, ["collapse"])) : O("", !0),
3370
+ collapse: m(C)
3371
+ }, null, 8, ["collapse"])) : B("", !0),
3372
3372
  u(le, { "wrap-class": "scrollbar-wrapper" }, {
3373
3373
  default: c(() => [
3374
- d(C) ? O("", !0) : (i(), h(Yl, { key: 0 })),
3374
+ m(C) ? B("", !0) : (i(), h(os, { key: 0 })),
3375
3375
  u(F, {
3376
- "default-active": d(m),
3377
- collapse: d(C),
3378
- "background-color": d(_).menuBg,
3379
- "text-color": d(_).menuText,
3376
+ "default-active": m(f),
3377
+ collapse: m(C),
3378
+ "background-color": m(_).menuBg,
3379
+ "text-color": m(_).menuText,
3380
3380
  "unique-opened": !1,
3381
- "active-text-color": d(_).menuActiveText,
3381
+ "active-text-color": m(_).menuActiveText,
3382
3382
  "collapse-transition": !1,
3383
3383
  mode: "vertical"
3384
3384
  }, {
3385
3385
  default: c(() => [
3386
- (i(!0), b(B, null, j(d(f), (k, q) => (i(), b(B, {
3387
- key: q + "-module"
3386
+ (i(!0), b(O, null, j(m(d), (k, U) => (i(), b(O, {
3387
+ key: U + "-module"
3388
3388
  }, [
3389
- (i(!0), b(B, null, j(w(k.routes), (K) => (i(), h(Xl, {
3390
- key: K.path,
3391
- item: K,
3392
- to: g.$router.resolve(K.redirect ? K.redirect : K).fullPath
3389
+ (i(!0), b(O, null, j(S(k.routes), (J) => (i(), h(ts, {
3390
+ key: J.path,
3391
+ item: J,
3392
+ to: g.$router.resolve(J.redirect ? J.redirect : J).fullPath
3393
3393
  }, null, 8, ["item", "to"]))), 128))
3394
3394
  ], 64))), 128))
3395
3395
  ]),
@@ -3401,133 +3401,133 @@ const es = /* @__PURE__ */ z({
3401
3401
  ], 2);
3402
3402
  };
3403
3403
  }
3404
- }), ts = /* @__PURE__ */ P(es, [["__scopeId", "data-v-5b1cbaf5"]]), ns = { class: "app-main" }, os = {
3404
+ }), ss = /* @__PURE__ */ P(ls, [["__scopeId", "data-v-5b1cbaf5"]]), as = { class: "app-main" }, is = {
3405
3405
  __name: "AppMain",
3406
3406
  setup(e) {
3407
3407
  const t = Y(), n = [], o = $(0);
3408
- return Tn(() => {
3408
+ return Pn(() => {
3409
3409
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3410
3410
  }), (l, s) => {
3411
- const a = A("router-view"), r = Kn;
3412
- return i(), b("section", ns, [
3411
+ const a = A("router-view"), r = Xn;
3412
+ return i(), b("section", as, [
3413
3413
  (i(), h(a, {
3414
- key: l.$route.fullPath + d(o)
3414
+ key: l.$route.fullPath + m(o)
3415
3415
  })),
3416
3416
  u(r, { bottom: 50 })
3417
3417
  ]);
3418
3418
  };
3419
3419
  }
3420
- }, ls = /* @__PURE__ */ P(os, [["__scopeId", "data-v-ca0f0d98"]]), ss = { class: "main-container" }, as = 992, is = {
3420
+ }, rs = /* @__PURE__ */ P(is, [["__scopeId", "data-v-ca0f0d98"]]), cs = { class: "main-container" }, us = 992, ps = {
3421
3421
  __name: "index",
3422
3422
  setup(e) {
3423
- const { body: t } = document, n = ee(), o = V(), l = S(() => n.sidebar), s = S(() => n.device), a = S(() => o.fixedHeader), r = S(() => ({
3423
+ const { body: t } = document, n = ee(), o = V(), l = w(() => n.sidebar), s = w(() => n.device), a = w(() => o.fixedHeader), r = w(() => ({
3424
3424
  hideSidebar: !l.value.opened,
3425
3425
  openSidebar: l.value.opened,
3426
3426
  withoutAnimation: l.value.withoutAnimation,
3427
3427
  mobile: s.value === "mobile"
3428
- })), p = () => t.getBoundingClientRect().width - 1 < as;
3429
- oo(window, "resize", () => m());
3430
- const f = () => n.closeSideBar({ withoutAnimation: !1 }), m = () => {
3428
+ })), p = () => t.getBoundingClientRect().width - 1 < us;
3429
+ io(window, "resize", () => f());
3430
+ const d = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
3431
3431
  if (!document.hidden) {
3432
3432
  const y = p();
3433
3433
  n.toggleDevice(y ? "mobile" : "desktop"), y && n.closeSideBar({ withoutAnimation: !0 });
3434
3434
  }
3435
3435
  };
3436
3436
  return (y, _) => (i(), b("div", {
3437
- class: Q([d(r), "app-wrapper"])
3437
+ class: Q([m(r), "app-wrapper"])
3438
3438
  }, [
3439
- d(s) === "mobile" && d(l).opened ? (i(), b("div", {
3439
+ m(s) === "mobile" && m(l).opened ? (i(), b("div", {
3440
3440
  key: 0,
3441
3441
  class: "drawer-bg",
3442
- onClick: f
3443
- })) : O("", !0),
3444
- u(d(ts), { class: "sidebar-container" }),
3445
- v("div", ss, [
3442
+ onClick: d
3443
+ })) : B("", !0),
3444
+ u(m(ss), { class: "sidebar-container" }),
3445
+ v("div", cs, [
3446
3446
  v("div", {
3447
- class: Q({ "fixed-header": d(a) })
3447
+ class: Q({ "fixed-header": m(a) })
3448
3448
  }, [
3449
- u(d(Rl))
3449
+ u(m(Nl))
3450
3450
  ], 2),
3451
- u(d(ls))
3451
+ u(m(rs))
3452
3452
  ])
3453
3453
  ], 2));
3454
3454
  }
3455
- }, Mt = /* @__PURE__ */ P(is, [["__scopeId", "data-v-b7ab74f0"]]), rs = { id: "login" }, cs = { id: "form" }, us = {
3455
+ }, jt = /* @__PURE__ */ P(ps, [["__scopeId", "data-v-b7ab74f0"]]), ds = { id: "login" }, fs = { id: "form" }, ms = {
3456
3456
  key: 0,
3457
3457
  class: "captcha"
3458
- }, ps = ["src"], ds = { class: "tips" }, ms = { class: "sso" }, fs = /* @__PURE__ */ z({
3458
+ }, hs = ["src"], bs = { class: "tips" }, ys = { class: "sso" }, _s = /* @__PURE__ */ z({
3459
3459
  __name: "login",
3460
3460
  setup(e) {
3461
- const t = Ee(), n = Y(), o = V(), l = ee(), s = N(), a = S(() => o.loginTips), r = S(() => o.captcha), p = S(() => l.baseURL), f = $(0), m = () => f.value++, y = S(() => _.value.username.length > 0 && _.value.password.length >= 4 && (r.value ? _.value.captcha.length === 4 : !0)), _ = $({
3461
+ const t = Ie(), n = Y(), o = V(), l = ee(), s = N(), a = w(() => o.loginTips), r = w(() => o.captcha), p = w(() => l.baseURL), d = $(0), f = () => d.value++, y = w(() => _.value.username.length > 0 && _.value.password.length >= 4 && (r.value ? _.value.captcha.length === 4 : !0)), _ = $({
3462
3462
  username: "",
3463
3463
  password: "",
3464
3464
  captcha: "",
3465
3465
  sing: ""
3466
3466
  }), C = () => {
3467
3467
  if (_.value.username === "" || _.value.password === "" || r.value && _.value.captcha === "") {
3468
- Jn.error("用户名, 密码, 验证码是必须的");
3468
+ Zn.error("用户名, 密码, 验证码是必须的");
3469
3469
  return;
3470
3470
  }
3471
- r.value && (_.value.sing = so.MD5(`${_.value.username}${_.value.password}${_.value.captcha}`).toString()), s.login(_.value).then((E) => {
3471
+ r.value && (_.value.sing = co.MD5(`${_.value.username}${_.value.password}${_.value.captcha}`).toString()), s.login(_.value).then((E) => {
3472
3472
  t.push({ path: n.query?.redirect || "/" });
3473
3473
  }).catch((E) => {
3474
- f.value++;
3474
+ d.value++;
3475
3475
  });
3476
3476
  };
3477
- return (E, w) => (i(), b("div", rs, [
3478
- w[4] || (w[4] = v("h1", { id: "title" }, "登录", -1)),
3479
- v("form", cs, [
3480
- ye(v("input", {
3481
- "onUpdate:modelValue": w[0] || (w[0] = (g) => d(_).username = g),
3477
+ return (E, S) => (i(), b("div", ds, [
3478
+ S[4] || (S[4] = v("h1", { id: "title" }, "登录", -1)),
3479
+ v("form", fs, [
3480
+ _e(v("input", {
3481
+ "onUpdate:modelValue": S[0] || (S[0] = (g) => m(_).username = g),
3482
3482
  type: "text",
3483
3483
  placeholder: "用户名",
3484
3484
  class: "input"
3485
3485
  }, null, 512), [
3486
- [Te, d(_).username]
3486
+ [$e, m(_).username]
3487
3487
  ]),
3488
- ye(v("input", {
3489
- "onUpdate:modelValue": w[1] || (w[1] = (g) => d(_).password = g),
3488
+ _e(v("input", {
3489
+ "onUpdate:modelValue": S[1] || (S[1] = (g) => m(_).password = g),
3490
3490
  type: "password",
3491
3491
  placeholder: "密码",
3492
3492
  class: "input"
3493
3493
  }, null, 512), [
3494
- [Te, d(_).password]
3494
+ [$e, m(_).password]
3495
3495
  ]),
3496
- r.value ? (i(), b("div", us, [
3497
- ye(v("input", {
3498
- "onUpdate:modelValue": w[2] || (w[2] = (g) => d(_).captcha = g),
3496
+ r.value ? (i(), b("div", ms, [
3497
+ _e(v("input", {
3498
+ "onUpdate:modelValue": S[2] || (S[2] = (g) => m(_).captcha = g),
3499
3499
  type: "text",
3500
3500
  placeholder: "验证码",
3501
3501
  class: "input-captcha"
3502
3502
  }, null, 512), [
3503
- [Te, d(_).captcha]
3503
+ [$e, m(_).captcha]
3504
3504
  ]),
3505
3505
  v("img", {
3506
3506
  class: "captcha-img",
3507
- src: p.value + "/user/captcha?ts=" + d(f),
3507
+ src: p.value + "/user/captcha?ts=" + m(d),
3508
3508
  title: "点击刷新",
3509
- onClick: m
3510
- }, null, 8, ps)
3511
- ])) : O("", !0),
3509
+ onClick: f
3510
+ }, null, 8, hs)
3511
+ ])) : B("", !0),
3512
3512
  v("div", {
3513
3513
  class: Q({ input: !0, button: !0, "no-ready": !y.value }),
3514
3514
  onClick: C
3515
3515
  }, "登录", 2),
3516
- v("div", ds, [
3516
+ v("div", bs, [
3517
3517
  v("div", null, M(a.value), 1)
3518
3518
  ]),
3519
- v("div", ms, [
3520
- w[3] || (w[3] = v("div", { id: "sso-qrcode" }, null, -1)),
3521
- (i(!0), b(B, null, j(Object.keys([]), (g) => (i(), b("div", { key: g }, M(g), 1))), 128))
3519
+ v("div", ys, [
3520
+ S[3] || (S[3] = v("div", { id: "sso-qrcode" }, null, -1)),
3521
+ (i(!0), b(O, null, j(Object.keys([]), (g) => (i(), b("div", { key: g }, M(g), 1))), 128))
3522
3522
  ])
3523
3523
  ])
3524
3524
  ]));
3525
3525
  }
3526
- }), hs = {
3526
+ }), vs = {
3527
3527
  name: "NotFoundPage"
3528
- }, bs = { class: "not-found" };
3529
- function ys(e, t, n, o, l, s) {
3530
- return i(), b("div", bs, [...t[0] || (t[0] = [
3528
+ }, gs = { class: "not-found" };
3529
+ function ks(e, t, n, o, l, s) {
3530
+ return i(), b("div", gs, [...t[0] || (t[0] = [
3531
3531
  v("svg", {
3532
3532
  width: "380px",
3533
3533
  height: "500px",
@@ -3596,10 +3596,10 @@ function ys(e, t, n, o, l, s) {
3596
3596
  ], -1)
3597
3597
  ])]);
3598
3598
  }
3599
- const _s = /* @__PURE__ */ P(hs, [["render", ys], ["__scopeId", "data-v-26068803"]]), vs = [
3599
+ const Ss = /* @__PURE__ */ P(vs, [["render", ks], ["__scopeId", "data-v-26068803"]]), ws = [
3600
3600
  {
3601
3601
  path: "/",
3602
- component: Mt,
3602
+ component: jt,
3603
3603
  redirect: "/dashboard",
3604
3604
  name: "Root",
3605
3605
  meta: {
@@ -3609,49 +3609,49 @@ const _s = /* @__PURE__ */ P(hs, [["render", ys], ["__scopeId", "data-v-26068803
3609
3609
  {
3610
3610
  path: "dashboard",
3611
3611
  name: "Dashboard",
3612
- component: Oo,
3612
+ component: Ro,
3613
3613
  meta: { title: "Dashboard", icon: "el-icon-help", menuType: 2, keepAlive: !0 }
3614
3614
  }
3615
3615
  ]
3616
3616
  },
3617
3617
  {
3618
3618
  path: "/login",
3619
- component: fs,
3619
+ component: _s,
3620
3620
  meta: { title: "用户登录", menuType: 0 },
3621
3621
  hidden: !0
3622
3622
  },
3623
3623
  {
3624
3624
  path: "/404",
3625
- component: _s,
3625
+ component: Ss,
3626
3626
  meta: { menuType: 0 },
3627
3627
  hidden: !0
3628
3628
  }
3629
- ], ne = $n({
3630
- history: On(),
3631
- routes: vs
3629
+ ], ne = An({
3630
+ history: Rn(),
3631
+ routes: ws
3632
3632
  });
3633
- Re.configure({ showSpinner: !1 });
3634
- function gs(e) {
3633
+ Me.configure({ showSpinner: !1 });
3634
+ function xs(e) {
3635
3635
  e.beforeEach((t, n, o) => {
3636
- Re.start(), t.preHash = location.hash.replace("#", ""), o();
3636
+ Me.start(), t.preHash = location.hash.replace("#", ""), o();
3637
3637
  }), e.afterEach((t) => {
3638
- const n = N(L);
3638
+ const n = N(R);
3639
3639
  t.matched.length > 0 && n.updateState({
3640
3640
  key: "path",
3641
3641
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3642
- }), Re.done();
3642
+ }), Me.done();
3643
3643
  });
3644
3644
  }
3645
- function ks() {
3646
- return N(L).isLodeRemoteRoutes;
3645
+ function Es() {
3646
+ return N(R).isLodeRemoteRoutes;
3647
3647
  }
3648
- function Dt() {
3649
- return V(L).whiteRoutes || [];
3648
+ function Nt() {
3649
+ return V(R).whiteRoutes || [];
3650
3650
  }
3651
- function ws() {
3652
- return N(L).token;
3651
+ function Is() {
3652
+ return N(R).token;
3653
3653
  }
3654
- class jt {
3654
+ class Vt {
3655
3655
  type = "qrcode";
3656
3656
  flag() {
3657
3657
  }
@@ -3661,14 +3661,14 @@ class jt {
3661
3661
  showQrCode() {
3662
3662
  }
3663
3663
  }
3664
- class Ri extends jt {
3664
+ class Gi extends Vt {
3665
3665
  type = "jump";
3666
3666
  client_id = "";
3667
3667
  constructor(t) {
3668
3668
  super(), this.client_id = t.client_id;
3669
3669
  }
3670
3670
  flag() {
3671
- const t = bt("code");
3671
+ const t = _t("code");
3672
3672
  if (t)
3673
3673
  return {
3674
3674
  ticket: t,
@@ -3680,7 +3680,7 @@ class Ri extends jt {
3680
3680
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3681
3681
  }
3682
3682
  }
3683
- class Mi extends jt {
3683
+ class zi extends Vt {
3684
3684
  type = "qrcode";
3685
3685
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3686
3686
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3693,7 +3693,7 @@ class Mi extends jt {
3693
3693
  super();
3694
3694
  }
3695
3695
  flag() {
3696
- const t = bt("code");
3696
+ const t = _t("code");
3697
3697
  if (t)
3698
3698
  return {
3699
3699
  ticket: t,
@@ -3706,7 +3706,7 @@ class Mi extends jt {
3706
3706
  appid: this.appid,
3707
3707
  redirect_uri: encodeURIComponent(this.redirectUri)
3708
3708
  };
3709
- return ae(this.reloadUrl, s) + "&" + _n(l || {});
3709
+ return ae(this.reloadUrl, s) + "&" + Sn(l || {});
3710
3710
  }, n = () => {
3711
3711
  const l = {
3712
3712
  goto: encodeURIComponent(t()),
@@ -3717,52 +3717,52 @@ class Mi extends jt {
3717
3717
  const { origin: s, data: a } = l;
3718
3718
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: a }));
3719
3719
  };
3720
- this.iframe.src = n(), yn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3720
+ this.iframe.src = n(), kn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3721
3721
  "message",
3722
3722
  (l) => o(l),
3723
3723
  !1
3724
3724
  ) : typeof window.attachEvent < "u" && window.attachEvent("onmessage", (l) => this.onScanSuccess(l));
3725
3725
  }
3726
3726
  }
3727
- const Ss = {};
3728
- function xs() {
3729
- return U(V(L).sso || {}, Ss);
3727
+ const Cs = {};
3728
+ function Ts() {
3729
+ return q(V(R).sso || {}, Cs);
3730
3730
  }
3731
- function Es() {
3732
- const e = xs(), t = V(L).activeSsoKey || "", n = e[t];
3731
+ function $s() {
3732
+ const e = Ts(), t = V(R).activeSsoKey || "", n = e[t];
3733
3733
  if (n !== void 0)
3734
3734
  return n();
3735
3735
  }
3736
- function Is(e) {
3736
+ function Bs(e) {
3737
3737
  e.beforeEach(async (t, n, o) => {
3738
- if (Dt().indexOf(t.path) !== -1) {
3738
+ if (Nt().indexOf(t.path) !== -1) {
3739
3739
  o();
3740
3740
  return;
3741
3741
  }
3742
- if (ws()) {
3742
+ if (Is()) {
3743
3743
  t.query?.redirect ? o(t.query?.redirect) : o();
3744
3744
  return;
3745
3745
  }
3746
- const s = t.query.redirect || t.path, a = Es();
3746
+ const s = t.query.redirect || t.path, a = $s();
3747
3747
  if (!a) {
3748
3748
  o(`/login?redirect=${s}`);
3749
3749
  return;
3750
3750
  }
3751
- const r = a.flag(), p = N(L);
3752
- if (r && await p.login(wn(r) ? r : { ticket: r })) {
3751
+ const r = a.flag(), p = N(R);
3752
+ if (r && await p.login(In(r) ? r : { ticket: r })) {
3753
3753
  o();
3754
3754
  return;
3755
3755
  }
3756
3756
  a.jumpToLoginPage(o, `/login?redirect=${s}`);
3757
3757
  });
3758
3758
  }
3759
- const Cs = {}, Ts = { class: "loading preloader" };
3760
- function $s(e, t) {
3761
- return i(), b("div", Ts, [...t[0] || (t[0] = [
3759
+ const Os = {}, Ps = { class: "loading preloader" };
3760
+ function As(e, t) {
3761
+ return i(), b("div", Ps, [...t[0] || (t[0] = [
3762
3762
  v("div", { class: "preloader-inner" }, null, -1)
3763
3763
  ])]);
3764
3764
  }
3765
- const Os = /* @__PURE__ */ P(Cs, [["render", $s]]), Bs = {
3765
+ const Rs = /* @__PURE__ */ P(Os, [["render", As]]), Ls = {
3766
3766
  name: "VNotice",
3767
3767
  props: {
3768
3768
  dataApi: {
@@ -3791,52 +3791,52 @@ const Os = /* @__PURE__ */ P(Cs, [["render", $s]]), Bs = {
3791
3791
  this.hasNotice = Object.keys(this.$props.notice).length > 0, this.noticeProps = this.$props.notice;
3792
3792
  }
3793
3793
  };
3794
- function Ps(e, t, n, o, l, s) {
3794
+ function Ms(e, t, n, o, l, s) {
3795
3795
  const a = Ke;
3796
3796
  return i(), b("div", null, [
3797
- l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : O("", !0)
3797
+ l.hasNotice ? (i(), h(a, Z(X({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
3798
3798
  ]);
3799
3799
  }
3800
- const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /* @__PURE__ */ z({
3800
+ const Ds = /* @__PURE__ */ P(Ls, [["render", Ms]]), js = ["innerHTML"], Ns = /* @__PURE__ */ z({
3801
3801
  __name: "PageLoad",
3802
3802
  props: {
3803
3803
  schemaHandler: { type: Function, default: (e) => e },
3804
3804
  schemaApi: { default: "" }
3805
3805
  },
3806
3806
  setup(e) {
3807
- const t = e, n = ee(), o = V(), l = N(), s = Y(), a = $(!0), r = $(!1), p = $({}), f = $(""), m = $({}), y = $([]), _ = $(!1), C = S(() => l.env), E = S(() => o);
3808
- return Ve(() => {
3809
- const w = s.path.split("/").filter((k) => k), g = w.length > 1 ? w.slice(0, w.length - 1).join("/") : w[0], I = "/schema" + s.meta.path, F = { params: s.params };
3807
+ const t = e, n = ee(), o = V(), l = N(), s = Y(), a = $(!0), r = $(!1), p = $({}), d = $(""), f = $({}), y = $([]), _ = $(!1), C = w(() => l.env), E = w(() => o);
3808
+ return Ue(() => {
3809
+ const S = s.path.split("/").filter((k) => k), g = S.length > 1 ? S.slice(0, S.length - 1).join("/") : S[0], I = "/schema" + s.meta.path, F = { params: s.params };
3810
3810
  (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || I, F).then(({ data: k }) => {
3811
- a.value = !1, ie(k) && (k.notice !== void 0 && (r.value = !0, He(k.notice) ? p.value = { title: k.notice } : ie(k.notice) && (p.value = k.notice, f.value = k.notice.noticeApi), delete k.notice), y.value = k.ownerNames || [], _.value = k.serviceOffLine || !1), m.value = t.schemaHandler(k, g), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: m.value });
3811
+ a.value = !1, ie(k) && (k.notice !== void 0 && (r.value = !0, Fe(k.notice) ? p.value = { title: k.notice } : ie(k.notice) && (p.value = k.notice, d.value = k.notice.noticeApi), delete k.notice), y.value = k.ownerNames || [], _.value = k.serviceOffLine || !1), f.value = t.schemaHandler(k, g), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: f.value });
3812
3812
  });
3813
- }), (w, g) => {
3813
+ }), (S, g) => {
3814
3814
  const I = Ke;
3815
- return i(), b(B, null, [
3816
- d(y).length > 0 ? (i(), h(I, {
3815
+ return i(), b(O, null, [
3816
+ m(y).length > 0 ? (i(), h(I, {
3817
3817
  key: 0,
3818
- title: `该页面功能对应开发: [ ${d(y).join(", ")} ] 有问题可直接企微反馈`,
3818
+ title: `该页面功能对应开发: [ ${m(y).join(", ")} ] 有问题可直接企微反馈`,
3819
3819
  type: "info",
3820
3820
  style: { margin: "0 0 20px 0" },
3821
3821
  closable: !1
3822
- }, null, 8, ["title"])) : O("", !0),
3823
- d(C) === "prod" && d(_) ? (i(), b("div", {
3822
+ }, null, 8, ["title"])) : B("", !0),
3823
+ m(C) === "prod" && m(_) ? (i(), b("div", {
3824
3824
  key: 1,
3825
3825
  class: "offline-notice",
3826
- innerHTML: d(_) === !0 ? d(E).serviceOffLineNotice : d(_)
3827
- }, null, 8, Ls)) : (i(), b(B, { key: 2 }, [
3828
- d(r) ? (i(), h(As, {
3826
+ innerHTML: m(_) === !0 ? m(E).serviceOffLineNotice : m(_)
3827
+ }, null, 8, js)) : (i(), b(O, { key: 2 }, [
3828
+ m(r) ? (i(), h(Ds, {
3829
3829
  key: 0,
3830
- notice: d(p),
3830
+ notice: m(p),
3831
3831
  style: { margin: "0 0 20px 0" },
3832
- "data-api": d(f)
3833
- }, null, 8, ["notice", "data-api"])) : O("", !0),
3834
- d(a) ? (i(), h(Os, { key: 1 })) : pe(w.$slots, "default", Z(X({ key: 2 }, d(m))), void 0, !0)
3832
+ "data-api": m(d)
3833
+ }, null, 8, ["notice", "data-api"])) : B("", !0),
3834
+ m(a) ? (i(), h(Rs, { key: 1 })) : pe(S.$slots, "default", Z(X({ key: 2 }, m(f))), void 0, !0)
3835
3835
  ], 64))
3836
3836
  ], 64);
3837
3837
  };
3838
3838
  }
3839
- }), be = /* @__PURE__ */ P(Rs, [["__scopeId", "data-v-e330fdc7"]]), Nt = {
3839
+ }), ye = /* @__PURE__ */ P(Ns, [["__scopeId", "data-v-e330fdc7"]]), Ut = {
3840
3840
  __name: "table",
3841
3841
  setup(e) {
3842
3842
  const t = (n, o) => {
@@ -3845,46 +3845,46 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
3845
3845
  prop: n.orderBy.field,
3846
3846
  order: n.orderBy.mod === "desc" ? "descending" : "ascending"
3847
3847
  };
3848
- n.tableProps = U(n.tableProps, { defaultSort: s });
3848
+ n.tableProps = q(n.tableProps, { defaultSort: s });
3849
3849
  }
3850
- const l = Object.keys(fe.props);
3850
+ const l = Object.keys(me.props);
3851
3851
  return Object.keys(n).forEach((s) => {
3852
3852
  l.indexOf(s) === -1 && delete n[s];
3853
3853
  }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
3854
3854
  };
3855
- return (n, o) => (i(), h(be, { "schema-handler": t }, {
3855
+ return (n, o) => (i(), h(ye, { "schema-handler": t }, {
3856
3856
  default: c((l) => [
3857
- u(d(fe), Z(re(l)), null, 16)
3857
+ u(m(me), Z(re(l)), null, 16)
3858
3858
  ]),
3859
3859
  _: 1
3860
3860
  }));
3861
3861
  }
3862
- }, je = {
3862
+ }, Ne = {
3863
3863
  __name: "form",
3864
3864
  setup(e) {
3865
- const t = Y(), n = Ee(), o = (r, p) => {
3866
- const f = Object.keys(te.props);
3867
- return Object.keys(r).forEach((m) => {
3868
- if (f.indexOf(m) === -1) {
3869
- delete r[m];
3865
+ const t = Y(), n = Ie(), o = (r, p) => {
3866
+ const d = Object.keys(te.props);
3867
+ return Object.keys(r).forEach((f) => {
3868
+ if (d.indexOf(f) === -1) {
3869
+ delete r[f];
3870
3870
  return;
3871
3871
  }
3872
- /.*Api$/.test(m) && (r[m] = ae(r[m], t.params));
3873
- }), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${p}/update/${t.params.id}`, r.getApi || (r.getApi = `/${p}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${p}/create`)), r = U({
3872
+ /.*Api$/.test(f) && (r[f] = ae(r[f], t.params));
3873
+ }), r.saveApi === void 0 && (t.params.id !== void 0 ? (r.saveApi = `/${p}/update/${t.params.id}`, r.getApi || (r.getApi = `/${p}/get/${t.params.id}`)) : (delete r.getApi, r.saveApi = `/${p}/create`)), r = q({
3874
3874
  saveApi: p + "/save",
3875
3875
  afterSubmit: "goback",
3876
3876
  afterReset: "goback",
3877
3877
  mod: t.params.id ? "edit" : "create"
3878
3878
  }, r), r;
3879
3879
  }, l = $(0), s = () => {
3880
- Ht.request({
3880
+ Jt.request({
3881
3881
  url: "/form_mutex",
3882
3882
  method: "get",
3883
3883
  params: {
3884
3884
  path: t.fullPath
3885
3885
  }
3886
3886
  }).then((r) => {
3887
- r.data && (clearInterval(l.value), gt.alert(`${r.data}`, "操作提醒", {
3887
+ r.data && (clearInterval(l.value), St.alert(`${r.data}`, "操作提醒", {
3888
3888
  showClose: !1,
3889
3889
  showCancelButton: !0,
3890
3890
  confirmButtonText: "返回",
@@ -3895,23 +3895,23 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
3895
3895
  }));
3896
3896
  });
3897
3897
  };
3898
- Se(() => {
3898
+ xe(() => {
3899
3899
  const r = V();
3900
3900
  t.params.id !== void 0 && r.formMutex && (s(), l.value = setInterval(s, 2e3));
3901
- }), on(() => {
3901
+ }), rn(() => {
3902
3902
  clearInterval(l.value);
3903
3903
  });
3904
3904
  function a() {
3905
3905
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
3906
3906
  }
3907
- return (r, p) => (i(), h(be, { "schema-handler": o }, {
3908
- default: c((f) => [
3909
- u(d(te), Z(re(f)), null, 16)
3907
+ return (r, p) => (i(), h(ye, { "schema-handler": o }, {
3908
+ default: c((d) => [
3909
+ u(m(te), Z(re(d)), null, 16)
3910
3910
  ]),
3911
3911
  _: 1
3912
3912
  }));
3913
3913
  }
3914
- }, Ms = z({
3914
+ }, Vs = z({
3915
3915
  name: "VTree",
3916
3916
  components: {
3917
3917
  VForm: te
@@ -3967,7 +3967,7 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
3967
3967
  // 1 新增, 2 编辑
3968
3968
  treeData: [],
3969
3969
  formData: {},
3970
- localTreeProps: U({
3970
+ localTreeProps: q({
3971
3971
  "default-expand-all": !0,
3972
3972
  "expand-on-click-node": !1,
3973
3973
  props: {
@@ -4010,7 +4010,7 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
4010
4010
  },
4011
4011
  append(e, t) {
4012
4012
  this.type = 1;
4013
- const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...vn(this.$props.props?.effectData, e) };
4013
+ const n = { pid: e.id, [this.$props.props?.levelKey ?? "level"]: t.level + 1, ...wn(this.$props.props?.effectData, e) };
4014
4014
  e.children || (e.children = []), this.formData = n, this.formkey++, e.children.push(n), this.treeData = [...this.treeData];
4015
4015
  },
4016
4016
  canAppend(e, t) {
@@ -4051,25 +4051,25 @@ const As = /* @__PURE__ */ P(Bs, [["render", Ps]]), Ls = ["innerHTML"], Rs = /*
4051
4051
  });
4052
4052
  }
4053
4053
  }
4054
- }), Ds = { class: "card-header" }, js = { class: "tree-action" }, Ns = { key: 0 }, Vs = {
4054
+ }), Us = { class: "card-header" }, qs = { class: "tree-action" }, Hs = { key: 0 }, Fs = {
4055
4055
  key: 1,
4056
4056
  style: { color: "#E6A23C" }
4057
- }, qs = { class: "card-header" };
4058
- function Us(e, t, n, o, l, s) {
4059
- const a = we, r = Wn, p = Je, f = Ie, m = A("v-form"), y = he;
4057
+ }, Gs = { class: "card-header" };
4058
+ function zs(e, t, n, o, l, s) {
4059
+ const a = we, r = Yn, p = We, d = Ce, f = A("v-form"), y = he;
4060
4060
  return i(), h(y, {
4061
4061
  class: "tree-box",
4062
4062
  gutter: 20
4063
4063
  }, {
4064
4064
  default: c(() => [
4065
- u(f, {
4065
+ u(d, {
4066
4066
  span: 8,
4067
4067
  class: "tree-tree"
4068
4068
  }, {
4069
4069
  default: c(() => [
4070
4070
  u(p, { shadow: "never" }, {
4071
4071
  header: c(() => [
4072
- v("div", Ds, [
4072
+ v("div", Us, [
4073
4073
  t[3] || (t[3] = v("span", null, "列表", -1)),
4074
4074
  u(a, {
4075
4075
  type: "text",
@@ -4095,8 +4095,8 @@ function Us(e, t, n, o, l, s) {
4095
4095
  onNodeDragEnd: e.handleDragEnd
4096
4096
  }), {
4097
4097
  default: c(({ node: _, data: C }) => [
4098
- v("span", js, [
4099
- C[e.localTreeProps.props.label] ? (i(), b("span", Ns, M(C[e.localTreeProps.props.label]), 1)) : (i(), b("span", Vs, "请在右侧表单中修改 --> ")),
4098
+ v("span", qs, [
4099
+ C[e.localTreeProps.props.label] ? (i(), b("span", Hs, M(C[e.localTreeProps.props.label]), 1)) : (i(), b("span", Fs, "请在右侧表单中修改 --> ")),
4100
4100
  v("span", null, [
4101
4101
  C[e.localTreeProps.props.label] ? (i(), h(a, {
4102
4102
  key: 0,
@@ -4108,7 +4108,7 @@ function Us(e, t, n, o, l, s) {
4108
4108
  T("编辑", -1)
4109
4109
  ])]),
4110
4110
  _: 1
4111
- }, 8, ["onClick"])) : O("", !0),
4111
+ }, 8, ["onClick"])) : B("", !0),
4112
4112
  e.canAppend(C, _) ? (i(), h(a, {
4113
4113
  key: 1,
4114
4114
  class: "button",
@@ -4119,7 +4119,7 @@ function Us(e, t, n, o, l, s) {
4119
4119
  T("添加", -1)
4120
4120
  ])]),
4121
4121
  _: 1
4122
- }, 8, ["onClick"])) : O("", !0),
4122
+ }, 8, ["onClick"])) : B("", !0),
4123
4123
  C.children === void 0 || C.children.length === 0 ? (i(), h(a, {
4124
4124
  key: 2,
4125
4125
  class: "button",
@@ -4130,19 +4130,19 @@ function Us(e, t, n, o, l, s) {
4130
4130
  T("删除", -1)
4131
4131
  ])]),
4132
4132
  _: 1
4133
- }, 8, ["onClick"])) : O("", !0)
4133
+ }, 8, ["onClick"])) : B("", !0)
4134
4134
  ])
4135
4135
  ])
4136
4136
  ]),
4137
4137
  _: 1
4138
- }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : O("", !0)
4138
+ }, 16, ["data", "allow-drag", "allow-drop", "onNodeDragEnd"])) : B("", !0)
4139
4139
  ]),
4140
4140
  _: 1
4141
4141
  })
4142
4142
  ]),
4143
4143
  _: 1
4144
4144
  }),
4145
- u(f, {
4145
+ u(d, {
4146
4146
  span: 16,
4147
4147
  class: "tree-form"
4148
4148
  }, {
@@ -4152,19 +4152,19 @@ function Us(e, t, n, o, l, s) {
4152
4152
  shadow: "never"
4153
4153
  }, {
4154
4154
  header: c(() => [
4155
- v("div", qs, [
4155
+ v("div", Gs, [
4156
4156
  v("span", null, M(e.formType), 1)
4157
4157
  ])
4158
4158
  ]),
4159
4159
  default: c(() => [
4160
- (i(), h(m, X({
4160
+ (i(), h(f, X({
4161
4161
  key: e.formkey,
4162
4162
  modelValue: e.formData,
4163
4163
  "onUpdate:modelValue": t[1] || (t[1] = (_) => e.formData = _)
4164
4164
  }, e.formProps, { onSubmit: e.submit }), null, 16, ["modelValue", "onSubmit"]))
4165
4165
  ]),
4166
4166
  _: 1
4167
- })) : O("", !0)
4167
+ })) : B("", !0)
4168
4168
  ]),
4169
4169
  _: 1
4170
4170
  })
@@ -4172,18 +4172,18 @@ function Us(e, t, n, o, l, s) {
4172
4172
  _: 1
4173
4173
  });
4174
4174
  }
4175
- const pt = /* @__PURE__ */ P(Ms, [["render", Us]]), Hs = {
4175
+ const dt = /* @__PURE__ */ P(Vs, [["render", zs]]), Js = {
4176
4176
  __name: "tree",
4177
4177
  setup(e) {
4178
4178
  const t = (n, o) => {
4179
- const l = Object.keys(pt.props);
4179
+ const l = Object.keys(dt.props);
4180
4180
  return Object.keys(n).forEach((s) => {
4181
4181
  l.indexOf(s) === -1 && delete n[s];
4182
4182
  }), n;
4183
4183
  };
4184
- return (n, o) => (i(), h(be, { "schema-handler": t }, {
4184
+ return (n, o) => (i(), h(ye, { "schema-handler": t }, {
4185
4185
  default: c((l) => [
4186
- u(pt, Z(re(l)), null, 16)
4186
+ u(dt, Z(re(l)), null, 16)
4187
4187
  ]),
4188
4188
  _: 1
4189
4189
  }));
@@ -4192,14 +4192,14 @@ const pt = /* @__PURE__ */ P(Ms, [["render", Us]]), Hs = {
4192
4192
  __name: "container",
4193
4193
  setup(e) {
4194
4194
  const t = $(0);
4195
- return Bn(() => {
4195
+ return Ln(() => {
4196
4196
  t.value++;
4197
4197
  }), (n, o) => {
4198
4198
  const l = A("router-view");
4199
4199
  return i(), h(l);
4200
4200
  };
4201
4201
  }
4202
- }, Fs = {
4202
+ }, Ks = {
4203
4203
  title: {
4204
4204
  text: ""
4205
4205
  },
@@ -4228,34 +4228,34 @@ const pt = /* @__PURE__ */ P(Ms, [["render", Us]]), Hs = {
4228
4228
  },
4229
4229
  series: []
4230
4230
  };
4231
- function Gs(e, t, n) {
4231
+ function Ws(e, t, n) {
4232
4232
  if (n.length === 0)
4233
4233
  return {};
4234
- let o = U({}, Fs);
4235
- if (o.title.text = e, He(t)) {
4234
+ let o = q({}, Ks);
4235
+ if (o.title.text = e, Fe(t)) {
4236
4236
  const l = [], s = Object.keys(n[0]);
4237
- let a = s[0], r = s.filter((f, m) => m > 0), p = t;
4237
+ let a = s[0], r = s.filter((d, f) => f > 0), p = t;
4238
4238
  if (t.indexOf(":") > -1) {
4239
- const f = t.split(":"), m = f[1].split(",");
4240
- p = f[0], a = m[0], r = m.filter((y, _) => _ > 0);
4239
+ const d = t.split(":"), f = d[1].split(",");
4240
+ p = d[0], a = f[0], r = f.filter((y, _) => _ > 0);
4241
4241
  }
4242
- r.forEach((f) => {
4243
- const m = [];
4242
+ r.forEach((d) => {
4243
+ const f = [];
4244
4244
  n.forEach((y) => {
4245
- m.push(y[f]);
4245
+ f.push(y[d]);
4246
4246
  }), o.series.push({
4247
- name: f,
4247
+ name: d,
4248
4248
  type: p,
4249
4249
  smooth: !0,
4250
- data: m
4251
- }), o.legend.data.push(f);
4252
- }), n.forEach((f) => {
4253
- l.push(f[a]);
4250
+ data: f
4251
+ }), o.legend.data.push(d);
4252
+ }), n.forEach((d) => {
4253
+ l.push(d[a]);
4254
4254
  }), o.xAxis.data = l;
4255
4255
  }
4256
- return ie(t) && (o = U(o, t)), o;
4256
+ return ie(t) && (o = q(o, t)), o;
4257
4257
  }
4258
- const zs = z({
4258
+ const Qs = z({
4259
4259
  name: "NumberPanel",
4260
4260
  props: {
4261
4261
  dataList: {
@@ -4266,27 +4266,27 @@ const zs = z({
4266
4266
  data() {
4267
4267
  return {};
4268
4268
  }
4269
- }), Ks = { class: "number-panel-title" }, Js = { class: "number" }, Ws = { class: "name" };
4270
- function Qs(e, t, n, o, l, s) {
4271
- return i(!0), b(B, null, j(e.dataList, (a, r) => (i(), b("span", { key: r }, [
4272
- v("div", Ks, [
4273
- (i(!0), b(B, null, j(Object.keys(a), (p, f) => (i(), b("div", {
4274
- key: f,
4269
+ }), Xs = { class: "number-panel-title" }, Zs = { class: "number" }, Ys = { class: "name" };
4270
+ function ea(e, t, n, o, l, s) {
4271
+ return i(!0), b(O, null, j(e.dataList, (a, r) => (i(), b("span", { key: r }, [
4272
+ v("div", Xs, [
4273
+ (i(!0), b(O, null, j(Object.keys(a), (p, d) => (i(), b("div", {
4274
+ key: d,
4275
4275
  class: "title-inner"
4276
4276
  }, [
4277
- v("p", Js, M(a[p]), 1),
4278
- v("p", Ws, M(p), 1)
4277
+ v("p", Zs, M(a[p]), 1),
4278
+ v("p", Ys, M(p), 1)
4279
4279
  ]))), 128))
4280
4280
  ])
4281
4281
  ]))), 128);
4282
4282
  }
4283
- const Xs = /* @__PURE__ */ P(zs, [["render", Qs], ["__scopeId", "data-v-cc0d8293"]]), Zs = {
4283
+ const ta = /* @__PURE__ */ P(Qs, [["render", ea], ["__scopeId", "data-v-cc0d8293"]]), na = {
4284
4284
  components: {
4285
- Chart: Xn,
4286
- Md: lo,
4287
- Json: We,
4288
- Table: fe,
4289
- Number: Xs,
4285
+ Chart: to,
4286
+ Md: ro,
4287
+ Json: Qe,
4288
+ Table: me,
4289
+ Number: ta,
4290
4290
  Html: ""
4291
4291
  },
4292
4292
  props: {
@@ -4307,14 +4307,14 @@ const Xs = /* @__PURE__ */ P(zs, [["render", Qs], ["__scopeId", "data-v-cc0d8293
4307
4307
  };
4308
4308
  if (l === "chart")
4309
4309
  return {
4310
- options: Gs(o.id, o.chart, o.data)
4310
+ options: Ws(o.id, o.chart, o.data)
4311
4311
  };
4312
4312
  if (l === "md")
4313
4313
  return {
4314
4314
  source: o.data
4315
4315
  };
4316
4316
  if (l === "table") {
4317
- if (!yt(o.data))
4317
+ if (!vt(o.data))
4318
4318
  return { showPagination: !1 };
4319
4319
  const s = [];
4320
4320
  return o.data[0] && Object.keys(o.data[0]).forEach((a, r) => {
@@ -4331,21 +4331,21 @@ const Xs = /* @__PURE__ */ P(zs, [["render", Qs], ["__scopeId", "data-v-cc0d8293
4331
4331
  };
4332
4332
  }
4333
4333
  };
4334
- function Ys(e, t, n, o, l, s) {
4335
- const a = Je, r = ln("resize");
4336
- return ye((i(), h(a, {
4334
+ function oa(e, t, n, o, l, s) {
4335
+ const a = We, r = cn("resize");
4336
+ return _e((i(), h(a, {
4337
4337
  shadow: "never",
4338
4338
  class: "part"
4339
4339
  }, {
4340
4340
  default: c(() => [
4341
- (i(), h(Ue(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
4341
+ (i(), h(He(o.comptype()), Z(re(o.compprops(n.option))), null, 16))
4342
4342
  ]),
4343
4343
  _: 1
4344
4344
  })), [
4345
4345
  [r, !0]
4346
4346
  ]);
4347
4347
  }
4348
- const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1"]]), ta = /* @__PURE__ */ z({
4348
+ const la = /* @__PURE__ */ P(na, [["render", oa], ["__scopeId", "data-v-a5a65cc1"]]), sa = /* @__PURE__ */ z({
4349
4349
  __name: "index",
4350
4350
  props: {
4351
4351
  filter: {
@@ -4359,12 +4359,12 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4359
4359
  },
4360
4360
  setup(e) {
4361
4361
  const t = Y();
4362
- Se(() => {
4362
+ xe(() => {
4363
4363
  });
4364
4364
  const n = e, o = $({});
4365
- Ve(() => {
4366
- n.filter?.forEach((m) => {
4367
- m.default !== null && (o.value[m.field] = m.default);
4365
+ Ue(() => {
4366
+ n.filter?.forEach((f) => {
4367
+ f.default !== null && (o.value[f.field] = f.default);
4368
4368
  });
4369
4369
  });
4370
4370
  const l = {
@@ -4377,23 +4377,23 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4377
4377
  cancelButton: {
4378
4378
  text: "重置"
4379
4379
  }
4380
- }, s = $(1), a = $(n.filter), r = $(n.dataPart), p = S(() => {
4381
- let m = t.params.id;
4382
- if (!m) {
4380
+ }, s = $(1), a = $(n.filter), r = $(n.dataPart), p = w(() => {
4381
+ let f = t.params.id;
4382
+ if (!f) {
4383
4383
  const y = t.path.split("/");
4384
- m = y[y.length - 1];
4384
+ f = y[y.length - 1];
4385
4385
  }
4386
- return "/focusbi_report/view/" + m;
4387
- }), f = (m) => {
4388
- Ht.get(p.value, { params: m }).then(({ data: y }) => {
4386
+ return "/focusbi_report/view/" + f;
4387
+ }), d = (f) => {
4388
+ Jt.get(p.value, { params: f }).then(({ data: y }) => {
4389
4389
  a.value = y.filter, r.value = y.dataPart, s.value++;
4390
4390
  });
4391
4391
  };
4392
- return (m, y) => {
4393
- const _ = Je, C = Ie, E = Ke, w = he;
4394
- return i(), h(w, null, {
4392
+ return (f, y) => {
4393
+ const _ = We, C = Ce, E = Ke, S = he;
4394
+ return i(), h(S, null, {
4395
4395
  default: c(() => [
4396
- d(a).length > 0 ? (i(), h(C, {
4396
+ m(a).length > 0 ? (i(), h(C, {
4397
4397
  key: 0,
4398
4398
  span: 24
4399
4399
  }, {
@@ -4403,24 +4403,24 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4403
4403
  class: "part-filter"
4404
4404
  }, {
4405
4405
  default: c(() => [
4406
- u(d(te), {
4407
- modelValue: d(o),
4406
+ u(m(te), {
4407
+ modelValue: m(o),
4408
4408
  "onUpdate:modelValue": y[0] || (y[0] = (g) => qe(o) ? o.value = g : null),
4409
- "form-items": d(a),
4409
+ "form-items": m(a),
4410
4410
  options: l,
4411
- onSubmit: f
4411
+ onSubmit: d
4412
4412
  }, null, 8, ["modelValue", "form-items"])
4413
4413
  ]),
4414
4414
  _: 1
4415
4415
  })
4416
4416
  ]),
4417
4417
  _: 1
4418
- })) : O("", !0),
4418
+ })) : B("", !0),
4419
4419
  u(C, { span: 24 }, {
4420
4420
  default: c(() => [
4421
- u(w, { gutter: 20 }, {
4421
+ u(S, { gutter: 20 }, {
4422
4422
  default: c(() => [
4423
- (i(!0), b(B, null, j(d(r), (g, I) => (i(), h(C, {
4423
+ (i(!0), b(O, null, j(m(r), (g, I) => (i(), h(C, {
4424
4424
  key: I,
4425
4425
  span: g.col || 24
4426
4426
  }, {
@@ -4434,8 +4434,8 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4434
4434
  T(M(g.errMsg), 1)
4435
4435
  ]),
4436
4436
  _: 2
4437
- }, 1032, ["title"])) : (i(), h(ea, {
4438
- key: d(s),
4437
+ }, 1032, ["title"])) : (i(), h(la, {
4438
+ key: m(s),
4439
4439
  option: g
4440
4440
  }, null, 8, ["option"]))
4441
4441
  ]),
@@ -4452,10 +4452,10 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4452
4452
  });
4453
4453
  };
4454
4454
  }
4455
- }), na = {
4455
+ }), aa = {
4456
4456
  __name: "report",
4457
4457
  setup(e) {
4458
- const t = Y(), n = S(() => {
4458
+ const t = Y(), n = w(() => {
4459
4459
  let o = t.params.id;
4460
4460
  if (!o) {
4461
4461
  const l = t.path.split("/");
@@ -4463,21 +4463,21 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4463
4463
  }
4464
4464
  return "/focusbi_report/view/" + o;
4465
4465
  });
4466
- return (o, l) => (i(), h(be, { "schema-api": d(n) }, {
4466
+ return (o, l) => (i(), h(ye, { "schema-api": m(n) }, {
4467
4467
  default: c((s) => [
4468
- u(ta, Z(re(s)), null, 16)
4468
+ u(sa, Z(re(s)), null, 16)
4469
4469
  ]),
4470
4470
  _: 1
4471
4471
  }, 8, ["schema-api"]));
4472
4472
  }
4473
- }, oa = (e) => u("div", null, [e.test]), la = {
4474
- card: Cn,
4473
+ }, ia = (e) => u("div", null, [e.test]), ra = {
4474
+ card: On,
4475
4475
  form: te,
4476
- table: fe,
4477
- test: oa,
4478
- row: In,
4479
- col: En
4480
- }, sa = {
4476
+ table: me,
4477
+ test: ia,
4478
+ row: Bn,
4479
+ col: $n
4480
+ }, ca = {
4481
4481
  card: {
4482
4482
  type: "card",
4483
4483
  props: {
@@ -4498,7 +4498,7 @@ const ea = /* @__PURE__ */ P(Zs, [["render", Ys], ["__scopeId", "data-v-a5a65cc1
4498
4498
  }
4499
4499
  }
4500
4500
  };
4501
- function aa(e) {
4501
+ function ua(e) {
4502
4502
  const t = Object.assign({}, e), n = t.type.split(".").reverse(), o = t.span || 24;
4503
4503
  delete t.span;
4504
4504
  let l = {
@@ -4537,14 +4537,14 @@ function et(e) {
4537
4537
  t.children.push({
4538
4538
  type: "col",
4539
4539
  props: l,
4540
- children: aa(o)
4540
+ children: ua(o)
4541
4541
  });
4542
4542
  return;
4543
4543
  }
4544
- o = U({
4544
+ o = q({
4545
4545
  props: {}
4546
- }, sa[o.type] || {}, o);
4547
- const s = Vt(o.children);
4546
+ }, ca[o.type] || {}, o);
4547
+ const s = qt(o.children);
4548
4548
  s.length && (o.children = et(s)), t.children.push({
4549
4549
  type: "col",
4550
4550
  props: l,
@@ -4552,32 +4552,32 @@ function et(e) {
4552
4552
  });
4553
4553
  }), [t];
4554
4554
  }
4555
- function Vt(e) {
4556
- return yt(e) ? e : ie(e) ? [e] : [];
4555
+ function qt(e) {
4556
+ return vt(e) ? e : ie(e) ? [e] : [];
4557
4557
  }
4558
- let Ne = {};
4559
- const qt = (e) => {
4560
- const t = la[e.type] || Ne[e.type] || e.type;
4561
- return an(t, e.props, {
4562
- default: () => Vt(e.children).map((n) => qt(n))
4558
+ let Ve = {};
4559
+ const Ht = (e) => {
4560
+ const t = ra[e.type] || Ve[e.type] || e.type;
4561
+ return pn(t, e.props, {
4562
+ default: () => qt(e.children).map((n) => Ht(n))
4563
4563
  });
4564
- }, ia = (e) => (Object.keys(Ne).length === 0 && (Ne = sn().appContext.components), et(Object.values(e.schema)).map((n) => qt(n))), ra = {
4564
+ }, pa = (e) => (Object.keys(Ve).length === 0 && (Ve = un().appContext.components), et(Object.values(e.schema)).map((n) => Ht(n))), da = {
4565
4565
  __name: "custom",
4566
4566
  setup(e) {
4567
- const t = $([]), n = (o, l) => (t.value = rn(o), o);
4568
- return (o, l) => (i(), h(be, { "schema-handler": n }, {
4567
+ const t = $([]), n = (o, l) => (t.value = dn(o), o);
4568
+ return (o, l) => (i(), h(ye, { "schema-handler": n }, {
4569
4569
  default: c(() => [
4570
- u(d(ia), { schema: d(t) }, null, 8, ["schema"])
4570
+ u(m(pa), { schema: m(t) }, null, 8, ["schema"])
4571
4571
  ]),
4572
4572
  _: 1
4573
4573
  }));
4574
4574
  }
4575
4575
  };
4576
4576
  let ue = {};
4577
- function Di(e) {
4577
+ function Ji(e) {
4578
4578
  ue = e;
4579
4579
  }
4580
- const ca = (e) => {
4580
+ const fa = (e) => {
4581
4581
  const t = (n) => {
4582
4582
  const o = "./views/" + n + ".vue";
4583
4583
  return ue && ue[o] && ue[o].default ? ue[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Le);
@@ -4585,34 +4585,34 @@ const ca = (e) => {
4585
4585
  if (e.path === "#")
4586
4586
  return Le;
4587
4587
  switch (e.page_type) {
4588
- case J.list:
4589
- return Nt;
4590
- case J.form:
4591
- return je;
4592
- case J.custom:
4593
- case J.localComp:
4588
+ case K.list:
4589
+ return Ut;
4590
+ case K.form:
4591
+ return Ne;
4592
+ case K.custom:
4593
+ case K.localComp:
4594
4594
  return t(e.view || "");
4595
- case J.tree:
4596
- return Hs;
4597
- case J.report:
4598
- return na;
4599
- case J.customSchema:
4600
- return ra;
4595
+ case K.tree:
4596
+ return Js;
4597
+ case K.report:
4598
+ return aa;
4599
+ case K.customSchema:
4600
+ return da;
4601
4601
  }
4602
4602
  return Le;
4603
4603
  };
4604
- function ua(e) {
4604
+ function ma(e) {
4605
4605
  let t = e.path;
4606
- 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;
4606
+ return e.type === G.menu && e.page_type === K.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;
4607
4607
  }
4608
- function pa(e) {
4608
+ function ha(e) {
4609
4609
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4610
4610
  }
4611
- const Ut = (e) => {
4611
+ const Ft = (e) => {
4612
4612
  const t = e.type !== G.page, n = {
4613
- path: ua(e),
4614
- name: e.id + "_" + pa(e) + "_" + e.path.replaceAll("/", "_"),
4615
- component: ca(e),
4613
+ path: ma(e),
4614
+ name: e.id + "_" + ha(e) + "_" + e.path.replaceAll("/", "_"),
4615
+ component: fa(e),
4616
4616
  meta: {
4617
4617
  id: e.id,
4618
4618
  pageId: e.id,
@@ -4621,15 +4621,16 @@ const Ut = (e) => {
4621
4621
  hidden: !t,
4622
4622
  path: e.path,
4623
4623
  menuType: e.type,
4624
- keepAlive: !1
4624
+ keepAlive: !1,
4625
+ role: e.role
4625
4626
  },
4626
- children: e.children ? e.children.map((o) => Ut(o)) : []
4627
+ children: e.children ? e.children.map((o) => Ft(o)) : []
4627
4628
  };
4628
- if (e.page_type === J.entity) {
4629
+ if (e.page_type === K.entity) {
4629
4630
  const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", a = [{
4630
4631
  path: o,
4631
4632
  name: e.name + "列表" + e.id,
4632
- component: Nt,
4633
+ component: Ut,
4633
4634
  meta: {
4634
4635
  id: e.id + 99999,
4635
4636
  title: "列表",
@@ -4642,7 +4643,7 @@ const Ut = (e) => {
4642
4643
  }, {
4643
4644
  path: l,
4644
4645
  name: e.name + "新建" + e.id,
4645
- component: je,
4646
+ component: Ne,
4646
4647
  meta: {
4647
4648
  id: e.id + 99999 + 1,
4648
4649
  title: "新建",
@@ -4655,7 +4656,7 @@ const Ut = (e) => {
4655
4656
  }, {
4656
4657
  path: s,
4657
4658
  name: e.name + "编辑" + e.id,
4658
- component: je,
4659
+ component: Ne,
4659
4660
  meta: {
4660
4661
  id: e.id + 99999 + 2,
4661
4662
  title: "编辑",
@@ -4684,7 +4685,7 @@ const Ut = (e) => {
4684
4685
  }
4685
4686
  }
4686
4687
  return n;
4687
- }, da = (e) => {
4688
+ }, ba = (e) => {
4688
4689
  const t = [];
4689
4690
  return e.forEach((n) => {
4690
4691
  const o = {
@@ -4693,96 +4694,148 @@ const Ut = (e) => {
4693
4694
  routes: []
4694
4695
  };
4695
4696
  n.routes.forEach((l) => {
4696
- o.routes.push(Ut(l));
4697
+ o.routes.push(Ft(l));
4697
4698
  }), t.push(o);
4698
4699
  }), t;
4700
+ }, ya = "root", ft = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], _a = (e) => {
4701
+ const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...ft(t), ...ft(n)];
4702
+ return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
4703
+ }, Gt = (e) => {
4704
+ const t = { ...e };
4705
+ return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Gt(n))), t;
4706
+ }, va = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, tt = (e = [], t) => t.includes(ya) ? e.map((n) => Gt(n)) : e.reduce((n, o) => {
4707
+ const l = _a(o);
4708
+ if (!va(l, t))
4709
+ return n;
4710
+ const s = { ...o };
4711
+ if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
4712
+ const a = tt(o.children, t);
4713
+ a.length ? s.children = a : delete s.children;
4714
+ }
4715
+ return n.push(s), n;
4716
+ }, []), ga = (e) => {
4717
+ const t = globalThis.atob(e);
4718
+ let n = "";
4719
+ for (let o = 0; o < t.length; o++) {
4720
+ const l = t.charCodeAt(o).toString(16).padStart(2, "0");
4721
+ n += "%" + l;
4722
+ }
4723
+ try {
4724
+ return decodeURIComponent(n);
4725
+ } catch {
4726
+ return decodeURIComponent(encodeURIComponent(t));
4727
+ }
4728
+ }, ka = (e) => {
4729
+ const t = e.replace(/-/g, "+").replace(/_/g, "/"), n = 4 - t.length % 4, o = t + (n < 4 ? "=".repeat(n) : "");
4730
+ return typeof globalThis.atob == "function" ? ga(o) : typeof Buffer < "u" ? Buffer.from(o, "base64").toString("utf-8") : "";
4731
+ }, Sa = (e) => {
4732
+ if (!e)
4733
+ return null;
4734
+ const t = e.split(".");
4735
+ if (t.length < 2)
4736
+ return null;
4737
+ try {
4738
+ const n = ka(t[1]);
4739
+ return n ? JSON.parse(n) : null;
4740
+ } catch {
4741
+ return null;
4742
+ }
4743
+ }, zt = (e) => {
4744
+ const t = Sa(e);
4745
+ return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
4699
4746
  };
4700
- function ma(e) {
4747
+ function wa(e) {
4701
4748
  e.beforeEach(async (t, n, o) => {
4702
- if (Dt().indexOf(t.path) !== -1) {
4749
+ if (Nt().indexOf(t.path) !== -1) {
4703
4750
  o();
4704
4751
  return;
4705
4752
  }
4706
- if (ks()) {
4753
+ if (Es()) {
4707
4754
  o();
4708
4755
  return;
4709
4756
  }
4710
- const l = N(L);
4757
+ const l = N(R);
4711
4758
  await l.info();
4712
- const s = await l.loadRemoteRoutes(), a = da(s);
4713
- a.forEach((r) => {
4714
- r.routes.forEach((p) => {
4759
+ const s = await l.loadRemoteRoutes(), a = ba(s), r = zt(be()), p = a.map((d) => {
4760
+ const f = tt(d.routes, r);
4761
+ return {
4762
+ ...d,
4763
+ routes: f
4764
+ };
4765
+ }).filter((d) => d.routes.length > 0);
4766
+ p.forEach((d) => {
4767
+ d.routes.forEach((f) => {
4715
4768
  e.addRoute({
4716
4769
  path: "/",
4717
- component: Mt,
4718
- children: [p]
4770
+ component: jt,
4771
+ children: [f]
4719
4772
  });
4720
4773
  });
4721
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(a), await e.replace(t), o();
4774
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(p), await e.replace(t), o();
4722
4775
  });
4723
4776
  }
4724
- function fa(e) {
4777
+ function xa(e) {
4725
4778
  e.beforeEach(async (t, n, o) => {
4726
- const s = [V(L).title || ""], a = t.matched.length;
4779
+ const s = [V(R).title || ""], a = t.matched.length;
4727
4780
  for (let r = a; r > a - 3; r--) {
4728
4781
  const p = t.matched[r - 1];
4729
4782
  p?.meta?.title && s.push(p.meta.title + "");
4730
4783
  }
4731
4784
  s.length > 1 && (document.title = s.reverse().join("-")), o();
4732
4785
  }), e.afterEach(async (t, n, o) => {
4733
- const l = ee(L);
4786
+ const l = ee(R);
4734
4787
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4735
4788
  });
4736
4789
  }
4737
- function ha(e) {
4738
- Is(e), gs(e), ma(e), fa(e);
4790
+ function Ea(e) {
4791
+ Bs(e), xs(e), wa(e), xa(e);
4739
4792
  }
4740
- ha(ne);
4741
- function ba() {
4742
- return N(L).token;
4793
+ Ea(ne);
4794
+ function Ia() {
4795
+ return N(R).token;
4743
4796
  }
4744
- function ya() {
4745
- return N(L).expired;
4797
+ function Ca() {
4798
+ return N(R).expired;
4746
4799
  }
4747
- function dt(e) {
4748
- xo({
4800
+ function mt(e) {
4801
+ To({
4749
4802
  message: e,
4750
4803
  type: "error",
4751
4804
  duration: 5 * 1e3,
4752
4805
  grouping: !0
4753
4806
  });
4754
4807
  }
4755
- const _a = {
4808
+ const Ta = {
4756
4809
  onFulfilled: function(e) {
4757
4810
  e.headers = e.headers || {};
4758
- const t = ba();
4811
+ const t = Ia();
4759
4812
  return t && (e.headers["X-Token"] = t), ne.currentRoute.value.meta?.path && (e.headers["X-Path"] = ne.currentRoute.value.meta.path), e;
4760
4813
  }
4761
- }, va = {
4814
+ }, $a = {
4762
4815
  onFulfilled(e) {
4763
4816
  if (!(e.config?.notHoldApiErr !== void 0 && e.config?.notHoldApiErr === !0) && e.data.code !== 0) {
4764
4817
  const o = e.data.message || `接口请求错误 ${e.config.method}::${e.config.url?.split("?")[0]}`;
4765
4818
  if (e.data.code === 401) {
4766
- if (ya())
4819
+ if (Ca())
4767
4820
  return;
4768
- N(L).SetExpired(), ct.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4821
+ N(R).SetExpired(), ut.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4769
4822
  showClose: !1,
4770
4823
  confirmButtonText: "重新登录",
4771
4824
  showCancelButton: !0,
4772
4825
  cancelButtonText: "取消",
4773
4826
  callback: (l) => {
4774
- l === "confirm" && (Et(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), N(L).SetExpired();
4827
+ l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), N(R).SetExpired();
4775
4828
  }
4776
4829
  });
4777
4830
  return;
4778
4831
  } else
4779
- dt(o);
4832
+ mt(o);
4780
4833
  return Promise.reject(o);
4781
4834
  }
4782
4835
  let n = e.data?.data?._message_box;
4783
- return n !== void 0 && (He(n) && (n = {
4836
+ return n !== void 0 && (Fe(n) && (n = {
4784
4837
  message: e.data?.data?._message_box
4785
- }), ct({
4838
+ }), ut({
4786
4839
  title: "提示",
4787
4840
  type: "success",
4788
4841
  grouping: !0,
@@ -4790,28 +4843,28 @@ const _a = {
4790
4843
  })), e.data;
4791
4844
  },
4792
4845
  onRejected(e) {
4793
- return Fe.isCancel(e) ? Promise.reject("") : (dt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4846
+ return Ge.isCancel(e) ? Promise.reject("") : (mt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4794
4847
  }
4795
- }, ga = [
4848
+ }, Ba = [
4796
4849
  {
4797
- request: Io,
4798
- response: Co
4850
+ request: Bo,
4851
+ response: Oo
4799
4852
  },
4800
4853
  {
4801
- request: _a,
4802
- response: va
4854
+ request: Ta,
4855
+ response: $a
4803
4856
  }
4804
4857
  ];
4805
- function tt(e = {}) {
4806
- const t = Ce.axios || {}, n = U(t, e || {}), o = Fe.create({
4858
+ function nt(e = {}) {
4859
+ const t = Te.axios || {}, n = q(t, e || {}), o = Ge.create({
4807
4860
  ...n
4808
4861
  // adapter: (c) => cacheAdapter(c, defaultAxios)
4809
4862
  });
4810
- return ga.forEach((l) => {
4863
+ return Ba.forEach((l) => {
4811
4864
  o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
4812
4865
  }), o;
4813
4866
  }
4814
- const Ht = tt(), ka = {
4867
+ const Jt = nt(), Oa = {
4815
4868
  beforeMount(e, t) {
4816
4869
  e.clickOutsideEvent = function(n) {
4817
4870
  e === n.target || e.contains(n.target) || t.value(n, e);
@@ -4820,23 +4873,23 @@ const Ht = tt(), ka = {
4820
4873
  unmounted(e) {
4821
4874
  document.body.removeEventListener("click", e.clickOutsideEvent);
4822
4875
  }
4823
- }, oe = eo(), wa = {
4876
+ }, oe = lo(), Pa = {
4824
4877
  mounted: (e, t) => {
4825
4878
  e !== null && (t.value, e.oncontextmenu = (n) => {
4826
4879
  n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && oe.emit("right-click", { event: n, data: t.value });
4827
4880
  });
4828
4881
  }
4829
- }, Sa = {
4882
+ }, Aa = {
4830
4883
  mounted(e) {
4831
4884
  }
4832
4885
  };
4833
- function mt(e, t) {
4886
+ function ht(e, t) {
4834
4887
  let n = e[`offset${t}`], o = e.offsetParent;
4835
4888
  for (; o; )
4836
4889
  n += o[`offset${t}`], o = o.offsetParent;
4837
4890
  return n;
4838
4891
  }
4839
- const xa = {
4892
+ const Ra = {
4840
4893
  mounted: (e, t) => {
4841
4894
  if (e === null || !t.value.dev)
4842
4895
  return;
@@ -4847,7 +4900,7 @@ const xa = {
4847
4900
  n.classList.add("devtool-hover");
4848
4901
  const o = document.createElement("i");
4849
4902
  o.className = "devtool-item-wrapper", n.onmouseover = () => {
4850
- o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = mt(n, "Top") - 15 + "px", o.style.left = mt(n, "Left") - 15 + "px";
4903
+ o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = ht(n, "Top") - 15 + "px", o.style.left = ht(n, "Left") - 15 + "px";
4851
4904
  };
4852
4905
  const l = document.createElement("span");
4853
4906
  l.className = "dev-action-edit", l.title = "编辑";
@@ -4862,48 +4915,49 @@ const xa = {
4862
4915
  oe.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
4863
4916
  }, o.appendChild(a), n.insertBefore(o, n.firstChild);
4864
4917
  }
4865
- }, Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4918
+ }, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4866
4919
  __proto__: null,
4867
- devtool: xa,
4868
- outClick: ka,
4869
- resize: Sa,
4870
- rightClick: wa
4920
+ devtool: Ra,
4921
+ outClick: Oa,
4922
+ resize: Aa,
4923
+ rightClick: Pa
4871
4924
  }, Symbol.toStringTag, { value: "Module" }));
4872
- let ke;
4873
- function ji(e) {
4874
- return e ? tt(U(Ce.axios, e)) : ke;
4925
+ let Se;
4926
+ function Ki(e) {
4927
+ return e ? nt(q(Te.axios, e)) : Se;
4875
4928
  }
4876
- function Ni(e) {
4877
- const t = U(Ce, e), n = cn(yo), o = Pa(t), l = t.plugins || [];
4929
+ function Wi(e) {
4930
+ const t = q(Te, e), n = fn(ko), o = qa(t), l = t.plugins || [];
4878
4931
  l.unshift(o), l.forEach((r) => {
4879
- Ba(n, r);
4880
- }), t?.mock && So(), ke = tt(t.axios), mo(n);
4881
- const s = ee(L), a = V(L);
4882
- io(ke), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = ke, n.config.globalProperties.$router = ne, window.App = n, window.OmsOptions = t, Zn(() => ({
4883
- "X-Token": Ze()
4932
+ Ua(n, r);
4933
+ }), t?.mock && Co(), Se = nt(t.axios), yo(n);
4934
+ const s = ee(R), a = V(R);
4935
+ po(Se), a.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = Se, n.config.globalProperties.$router = ne, window.App = n, window.OmsOptions = t, no(() => ({
4936
+ "X-Token": be()
4884
4937
  })), ne.isReady().then(() => n.mount("#app"));
4885
4938
  }
4886
- function Ia(e, t = {}) {
4939
+ function Ma(e, t = {}) {
4887
4940
  Object.keys(t).forEach((n) => {
4888
4941
  e.component(n, t[n]);
4889
4942
  });
4890
4943
  }
4891
- function Ca(e = []) {
4892
- e.forEach((t) => {
4893
- ne.addRoute(t);
4894
- }), N(L).setCustomRoutes(e);
4944
+ function Da(e = []) {
4945
+ const t = zt(be()), n = tt(e, t);
4946
+ n.forEach((o) => {
4947
+ ne.addRoute(o);
4948
+ }), N(R).setCustomRoutes(n);
4895
4949
  }
4896
- function Ta(e, t) {
4950
+ function ja(e, t) {
4897
4951
  t.forEach((n) => {
4898
4952
  ie(n) && (n = [n]), e.use(...n);
4899
4953
  });
4900
4954
  }
4901
- function $a(e, t = {}) {
4955
+ function Na(e, t = {}) {
4902
4956
  Object.keys(t).forEach((n) => {
4903
4957
  e.directive(n, t[n]);
4904
4958
  });
4905
4959
  }
4906
- function Oa(e = {}) {
4960
+ function Va(e = {}) {
4907
4961
  const t = ["app", "settings", "user"];
4908
4962
  Object.keys(e).forEach((n) => {
4909
4963
  if (t.indexOf(n) !== -1) {
@@ -4913,50 +4967,50 @@ function Oa(e = {}) {
4913
4967
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
4914
4968
  });
4915
4969
  }
4916
- function Ba(e, t) {
4917
- Ia(e, t.components || {}), Ca(t.routes || []), Ta(e, t.use || []), $a(e, t.directives || {}), Oa(t.storeModules || {}), Bt(t.mockApis || []);
4970
+ function Ua(e, t) {
4971
+ Ma(e, t.components || {}), Da(t.routes || []), ja(e, t.use || []), Na(e, t.directives || {}), Va(t.storeModules || {}), At(t.mockApis || []);
4918
4972
  }
4919
- function Pa(e) {
4973
+ function qa(e) {
4920
4974
  return {
4921
- components: { VIcon: Yn },
4922
- directives: Ea,
4975
+ components: { VIcon: oo },
4976
+ directives: La,
4923
4977
  use: [
4924
4978
  ne,
4925
- [Sn, { locale: _t, ...e.settings?.ElementPlus }]
4979
+ [Cn, { locale: gt, ...e.settings?.ElementPlus }]
4926
4980
  ]
4927
4981
  };
4928
4982
  }
4929
4983
  export {
4930
- jt as BaseSso,
4984
+ Vt as BaseSso,
4931
4985
  Le as Container,
4932
- Mi as DingTalk,
4933
- Ri as Github,
4934
- Mt as Layout,
4986
+ zi as DingTalk,
4987
+ Gi as Github,
4988
+ jt as Layout,
4935
4989
  G as MenuType,
4936
- xo as Message,
4937
- ct as MessageBox,
4938
- J as PageType,
4939
- xs as allSso,
4940
- uo as appState,
4941
- po as builderSchemaState,
4942
- Ni as createAdmin,
4990
+ To as Message,
4991
+ ut as MessageBox,
4992
+ K as PageType,
4993
+ Ts as allSso,
4994
+ ho as appState,
4995
+ bo as builderSchemaState,
4996
+ Wi as createAdmin,
4943
4997
  oe as eventBus,
4944
- To as getCmp,
4998
+ Po as getCmp,
4945
4999
  Oe as getHttp,
4946
- ke as http,
4947
- tt as instance,
4948
- L as pinia,
4949
- Di as regViews,
4950
- Li as setCmp,
4951
- io as setHttp,
4952
- co as settings,
4953
- mo as setupStore,
4954
- da as transRemoteModules,
5000
+ Se as http,
5001
+ nt as instance,
5002
+ R as pinia,
5003
+ Ji as regViews,
5004
+ Fi as setCmp,
5005
+ po as setHttp,
5006
+ mo as settings,
5007
+ yo as setupStore,
5008
+ ba as transRemoteModules,
4955
5009
  ee as useAppStore,
4956
- Ai as useBuilderSchemaStore,
4957
- ji as useHttp,
5010
+ Hi as useBuilderSchemaStore,
5011
+ Ki as useHttp,
4958
5012
  V as useSettingsStore,
4959
5013
  N as useUserStore,
4960
- it as userState
5014
+ rt as userState
4961
5015
  };
4962
5016
  //# sourceMappingURL=index.es.js.map