cc1-admin-front 0.0.2 → 0.0.4
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 +119 -123
- package/dist/cc1-admin-front.umd.cjs +1 -1
- package/dist/enum/Enum.d.ts +0 -5
- package/dist/{index-Dd54sn7c.js → index-Cwr-LCNc.js} +33 -26
- package/dist/{index-DxQTvIMJ.js → index-Dejkixap.js} +38 -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 w, 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 xt {
|
|
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];
|
|
@@ -287,8 +282,10 @@ class L {
|
|
|
287
282
|
},
|
|
288
283
|
after(o, r) {
|
|
289
284
|
const { code: a } = o.data;
|
|
290
|
-
if (a != 200)
|
|
291
|
-
|
|
285
|
+
if (a != 200) {
|
|
286
|
+
r.res = o.data, o.status = a;
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
292
289
|
t(r.data, ["final", "success", "complete"], o.data, r, o);
|
|
293
290
|
},
|
|
294
291
|
error: s
|
|
@@ -321,13 +318,13 @@ class u {
|
|
|
321
318
|
},
|
|
322
319
|
staticDir: "/static_admin"
|
|
323
320
|
};
|
|
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,
|
|
321
|
+
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
322
|
}
|
|
326
323
|
static getBaseUrl(t) {
|
|
327
|
-
return t =
|
|
324
|
+
return t = b.baseUrl.replace("/api", "/") + t, t = t.replace(/(?<!:)\/{2,}/g, "/"), t;
|
|
328
325
|
}
|
|
329
326
|
}
|
|
330
|
-
const
|
|
327
|
+
const V = (e) => {
|
|
331
328
|
const t = JSONUtil.cp(e), s = (o) => t.filter((a) => {
|
|
332
329
|
let l = a.parentId;
|
|
333
330
|
return a.parentId.includes(",") && (l = a.parentId.split(",").pop()), l === o;
|
|
@@ -337,7 +334,7 @@ const R = (e) => {
|
|
|
337
334
|
})).sort((a, l) => a.sort - l.sort);
|
|
338
335
|
return s("0");
|
|
339
336
|
}, c = y({
|
|
340
|
-
getTableTree:
|
|
337
|
+
getTableTree: V,
|
|
341
338
|
auth: {
|
|
342
339
|
list: ["/api/system/list", "/api/system/detail"],
|
|
343
340
|
isPass: (e) => c.auth.list.includes(e)
|
|
@@ -364,11 +361,11 @@ const R = (e) => {
|
|
|
364
361
|
c.menuListSource = JSONUtil.cp(e);
|
|
365
362
|
try {
|
|
366
363
|
if (StrUtil.isNull(e) || (e = e), StrUtil.isNull(e))
|
|
367
|
-
return
|
|
368
|
-
let t =
|
|
364
|
+
return h.router.push("/login"), [];
|
|
365
|
+
let t = V(e);
|
|
369
366
|
return c.setMenuList(t, e), JSONUtil.cp(c.menuList);
|
|
370
367
|
} catch {
|
|
371
|
-
|
|
368
|
+
h.router.push("/login");
|
|
372
369
|
}
|
|
373
370
|
return JSONUtil.cp(c.menuList);
|
|
374
371
|
},
|
|
@@ -379,9 +376,9 @@ const R = (e) => {
|
|
|
379
376
|
getApiList: async () => {
|
|
380
377
|
let e = Cookie.get("apiList");
|
|
381
378
|
try {
|
|
382
|
-
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (
|
|
379
|
+
return StrUtil.isNull(e) || (e = e), StrUtil.isNull(e) ? (h.router.push("/login"), []) : (c.setApiList(e), c.apiList);
|
|
383
380
|
} catch {
|
|
384
|
-
|
|
381
|
+
h.router.push("/login");
|
|
385
382
|
}
|
|
386
383
|
return c.apiList;
|
|
387
384
|
},
|
|
@@ -391,10 +388,10 @@ const R = (e) => {
|
|
|
391
388
|
t.type = "file", t.accept = e.accept || "image/*", t.multiple = e.multiple || !1, t.onchange = async (s) => {
|
|
392
389
|
const o = s.target.files[0];
|
|
393
390
|
if (o) {
|
|
394
|
-
const r = await
|
|
391
|
+
const r = await R.upload({
|
|
395
392
|
file: o
|
|
396
393
|
});
|
|
397
|
-
e.callback(r.data), e.toast,
|
|
394
|
+
e.callback(r.data), e.toast, h.success("上传成功");
|
|
398
395
|
} else
|
|
399
396
|
e.callback("");
|
|
400
397
|
}, t.click();
|
|
@@ -408,7 +405,7 @@ const R = (e) => {
|
|
|
408
405
|
c.preview.index = t, c.preview.srcList = e.map((s) => u.getBaseUrl(s)), c.preview.show = !0;
|
|
409
406
|
}
|
|
410
407
|
}
|
|
411
|
-
}),
|
|
408
|
+
}), et = /* @__PURE__ */ j({
|
|
412
409
|
name: "App",
|
|
413
410
|
__name: "App",
|
|
414
411
|
setup(e) {
|
|
@@ -422,25 +419,25 @@ const R = (e) => {
|
|
|
422
419
|
}
|
|
423
420
|
});
|
|
424
421
|
return CEvent.on(tt.reload, t.reload), (s, o) => {
|
|
425
|
-
const r =
|
|
426
|
-
return E(),
|
|
422
|
+
const r = L("x-route-event"), a = L("router-view"), l = L("el-image-viewer"), p = L("el-config-provider");
|
|
423
|
+
return E(), U(p, {
|
|
427
424
|
locale: t.locale
|
|
428
425
|
}, {
|
|
429
426
|
default: M(() => [
|
|
430
427
|
_(r),
|
|
431
428
|
_(a),
|
|
432
|
-
|
|
429
|
+
w(c).preview.show ? (E(), U(l, {
|
|
433
430
|
key: 0,
|
|
434
|
-
"url-list":
|
|
435
|
-
"initial-index":
|
|
436
|
-
onClose: o[0] || (o[0] = (i) =>
|
|
431
|
+
"url-list": w(c).preview.srcList,
|
|
432
|
+
"initial-index": w(c).preview.index,
|
|
433
|
+
onClose: o[0] || (o[0] = (i) => w(c).preview.show = !1)
|
|
437
434
|
}, null, 8, ["url-list", "initial-index"])) : B("", !0)
|
|
438
435
|
]),
|
|
439
436
|
_: 1
|
|
440
437
|
}, 8, ["locale"]);
|
|
441
438
|
};
|
|
442
439
|
}
|
|
443
|
-
}),
|
|
440
|
+
}), T = y({
|
|
444
441
|
/**
|
|
445
442
|
* 查找组件对应的options配置
|
|
446
443
|
* @param option
|
|
@@ -459,7 +456,7 @@ const R = (e) => {
|
|
|
459
456
|
* @param data
|
|
460
457
|
*/
|
|
461
458
|
setOptionsData: (e, t, s) => {
|
|
462
|
-
const o =
|
|
459
|
+
const o = T.findOptions(e, t);
|
|
463
460
|
o && (o.data = s);
|
|
464
461
|
},
|
|
465
462
|
form: {
|
|
@@ -472,7 +469,7 @@ const R = (e) => {
|
|
|
472
469
|
* @param option 组件配置
|
|
473
470
|
*/
|
|
474
471
|
parentId: (e, t, s, o) => {
|
|
475
|
-
e ? t.type ===
|
|
472
|
+
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
473
|
}
|
|
477
474
|
}
|
|
478
475
|
}
|
|
@@ -509,24 +506,24 @@ const R = (e) => {
|
|
|
509
506
|
key: "thisWeek"
|
|
510
507
|
};
|
|
511
508
|
t.push(p);
|
|
512
|
-
const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1],
|
|
509
|
+
const i = o(1 - r - 7)[0], f = o(7 - r - 7)[1], C = {
|
|
513
510
|
label: u.i18n.t("dateOptions.LastWeek"),
|
|
514
511
|
value: [i, f],
|
|
515
512
|
key: "lastWeek"
|
|
516
513
|
};
|
|
517
|
-
t.push(
|
|
514
|
+
t.push(C);
|
|
518
515
|
const n = /* @__PURE__ */ new Date();
|
|
519
516
|
n.setDate(1);
|
|
520
517
|
const g = o(0, n);
|
|
521
518
|
n.setMonth(n.getMonth() + 1), n.setDate(1), n.setDate(n.getDate() - 1);
|
|
522
|
-
const
|
|
519
|
+
const m = o(0, n), D = {
|
|
523
520
|
label: u.i18n.t("dateOptions.ThisMonth"),
|
|
524
|
-
value: [g[0],
|
|
521
|
+
value: [g[0], m[1]],
|
|
525
522
|
key: "thisMonth"
|
|
526
523
|
};
|
|
527
524
|
return t.push(D), t;
|
|
528
525
|
}
|
|
529
|
-
}),
|
|
526
|
+
}), $ = y({
|
|
530
527
|
/**
|
|
531
528
|
* 获取校验对象-默认使用对数字进行只保留数字、正数、小数后两位保留修正操作
|
|
532
529
|
*
|
|
@@ -559,7 +556,7 @@ const R = (e) => {
|
|
|
559
556
|
*/
|
|
560
557
|
getVf: (e, t, s) => {
|
|
561
558
|
const o = {};
|
|
562
|
-
s === void 0 && (s =
|
|
559
|
+
s === void 0 && (s = $.inputVal);
|
|
563
560
|
for (const r in t)
|
|
564
561
|
o[r] = (a) => {
|
|
565
562
|
e[r] = null, s({
|
|
@@ -640,37 +637,37 @@ const R = (e) => {
|
|
|
640
637
|
};
|
|
641
638
|
if (t.length) {
|
|
642
639
|
s && t.length > s && (t = t.substring(0, s));
|
|
643
|
-
const i = [], f = [],
|
|
644
|
-
n === g ? Array.isArray(e[n]) ?
|
|
640
|
+
const i = [], f = [], C = (n, g, m) => {
|
|
641
|
+
n === g ? Array.isArray(e[n]) ? m.push(...e[n]) : m.push(e[n]) : m.push(p[n.substring(3)]);
|
|
645
642
|
};
|
|
646
643
|
Object.keys(e).forEach((n) => {
|
|
647
|
-
n.startsWith("get") ?
|
|
644
|
+
n.startsWith("get") ? C(n, "getCustom", i) : n.startsWith("del") ? C(n, "delCustom", f) : p[n] && (t = p[n](t));
|
|
648
645
|
}), i.length && (t = t.replace(new RegExp(`[^${i.join("")}]`, "g"), "")), f.length && (t = t.replace(new RegExp(`[${f.join("")}]`, "g"), ""));
|
|
649
646
|
}
|
|
650
647
|
return e.after(t), t;
|
|
651
648
|
}
|
|
652
|
-
}),
|
|
649
|
+
}), st = (e) => {
|
|
653
650
|
const t = Cookie.clear.bind(Cookie);
|
|
654
651
|
Cookie.clear = async (s, o) => {
|
|
655
652
|
s = s || {}, s.excludeList = s.excludeList || [], s.excludeList.push("apiurl"), await t(s, o);
|
|
656
653
|
};
|
|
657
|
-
},
|
|
658
|
-
install:
|
|
659
|
-
},
|
|
654
|
+
}, ot = {
|
|
655
|
+
install: st
|
|
656
|
+
}, it = (e) => {
|
|
660
657
|
S.CEventBean = CEventBean, S.TimerBean = TimerBean;
|
|
661
|
-
},
|
|
662
|
-
install:
|
|
658
|
+
}, rt = {
|
|
659
|
+
install: it
|
|
663
660
|
};
|
|
664
|
-
let k = {},
|
|
665
|
-
const
|
|
666
|
-
e.use(G), k = Cookie.get("iconObj") || {},
|
|
661
|
+
let k = {}, x = {};
|
|
662
|
+
const at = (e) => {
|
|
663
|
+
e.use(G), k = Cookie.get("iconObj") || {}, x = Cookie.get("siconObj") || {}, VConf.vicon.fun.getRes = async (t) => k[t], VConf.vicon.fun.setRes = (t, s) => {
|
|
667
664
|
k[t] = s, Cookie.set("iconObj", k);
|
|
668
|
-
}, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) =>
|
|
669
|
-
|
|
665
|
+
}, VConf.vsicon.url = u.staticDir + "/vicon/svg", VConf.vsicon.lib = "", VConf.vsicon.fun.getRes = async (t) => x[t], VConf.vsicon.fun.setRes = (t, s) => {
|
|
666
|
+
x[t] = s, Cookie.set("siconObj", x);
|
|
670
667
|
};
|
|
671
|
-
},
|
|
672
|
-
install:
|
|
673
|
-
},
|
|
668
|
+
}, nt = {
|
|
669
|
+
install: at
|
|
670
|
+
}, lt = { style: { border: "1px solid #ccc" } }, ct = /* @__PURE__ */ j({
|
|
674
671
|
__name: "index",
|
|
675
672
|
props: {
|
|
676
673
|
modelValue: {
|
|
@@ -680,7 +677,7 @@ const nt = (e) => {
|
|
|
680
677
|
},
|
|
681
678
|
emits: ["update:modelValue"],
|
|
682
679
|
setup(e, { emit: t }) {
|
|
683
|
-
const s =
|
|
680
|
+
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
681
|
z(p, (n) => {
|
|
685
682
|
a("update:modelValue", n);
|
|
686
683
|
});
|
|
@@ -691,10 +688,10 @@ const nt = (e) => {
|
|
|
691
688
|
MENU_CONF: {
|
|
692
689
|
uploadImage: {
|
|
693
690
|
async customUpload(n, g) {
|
|
694
|
-
const
|
|
691
|
+
const m = await R.upload({
|
|
695
692
|
file: n
|
|
696
693
|
});
|
|
697
|
-
|
|
694
|
+
m.data = u.getBaseUrl(m.data), g(m.data, "", m.data), a("update:modelValue", p.value);
|
|
698
695
|
}
|
|
699
696
|
}
|
|
700
697
|
}
|
|
@@ -703,27 +700,27 @@ const nt = (e) => {
|
|
|
703
700
|
const n = l.value;
|
|
704
701
|
n?.destroy();
|
|
705
702
|
});
|
|
706
|
-
const
|
|
703
|
+
const C = (n) => {
|
|
707
704
|
l.value = n;
|
|
708
705
|
};
|
|
709
|
-
return (n, g) => (E(), J("div",
|
|
710
|
-
_(
|
|
706
|
+
return (n, g) => (E(), J("div", lt, [
|
|
707
|
+
_(w(o), {
|
|
711
708
|
style: { "border-bottom": "1px solid #ccc" },
|
|
712
709
|
editor: l.value,
|
|
713
710
|
defaultConfig: i,
|
|
714
711
|
mode: "default"
|
|
715
712
|
}, null, 8, ["editor"]),
|
|
716
|
-
_(
|
|
713
|
+
_(w(s), {
|
|
717
714
|
style: { height: "500px", "overflow-y": "hidden" },
|
|
718
715
|
modelValue: p.value,
|
|
719
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
716
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => p.value = m),
|
|
720
717
|
defaultConfig: f,
|
|
721
718
|
mode: "default",
|
|
722
|
-
onOnCreated:
|
|
719
|
+
onOnCreated: C
|
|
723
720
|
}, null, 8, ["modelValue"])
|
|
724
721
|
]));
|
|
725
722
|
}
|
|
726
|
-
}),
|
|
723
|
+
}), ut = (e) => {
|
|
727
724
|
const t = {
|
|
728
725
|
activeValue: 1,
|
|
729
726
|
inactiveValue: 0,
|
|
@@ -794,23 +791,23 @@ const nt = (e) => {
|
|
|
794
791
|
}
|
|
795
792
|
}), e.use(K, {
|
|
796
793
|
customComponent: {
|
|
797
|
-
xEditor:
|
|
794
|
+
xEditor: ct
|
|
798
795
|
}
|
|
799
796
|
});
|
|
800
|
-
},
|
|
801
|
-
install:
|
|
802
|
-
},
|
|
803
|
-
e.use(
|
|
804
|
-
},
|
|
805
|
-
install:
|
|
806
|
-
},
|
|
797
|
+
}, pt = {
|
|
798
|
+
install: ut
|
|
799
|
+
}, dt = (e) => {
|
|
800
|
+
e.use(ot), e.use(rt), e.use(nt), e.use(pt);
|
|
801
|
+
}, ht = {
|
|
802
|
+
install: dt
|
|
803
|
+
}, mt = () => {
|
|
807
804
|
const e = (i) => i.replace(/\/index$/, "");
|
|
808
805
|
let t = /* @__PURE__ */ Object.assign({
|
|
809
806
|
"/src/views/error/index.vue": () => import("./index-BTuR22Wh.js"),
|
|
810
807
|
"/src/views/layout/index.vue": () => import("./index-Bk_LJXIb.js"),
|
|
811
808
|
"/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-
|
|
809
|
+
"/src/views/pages/auth/api/index.vue": () => import("./index-Dejkixap.js"),
|
|
810
|
+
"/src/views/pages/auth/menu/index.vue": () => import("./index-Cwr-LCNc.js"),
|
|
814
811
|
"/src/views/pages/auth/role/index.vue": () => import("./index-CRagZR_l.js"),
|
|
815
812
|
"/src/views/pages/auth/user/index.vue": () => import("./index-WKWmXVBK.js"),
|
|
816
813
|
"/src/views/pages/db/index.vue": () => import("./index-DFNCjb_F.js"),
|
|
@@ -824,7 +821,7 @@ const nt = (e) => {
|
|
|
824
821
|
"/src/views/pages/system/tenant/index.vue": () => import("./index-uPQ6O40Q.js")
|
|
825
822
|
});
|
|
826
823
|
if (!u.config.routes) {
|
|
827
|
-
|
|
824
|
+
h.fail("router.routes is required");
|
|
828
825
|
return;
|
|
829
826
|
}
|
|
830
827
|
Object.keys(u.config.routes).forEach((i) => {
|
|
@@ -870,67 +867,66 @@ const nt = (e) => {
|
|
|
870
867
|
}
|
|
871
868
|
]
|
|
872
869
|
});
|
|
873
|
-
return
|
|
870
|
+
return h.router = p, h.routes = l.array, p;
|
|
874
871
|
};
|
|
875
872
|
v.store = {
|
|
876
873
|
ssys: c,
|
|
877
874
|
suser: d,
|
|
878
875
|
sutil: v,
|
|
879
|
-
svf:
|
|
880
|
-
scurd:
|
|
876
|
+
svf: $,
|
|
877
|
+
scurd: T
|
|
881
878
|
};
|
|
882
|
-
const
|
|
879
|
+
const ft = () => {
|
|
883
880
|
Object.keys(v.store).forEach((e) => {
|
|
884
881
|
e !== "sutil" && v.store[e].reset?.();
|
|
885
882
|
});
|
|
886
|
-
},
|
|
883
|
+
}, gt = () => {
|
|
887
884
|
Object.keys(v.store).forEach((e) => {
|
|
888
885
|
e !== "sutil" && v.store[e].load?.();
|
|
889
886
|
});
|
|
890
|
-
},
|
|
891
|
-
|
|
887
|
+
}, vt = async () => {
|
|
888
|
+
gt();
|
|
892
889
|
};
|
|
893
|
-
v.reset =
|
|
890
|
+
v.reset = ft;
|
|
894
891
|
class Ct {
|
|
895
892
|
/**
|
|
896
893
|
* 初始化
|
|
897
894
|
*/
|
|
898
895
|
static async init(t) {
|
|
899
|
-
t.use(
|
|
900
|
-
const s =
|
|
896
|
+
t.use(ht), t.use(u.i18n), await u.i18n.setLang(), vt(), b.init();
|
|
897
|
+
const s = mt();
|
|
901
898
|
t.use(s), s.isReady().then(async () => {
|
|
902
899
|
t.mount("#app");
|
|
903
900
|
});
|
|
904
901
|
}
|
|
905
902
|
}
|
|
906
|
-
const
|
|
907
|
-
u.setConfig(e), await u.config.install?.(
|
|
903
|
+
const A = F(et), Nt = async (e) => {
|
|
904
|
+
u.setConfig(e), await u.config.install?.(A), A.use(window.ElementPlus);
|
|
908
905
|
const t = await import("./index-DU5RPuKk.js");
|
|
909
|
-
|
|
906
|
+
A.use(t), Ct.init(A);
|
|
910
907
|
};
|
|
911
908
|
export {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
909
|
+
R as ApiApp,
|
|
910
|
+
xt as ApiAuthApi,
|
|
911
|
+
At as ApiAuthMenu,
|
|
912
|
+
Ot as ApiAuthPhone,
|
|
913
|
+
_t as ApiAuthRole,
|
|
914
|
+
Et as ApiAuthUser,
|
|
918
915
|
Tt as ApiCaptcha,
|
|
919
|
-
|
|
920
|
-
|
|
916
|
+
It as ApiCron,
|
|
917
|
+
St as ApiEmailConfig,
|
|
921
918
|
Vt as ApiErrorLog,
|
|
922
|
-
|
|
919
|
+
jt as ApiJob,
|
|
923
920
|
Ut as ApiLoginLog,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
et as EDialog,
|
|
921
|
+
Rt as ApiSmsConfig,
|
|
922
|
+
$t as ApiSystemConfig,
|
|
923
|
+
Dt as ApiSystemTenant,
|
|
928
924
|
tt as ERouter,
|
|
929
925
|
u as System,
|
|
930
|
-
|
|
931
|
-
|
|
926
|
+
Nt as initApp,
|
|
927
|
+
T as scurd,
|
|
932
928
|
c as ssys,
|
|
933
929
|
d as suser,
|
|
934
930
|
v as sutil,
|
|
935
|
-
|
|
931
|
+
$ as svf
|
|
936
932
|
};
|