@okiss/oms 0.0.82 → 0.0.87

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