cc1-admin-front 0.0.2 → 0.0.3
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/apis/types/query.d.ts +75 -0
- package/dist/cc1-admin-front.css +1 -1
- package/dist/cc1-admin-front.js +107 -113
- package/dist/cc1-admin-front.umd.cjs +1 -1
- package/dist/enum/Enum.d.ts +0 -5
- package/dist/{index-Dd54sn7c.js → index-C-1Hfwms.js} +30 -26
- package/dist/{index-DxQTvIMJ.js → index-DGXkeIf1.js} +36 -32
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
package/dist/cc1-admin-front.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./cc1-admin-front.css";
|
|
2
|
-
import { reactive as y, defineComponent as
|
|
3
|
-
import K, { TSys as
|
|
2
|
+
import { reactive as y, defineComponent as j, nextTick as N, resolveComponent as L, openBlock as E, createBlock as U, withCtx as M, createVNode as _, unref as C, createCommentVNode as B, defineAsyncComponent as I, shallowRef as P, ref as W, watch as z, onBeforeUnmount as H, createElementBlock as J, createApp as F } from "vue";
|
|
3
|
+
import K, { TSys as h, TForm as q, TFormConfig as Y } from "cc1-form";
|
|
4
4
|
import { Scope as S, CRouter as Z } from "cc1-vue3";
|
|
5
5
|
import G from "cc1-ui";
|
|
6
6
|
import { createRouter as Q, createWebHashHistory as X } from "vue-router";
|
|
7
|
-
class
|
|
7
|
+
class kt {
|
|
8
8
|
static all(t) {
|
|
9
9
|
return http.post("/auth/api/all", t);
|
|
10
10
|
}
|
|
@@ -21,7 +21,7 @@ class At {
|
|
|
21
21
|
return http.post("/auth/api/delete", t);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
class
|
|
24
|
+
class At {
|
|
25
25
|
static list(t) {
|
|
26
26
|
return http.post("/auth/menu/list", t);
|
|
27
27
|
}
|
|
@@ -35,12 +35,12 @@ class Ot {
|
|
|
35
35
|
return http.post("/auth/menu/delete", t);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
class
|
|
38
|
+
class Ot {
|
|
39
39
|
static sendCode(t) {
|
|
40
40
|
return http.post("/auth/phone/sendCode", { phone: t });
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
class
|
|
43
|
+
class _t {
|
|
44
44
|
static list(t) {
|
|
45
45
|
return http.post("/auth/role/list", t);
|
|
46
46
|
}
|
|
@@ -62,7 +62,7 @@ class Et {
|
|
|
62
62
|
return http.post("/auth/role/delete", t);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
class
|
|
65
|
+
class Et {
|
|
66
66
|
static list(t) {
|
|
67
67
|
return http.post("/auth/user/list", t);
|
|
68
68
|
}
|
|
@@ -95,7 +95,7 @@ class Ut {
|
|
|
95
95
|
return http.post("/auth/loginLog/delete", t);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
class
|
|
98
|
+
class It {
|
|
99
99
|
static list(t) {
|
|
100
100
|
return http.post(
|
|
101
101
|
{
|
|
@@ -124,7 +124,7 @@ class St {
|
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
class
|
|
127
|
+
class St {
|
|
128
128
|
static list(t) {
|
|
129
129
|
return http.post("/email/config/list", t);
|
|
130
130
|
}
|
|
@@ -146,7 +146,7 @@ class Vt {
|
|
|
146
146
|
return http.post("/log/error/delete", t);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
class
|
|
149
|
+
class jt {
|
|
150
150
|
static list(t) {
|
|
151
151
|
return http.post("/schedule/job/list", t);
|
|
152
152
|
}
|
|
@@ -166,7 +166,7 @@ class $t {
|
|
|
166
166
|
return http.post("/schedule/job/changeStatus", t);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
class
|
|
169
|
+
class Rt {
|
|
170
170
|
static list(t) {
|
|
171
171
|
return http.post("/sms/config/list", t);
|
|
172
172
|
}
|
|
@@ -183,7 +183,7 @@ class jt {
|
|
|
183
183
|
return http.post("/sms/config/send", t);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
class
|
|
186
|
+
class R {
|
|
187
187
|
static time(t) {
|
|
188
188
|
return http.post("/app/time", t);
|
|
189
189
|
}
|
|
@@ -199,7 +199,7 @@ class $ {
|
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
class
|
|
202
|
+
class $t {
|
|
203
203
|
static list(t) {
|
|
204
204
|
return http.post("/system/config/list", t);
|
|
205
205
|
}
|
|
@@ -213,7 +213,7 @@ class Dt {
|
|
|
213
213
|
return http.post("/system/config/delete", t);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
class
|
|
216
|
+
class Dt {
|
|
217
217
|
static list(t) {
|
|
218
218
|
return http.post("/tenant/list", t);
|
|
219
219
|
}
|
|
@@ -227,7 +227,7 @@ class Nt {
|
|
|
227
227
|
return http.post("/tenant/delete", t);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const O = {
|
|
231
231
|
ERouter: {
|
|
232
232
|
/**
|
|
233
233
|
* 路由改变
|
|
@@ -237,20 +237,15 @@ const b = {
|
|
|
237
237
|
* 路由刷新
|
|
238
238
|
*/
|
|
239
239
|
reload: ""
|
|
240
|
-
},
|
|
241
|
-
EDialog: {
|
|
242
|
-
Insert: "",
|
|
243
|
-
Update: "",
|
|
244
|
-
Remove: ""
|
|
245
240
|
}
|
|
246
241
|
};
|
|
247
|
-
Object.keys(
|
|
248
|
-
const t =
|
|
242
|
+
Object.keys(O).forEach((e) => {
|
|
243
|
+
const t = O[e];
|
|
249
244
|
Object.keys(t).forEach((s) => {
|
|
250
|
-
|
|
245
|
+
O[e][s] = `${e}_${s}`;
|
|
251
246
|
});
|
|
252
247
|
});
|
|
253
|
-
const tt =
|
|
248
|
+
const tt = O.ERouter, d = y({
|
|
254
249
|
load: () => {
|
|
255
250
|
d.loginInfo = Cookie.get("loginInfo") || {}, d.userInfo = d.loginInfo.userInfo || {}, d.token = Cookie.get("token");
|
|
256
251
|
},
|
|
@@ -265,7 +260,7 @@ const tt = b.ERouter, et = b.EDialog, d = y({
|
|
|
265
260
|
},
|
|
266
261
|
hasApi: (e) => d.loginInfo.roleInfo.apiList.includes(e)
|
|
267
262
|
});
|
|
268
|
-
class
|
|
263
|
+
class b {
|
|
269
264
|
static baseUrl = "";
|
|
270
265
|
static init() {
|
|
271
266
|
const t = (o, r, ...a) => {
|
|
@@ -274,10 +269,10 @@ class L {
|
|
|
274
269
|
});
|
|
275
270
|
}, s = (o, r, a) => {
|
|
276
271
|
let l = a?.data?.code || o, p = a?.data.message;
|
|
277
|
-
r.data.toast ? r.data.toast(l, a, r) :
|
|
272
|
+
r.data.toast ? r.data.toast(l, a, r) : h.fail(u.i18n.t(`code.${l}`, { msg: p || "请求异常" }) || u.i18n.t("code.OtherException")), t(r.data, ["final", "fail", "complete"], o == 200, r, a), l == 401 && (d.clearInfo(), r.data.toLogin?.() !== !1 && h.router.replace("/login"));
|
|
278
273
|
};
|
|
279
274
|
http.setConfig({
|
|
280
|
-
base:
|
|
275
|
+
base: b.baseUrl,
|
|
281
276
|
before(o) {
|
|
282
277
|
o.param.headers = o.param.headers || {}, Object.keys(o.data).forEach((a) => {
|
|
283
278
|
(o.data[a] === void 0 || o.data[a] === null) && delete o.data[a];
|
|
@@ -321,13 +316,13 @@ class u {
|
|
|
321
316
|
},
|
|
322
317
|
staticDir: "/static_admin"
|
|
323
318
|
};
|
|
324
|
-
this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale,
|
|
319
|
+
this.config = ObjectUtil.deepMerge(s, t), this.env = this.config.env, this.i18n = this.config.i18n, this.staticDir = this.config.staticDir, this.elementLocale = this.config.elementLocale, b.baseUrl = this.env.API;
|
|
325
320
|
}
|
|
326
321
|
static getBaseUrl(t) {
|
|
327
|
-
return t =
|
|
322
|
+
return t = b.baseUrl.replace("/api", "/") + t, t = t.replace(/(?<!:)\/{2,}/g, "/"), t;
|
|
328
323
|
}
|
|
329
324
|
}
|
|
330
|
-
const
|
|
325
|
+
const V = (e) => {
|
|
331
326
|
const t = JSONUtil.cp(e), s = (o) => t.filter((a) => {
|
|
332
327
|
let l = a.parentId;
|
|
333
328
|
return a.parentId.includes(",") && (l = a.parentId.split(",").pop()), l === o;
|
|
@@ -337,7 +332,7 @@ const R = (e) => {
|
|
|
337
332
|
})).sort((a, l) => a.sort - l.sort);
|
|
338
333
|
return s("0");
|
|
339
334
|
}, c = y({
|
|
340
|
-
getTableTree:
|
|
335
|
+
getTableTree: V,
|
|
341
336
|
auth: {
|
|
342
337
|
list: ["/api/system/list", "/api/system/detail"],
|
|
343
338
|
isPass: (e) => c.auth.list.includes(e)
|
|
@@ -364,11 +359,11 @@ const R = (e) => {
|
|
|
364
359
|
c.menuListSource = JSONUtil.cp(e);
|
|
365
360
|
try {
|
|
366
361
|
if (StrUtil.isNull(e) || (e = e), StrUtil.isNull(e))
|
|
367
|
-
return
|
|
368
|
-
let t =
|
|
362
|
+
return h.router.push("/login"), [];
|
|
363
|
+
let t = V(e);
|
|
369
364
|
return c.setMenuList(t, e), JSONUtil.cp(c.menuList);
|
|
370
365
|
} catch {
|
|
371
|
-
|
|
366
|
+
h.router.push("/login");
|
|
372
367
|
}
|
|
373
368
|
return JSONUtil.cp(c.menuList);
|
|
374
369
|
},
|
|
@@ -379,9 +374,9 @@ const R = (e) => {
|
|
|
379
374
|
getApiList: async () => {
|
|
380
375
|
let e = Cookie.get("apiList");
|
|
381
376
|
try {
|
|
382
|
-
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (
|
|
377
|
+
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (h.router.push("/login"), []) : (c.setApiList(e), c.apiList);
|
|
383
378
|
} catch {
|
|
384
|
-
|
|
379
|
+
h.router.push("/login");
|
|
385
380
|
}
|
|
386
381
|
return c.apiList;
|
|
387
382
|
},
|
|
@@ -391,10 +386,10 @@ const R = (e) => {
|
|
|
391
386
|
t.type = "file", t.accept = e.accept || "image/*", t.multiple = e.multiple || !1, t.onchange = async (s) => {
|
|
392
387
|
const o = s.target.files[0];
|
|
393
388
|
if (o) {
|
|
394
|
-
const r = await
|
|
389
|
+
const r = await R.upload({
|
|
395
390
|
file: o
|
|
396
391
|
});
|
|
397
|
-
e.callback(r.data), e.toast,
|
|
392
|
+
e.callback(r.data), e.toast, h.success("上传成功");
|
|
398
393
|
} else
|
|
399
394
|
e.callback("");
|
|
400
395
|
}, t.click();
|
|
@@ -408,7 +403,7 @@ const R = (e) => {
|
|
|
408
403
|
c.preview.index = t, c.preview.srcList = e.map((s) => u.getBaseUrl(s)), c.preview.show = !0;
|
|
409
404
|
}
|
|
410
405
|
}
|
|
411
|
-
}),
|
|
406
|
+
}), et = /* @__PURE__ */ j({
|
|
412
407
|
name: "App",
|
|
413
408
|
__name: "App",
|
|
414
409
|
setup(e) {
|
|
@@ -422,14 +417,14 @@ const R = (e) => {
|
|
|
422
417
|
}
|
|
423
418
|
});
|
|
424
419
|
return CEvent.on(tt.reload, t.reload), (s, o) => {
|
|
425
|
-
const r =
|
|
426
|
-
return E(),
|
|
420
|
+
const r = L("x-route-event"), a = L("router-view"), l = L("el-image-viewer"), p = L("el-config-provider");
|
|
421
|
+
return E(), U(p, {
|
|
427
422
|
locale: t.locale
|
|
428
423
|
}, {
|
|
429
424
|
default: M(() => [
|
|
430
425
|
_(r),
|
|
431
426
|
_(a),
|
|
432
|
-
C(c).preview.show ? (E(),
|
|
427
|
+
C(c).preview.show ? (E(), U(l, {
|
|
433
428
|
key: 0,
|
|
434
429
|
"url-list": C(c).preview.srcList,
|
|
435
430
|
"initial-index": C(c).preview.index,
|
|
@@ -440,7 +435,7 @@ const R = (e) => {
|
|
|
440
435
|
}, 8, ["locale"]);
|
|
441
436
|
};
|
|
442
437
|
}
|
|
443
|
-
}),
|
|
438
|
+
}), T = y({
|
|
444
439
|
/**
|
|
445
440
|
* 查找组件对应的options配置
|
|
446
441
|
* @param option
|
|
@@ -459,7 +454,7 @@ const R = (e) => {
|
|
|
459
454
|
* @param data
|
|
460
455
|
*/
|
|
461
456
|
setOptionsData: (e, t, s) => {
|
|
462
|
-
const o =
|
|
457
|
+
const o = T.findOptions(e, t);
|
|
463
458
|
o && (o.data = s);
|
|
464
459
|
},
|
|
465
460
|
form: {
|
|
@@ -472,7 +467,7 @@ const R = (e) => {
|
|
|
472
467
|
* @param option 组件配置
|
|
473
468
|
*/
|
|
474
469
|
parentId: (e, t, s, o) => {
|
|
475
|
-
e ? t.type ===
|
|
470
|
+
e ? t.type === h.EDialog.Add ? (t.form.parentId = e._id, t.form.sort = e.children.length + 1) : t.form.parentId = e.parentId.substring(e.parentId.lastIndexOf(",") + 1) : (t.form.parentId = "0", t.form.sort = s.length + 1), T.setOptionsData(o, "parentId", [{ _id: "0", title: "根", children: s }]);
|
|
476
471
|
}
|
|
477
472
|
}
|
|
478
473
|
}
|
|
@@ -519,14 +514,14 @@ const R = (e) => {
|
|
|
519
514
|
n.setDate(1);
|
|
520
515
|
const g = o(0, n);
|
|
521
516
|
n.setMonth(n.getMonth() + 1), n.setDate(1), n.setDate(n.getDate() - 1);
|
|
522
|
-
const
|
|
517
|
+
const m = o(0, n), D = {
|
|
523
518
|
label: u.i18n.t("dateOptions.ThisMonth"),
|
|
524
|
-
value: [g[0],
|
|
519
|
+
value: [g[0], m[1]],
|
|
525
520
|
key: "thisMonth"
|
|
526
521
|
};
|
|
527
522
|
return t.push(D), t;
|
|
528
523
|
}
|
|
529
|
-
}),
|
|
524
|
+
}), $ = y({
|
|
530
525
|
/**
|
|
531
526
|
* 获取校验对象-默认使用对数字进行只保留数字、正数、小数后两位保留修正操作
|
|
532
527
|
*
|
|
@@ -559,7 +554,7 @@ const R = (e) => {
|
|
|
559
554
|
*/
|
|
560
555
|
getVf: (e, t, s) => {
|
|
561
556
|
const o = {};
|
|
562
|
-
s === void 0 && (s =
|
|
557
|
+
s === void 0 && (s = $.inputVal);
|
|
563
558
|
for (const r in t)
|
|
564
559
|
o[r] = (a) => {
|
|
565
560
|
e[r] = null, s({
|
|
@@ -640,8 +635,8 @@ const R = (e) => {
|
|
|
640
635
|
};
|
|
641
636
|
if (t.length) {
|
|
642
637
|
s && t.length > s && (t = t.substring(0, s));
|
|
643
|
-
const i = [], f = [], w = (n, g,
|
|
644
|
-
n === g ? Array.isArray(e[n]) ?
|
|
638
|
+
const i = [], f = [], w = (n, g, m) => {
|
|
639
|
+
n === g ? Array.isArray(e[n]) ? m.push(...e[n]) : m.push(e[n]) : m.push(p[n.substring(3)]);
|
|
645
640
|
};
|
|
646
641
|
Object.keys(e).forEach((n) => {
|
|
647
642
|
n.startsWith("get") ? w(n, "getCustom", i) : n.startsWith("del") ? w(n, "delCustom", f) : p[n] && (t = p[n](t));
|
|
@@ -649,28 +644,28 @@ const R = (e) => {
|
|
|
649
644
|
}
|
|
650
645
|
return e.after(t), t;
|
|
651
646
|
}
|
|
652
|
-
}),
|
|
647
|
+
}), st = (e) => {
|
|
653
648
|
const t = Cookie.clear.bind(Cookie);
|
|
654
649
|
Cookie.clear = async (s, o) => {
|
|
655
650
|
s = s || {}, s.excludeList = s.excludeList || [], s.excludeList.push("apiurl"), await t(s, o);
|
|
656
651
|
};
|
|
657
|
-
},
|
|
658
|
-
install:
|
|
659
|
-
},
|
|
652
|
+
}, ot = {
|
|
653
|
+
install: st
|
|
654
|
+
}, it = (e) => {
|
|
660
655
|
S.CEventBean = CEventBean, S.TimerBean = TimerBean;
|
|
661
|
-
},
|
|
662
|
-
install:
|
|
656
|
+
}, rt = {
|
|
657
|
+
install: it
|
|
663
658
|
};
|
|
664
|
-
let
|
|
665
|
-
const
|
|
666
|
-
e.use(G),
|
|
667
|
-
|
|
668
|
-
}, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) =>
|
|
669
|
-
|
|
659
|
+
let x = {}, k = {};
|
|
660
|
+
const at = (e) => {
|
|
661
|
+
e.use(G), x = Cookie.get("iconObj") || {}, k = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => x[t], VConf.vicon.fun.setRes = (t, s) => {
|
|
662
|
+
x[t] = s, Cookie.set("iconObj", x);
|
|
663
|
+
}, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => k[t], VConf.vsicon.fun.setRes = (t, s) => {
|
|
664
|
+
k[t] = s, Cookie.set("siconObj", k);
|
|
670
665
|
};
|
|
671
|
-
},
|
|
672
|
-
install:
|
|
673
|
-
},
|
|
666
|
+
}, nt = {
|
|
667
|
+
install: at
|
|
668
|
+
}, lt = { style: { border: "1px solid #ccc" } }, ct = /* @__PURE__ */ j({
|
|
674
669
|
__name: "index",
|
|
675
670
|
props: {
|
|
676
671
|
modelValue: {
|
|
@@ -680,7 +675,7 @@ const nt = (e) => {
|
|
|
680
675
|
},
|
|
681
676
|
emits: ["update:modelValue"],
|
|
682
677
|
setup(e, { emit: t }) {
|
|
683
|
-
const s =
|
|
678
|
+
const s = I(() => h.loadModule("editor").then((n) => n.Editor)), o = I(() => h.loadModule("editor").then((n) => n.Toolbar)), r = e, a = t, l = P(), p = W(r.modelValue);
|
|
684
679
|
z(p, (n) => {
|
|
685
680
|
a("update:modelValue", n);
|
|
686
681
|
});
|
|
@@ -691,10 +686,10 @@ const nt = (e) => {
|
|
|
691
686
|
MENU_CONF: {
|
|
692
687
|
uploadImage: {
|
|
693
688
|
async customUpload(n, g) {
|
|
694
|
-
const
|
|
689
|
+
const m = await R.upload({
|
|
695
690
|
file: n
|
|
696
691
|
});
|
|
697
|
-
|
|
692
|
+
m.data = u.getBaseUrl(m.data), g(m.data, "", m.data), a("update:modelValue", p.value);
|
|
698
693
|
}
|
|
699
694
|
}
|
|
700
695
|
}
|
|
@@ -706,7 +701,7 @@ const nt = (e) => {
|
|
|
706
701
|
const w = (n) => {
|
|
707
702
|
l.value = n;
|
|
708
703
|
};
|
|
709
|
-
return (n, g) => (E(), J("div",
|
|
704
|
+
return (n, g) => (E(), J("div", lt, [
|
|
710
705
|
_(C(o), {
|
|
711
706
|
style: { "border-bottom": "1px solid #ccc" },
|
|
712
707
|
editor: l.value,
|
|
@@ -716,14 +711,14 @@ const nt = (e) => {
|
|
|
716
711
|
_(C(s), {
|
|
717
712
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
718
713
|
modelValue: p.value,
|
|
719
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
714
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => p.value = m),
|
|
720
715
|
defaultConfig: f,
|
|
721
716
|
mode: "default",
|
|
722
717
|
onOnCreated: w
|
|
723
718
|
}, null, 8, ["modelValue"])
|
|
724
719
|
]));
|
|
725
720
|
}
|
|
726
|
-
}),
|
|
721
|
+
}), ut = (e) => {
|
|
727
722
|
const t = {
|
|
728
723
|
activeValue: 1,
|
|
729
724
|
inactiveValue: 0,
|
|
@@ -794,23 +789,23 @@ const nt = (e) => {
|
|
|
794
789
|
}
|
|
795
790
|
}), e.use(K, {
|
|
796
791
|
customComponent: {
|
|
797
|
-
xEditor:
|
|
792
|
+
xEditor: ct
|
|
798
793
|
}
|
|
799
794
|
});
|
|
800
|
-
},
|
|
801
|
-
install:
|
|
802
|
-
},
|
|
803
|
-
e.use(
|
|
804
|
-
},
|
|
805
|
-
install:
|
|
806
|
-
},
|
|
795
|
+
}, pt = {
|
|
796
|
+
install: ut
|
|
797
|
+
}, dt = (e) => {
|
|
798
|
+
e.use(ot), e.use(rt), e.use(nt), e.use(pt);
|
|
799
|
+
}, ht = {
|
|
800
|
+
install: dt
|
|
801
|
+
}, mt = () => {
|
|
807
802
|
const e = (i) => i.replace(/\/index$/, "");
|
|
808
803
|
let t = /* @__PURE__ */ Object.assign({
|
|
809
804
|
"/src/views/error/index.vue": () => import("./index-BTuR22Wh.js"),
|
|
810
805
|
"/src/views/layout/index.vue": () => import("./index-Bk_LJXIb.js"),
|
|
811
806
|
"/src/views/login/index.vue": () => import("./index-D47lvu37.js"),
|
|
812
|
-
"/src/views/pages/auth/api/index.vue": () => import("./index-
|
|
813
|
-
"/src/views/pages/auth/menu/index.vue": () => import("./index-
|
|
807
|
+
"/src/views/pages/auth/api/index.vue": () => import("./index-DGXkeIf1.js"),
|
|
808
|
+
"/src/views/pages/auth/menu/index.vue": () => import("./index-C-1Hfwms.js"),
|
|
814
809
|
"/src/views/pages/auth/role/index.vue": () => import("./index-CRagZR_l.js"),
|
|
815
810
|
"/src/views/pages/auth/user/index.vue": () => import("./index-WKWmXVBK.js"),
|
|
816
811
|
"/src/views/pages/db/index.vue": () => import("./index-DFNCjb_F.js"),
|
|
@@ -824,7 +819,7 @@ const nt = (e) => {
|
|
|
824
819
|
"/src/views/pages/system/tenant/index.vue": () => import("./index-uPQ6O40Q.js")
|
|
825
820
|
});
|
|
826
821
|
if (!u.config.routes) {
|
|
827
|
-
|
|
822
|
+
h.fail("router.routes is required");
|
|
828
823
|
return;
|
|
829
824
|
}
|
|
830
825
|
Object.keys(u.config.routes).forEach((i) => {
|
|
@@ -870,67 +865,66 @@ const nt = (e) => {
|
|
|
870
865
|
}
|
|
871
866
|
]
|
|
872
867
|
});
|
|
873
|
-
return
|
|
868
|
+
return h.router = p, h.routes = l.array, p;
|
|
874
869
|
};
|
|
875
870
|
v.store = {
|
|
876
871
|
ssys: c,
|
|
877
872
|
suser: d,
|
|
878
873
|
sutil: v,
|
|
879
|
-
svf:
|
|
880
|
-
scurd:
|
|
874
|
+
svf: $,
|
|
875
|
+
scurd: T
|
|
881
876
|
};
|
|
882
|
-
const
|
|
877
|
+
const ft = () => {
|
|
883
878
|
Object.keys(v.store).forEach((e) => {
|
|
884
879
|
e !== "sutil" && v.store[e].reset?.();
|
|
885
880
|
});
|
|
886
|
-
},
|
|
881
|
+
}, gt = () => {
|
|
887
882
|
Object.keys(v.store).forEach((e) => {
|
|
888
883
|
e !== "sutil" && v.store[e].load?.();
|
|
889
884
|
});
|
|
890
|
-
},
|
|
891
|
-
|
|
885
|
+
}, vt = async () => {
|
|
886
|
+
gt();
|
|
892
887
|
};
|
|
893
|
-
v.reset =
|
|
894
|
-
class
|
|
888
|
+
v.reset = ft;
|
|
889
|
+
class wt {
|
|
895
890
|
/**
|
|
896
891
|
* 初始化
|
|
897
892
|
*/
|
|
898
893
|
static async init(t) {
|
|
899
|
-
t.use(
|
|
900
|
-
const s =
|
|
894
|
+
t.use(ht), t.use(u.i18n), await u.i18n.setLang(), vt(), b.init();
|
|
895
|
+
const s = mt();
|
|
901
896
|
t.use(s), s.isReady().then(async () => {
|
|
902
897
|
t.mount("#app");
|
|
903
898
|
});
|
|
904
899
|
}
|
|
905
900
|
}
|
|
906
|
-
const
|
|
907
|
-
u.setConfig(e), await u.config.install?.(
|
|
901
|
+
const A = F(et), Nt = async (e) => {
|
|
902
|
+
u.setConfig(e), await u.config.install?.(A), A.use(window.ElementPlus);
|
|
908
903
|
const t = await import("./index-DU5RPuKk.js");
|
|
909
|
-
|
|
904
|
+
A.use(t), wt.init(A);
|
|
910
905
|
};
|
|
911
906
|
export {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
907
|
+
R as ApiApp,
|
|
908
|
+
kt as ApiAuthApi,
|
|
909
|
+
At as ApiAuthMenu,
|
|
910
|
+
Ot as ApiAuthPhone,
|
|
911
|
+
_t as ApiAuthRole,
|
|
912
|
+
Et as ApiAuthUser,
|
|
918
913
|
Tt as ApiCaptcha,
|
|
919
|
-
|
|
920
|
-
|
|
914
|
+
It as ApiCron,
|
|
915
|
+
St as ApiEmailConfig,
|
|
921
916
|
Vt as ApiErrorLog,
|
|
922
|
-
|
|
917
|
+
jt as ApiJob,
|
|
923
918
|
Ut as ApiLoginLog,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
et as EDialog,
|
|
919
|
+
Rt as ApiSmsConfig,
|
|
920
|
+
$t as ApiSystemConfig,
|
|
921
|
+
Dt as ApiSystemTenant,
|
|
928
922
|
tt as ERouter,
|
|
929
923
|
u as System,
|
|
930
|
-
|
|
931
|
-
|
|
924
|
+
Nt as initApp,
|
|
925
|
+
T as scurd,
|
|
932
926
|
c as ssys,
|
|
933
927
|
d as suser,
|
|
934
928
|
v as sutil,
|
|
935
|
-
|
|
929
|
+
$ as svf
|
|
936
930
|
};
|