@okiss/oms 0.0.86 → 0.0.88

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