@gonsin/gview 2.0.94 → 2.0.95
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.mjs +913 -898
- package/dist/types/http/index.d.ts +1 -0
- package/dist/types/utils/download.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Wa = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { useI18n as
|
|
2
|
+
var qa = (n, e, t) => e in n ? Wa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var Bt = (n, e, t) => (qa(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { useI18n as Me } from "gonsin-i18n";
|
|
5
5
|
import { useI18n as Oc } from "gonsin-i18n";
|
|
6
|
-
import { defineComponent as ue, ref as
|
|
6
|
+
import { defineComponent as ue, ref as q, computed as V, resolveComponent as Q, openBlock as v, createBlock as $, normalizeClass as Z, withCtx as k, createElementBlock as W, Fragment as de, renderList as Se, createVNode as F, createElementVNode as ne, unref as h, createTextVNode as re, toDisplayString as te, createCommentVNode as X, withModifiers as Ot, nextTick as Ya, inject as ze, normalizeStyle as bt, normalizeProps as Lt, mergeProps as Ee, guardReactiveProps as qt, renderSlot as Ke, onMounted as Ue, onBeforeUnmount as Tt, isRef as Qa, Transition as Xa, watch as De, createSlots as Yt, useSlots as qo, resolveDynamicComponent as Za, TransitionGroup as Ja, toRefs as el, provide as At, reactive as Bn, onBeforeMount as Jt, toRaw as In, shallowRef as tl, defineAsyncComponent as Yo, watchEffect as nl } from "vue";
|
|
7
7
|
import { useRouter as ft, useRoute as st, onBeforeRouteLeave as Qo, onBeforeRouteUpdate as Xo } from "vue-router";
|
|
8
|
-
import { defineStore as
|
|
8
|
+
import { defineStore as Rt, storeToRefs as ol } from "pinia";
|
|
9
9
|
import dt from "dayjs";
|
|
10
|
-
import
|
|
10
|
+
import bn from "axios";
|
|
11
11
|
import { MessagePlugin as he, Button as al, Progress as Zo, Tooltip as St, Link as ll, Tree as rl, Card as sl, DialogPlugin as vn, ConfigProvider as il } from "tdesign-vue-next";
|
|
12
|
-
import { get as fe, set as je, cloneDeep as Xe, isPlainObject as ho, isArray as vo, isEqual as go } from "lodash-es";
|
|
13
12
|
import { customAlphabet as ul } from "nanoid";
|
|
14
|
-
import {
|
|
13
|
+
import { get as fe, set as je, cloneDeep as Ze, isPlainObject as ho, isArray as vo, isEqual as go } from "lodash-es";
|
|
14
|
+
import { RefreshIcon as Kn, CloseIcon as Vt, ArrowLeftIcon as yo, ArrowRightIcon as bo, CloseCircleIcon as wo, MoreIcon as cl, DeleteIcon as dl, ViewListIcon as ml, PoweroffIcon as fl, ChevronDownIcon as pl, Icon as To, AppIcon as gt, UploadIcon as ko, CheckCircleFilledIcon as hl, PlayCircleFilledIcon as vl, PauseCircleFilledIcon as gl, LinkIcon as yl, ErrorCircleFilledIcon as bl, FileImageIcon as Qt, FilePdfIcon as Jo, VideoIcon as Wn, FileIconIcon as qn, FolderOpenIcon as wl, FolderIcon as Tl, FilterIcon as kl, SearchIcon as Cl, UserIcon as Pn, BrowseIcon as Ml, ChevronRightIcon as _l, ChevronUpIcon as Il, MoveIcon as Ll } from "tdesign-icons-vue-next";
|
|
15
15
|
import { useElementSize as Sl, onClickOutside as Co, useEventListener as Mo } from "@vueuse/core";
|
|
16
16
|
import gn from "number-precision";
|
|
17
17
|
import no from "qs";
|
|
@@ -20,22 +20,22 @@ import { default as Rc } from "nprogress";
|
|
|
20
20
|
import mt from "mustache";
|
|
21
21
|
import { Toolbar as Nl, Editor as El } from "@wangeditor/editor-for-vue";
|
|
22
22
|
import _o from "he";
|
|
23
|
-
function
|
|
23
|
+
function qe(n, e, t) {
|
|
24
24
|
const o = n;
|
|
25
25
|
return o.install = (a, l) => {
|
|
26
26
|
a.component(e || l || o.name, n), t && a.directive(t.name, t.comp);
|
|
27
27
|
}, o;
|
|
28
28
|
}
|
|
29
|
-
const nn = "config", Io = "themeConfig", Al = "user", Lo = "langConfig", pc = "menu",
|
|
29
|
+
const nn = "config", Io = "themeConfig", Al = "user", Lo = "langConfig", pc = "menu", xn = "initTabMenuList", Vn = "tabMenu", on = "sideMenuConfig", So = "token", Do = "tokenExpiredTime", hc = "dataId", Xt = "sessionId", an = "formDataCache", ln = "columnData", No = "permissions", Fl = {
|
|
30
30
|
brandTheme: "default",
|
|
31
31
|
// 主题色
|
|
32
32
|
displayMode: "light"
|
|
33
33
|
// 主题模式 light | dark | auto
|
|
34
34
|
};
|
|
35
|
-
function
|
|
35
|
+
function wn(n, e, t) {
|
|
36
36
|
return n.filter((o) => o.parent === e && o.menuMold != 3).map((o) => ({
|
|
37
37
|
...o,
|
|
38
|
-
children:
|
|
38
|
+
children: wn(n, o.name, t + 1),
|
|
39
39
|
path: o.url,
|
|
40
40
|
// 菜单路径
|
|
41
41
|
alias: o.title,
|
|
@@ -89,7 +89,7 @@ class na {
|
|
|
89
89
|
/**
|
|
90
90
|
* 存储实例: 默认为 local
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
Bt(this, "storage");
|
|
93
93
|
switch (e) {
|
|
94
94
|
case "local":
|
|
95
95
|
this.storage = window.localStorage;
|
|
@@ -117,7 +117,7 @@ class na {
|
|
|
117
117
|
this.storage.clear();
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const Be = new na("session"),
|
|
120
|
+
const Be = new na("session"), Je = new na("local"), vc = [
|
|
121
121
|
"#0052d9",
|
|
122
122
|
"#0594fa",
|
|
123
123
|
"#00a870",
|
|
@@ -249,7 +249,7 @@ const Be = new na("session"), et = new na("local"), vc = [
|
|
|
249
249
|
case "https:":
|
|
250
250
|
return `${e.replace(t, "wss:")}${n}`;
|
|
251
251
|
}
|
|
252
|
-
}, Bl = $l("/gview/websocket"),
|
|
252
|
+
}, Bl = $l("/gview/websocket"), On = (n, e = "", t = "") => e ? {
|
|
253
253
|
head: "gonsin",
|
|
254
254
|
cmd: {
|
|
255
255
|
cmd: "gview_client",
|
|
@@ -266,7 +266,7 @@ const Be = new na("session"), et = new na("local"), vc = [
|
|
|
266
266
|
subcmd: n,
|
|
267
267
|
response: 0
|
|
268
268
|
}
|
|
269
|
-
}, Pl = 3e4, xl = 3e3, yn = "g-dialog-plugin", Vl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", Ol = "g-common-table", Ul = "g-board", bc = "g-dialog", Rl = "g-form", Eo = "g-form-item", wc = "g-header", jl = "g-tab",
|
|
269
|
+
}, Pl = 3e4, xl = 3e3, yn = "g-dialog-plugin", Vl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", Ol = "g-common-table", Ul = "g-board", bc = "g-dialog", Rl = "g-form", Eo = "g-form-item", wc = "g-header", jl = "g-tab", xt = "g-table", et = "g-layout", un = "g-uploader", _t = "g-login";
|
|
270
270
|
function zl(n) {
|
|
271
271
|
return n.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
272
272
|
}
|
|
@@ -287,7 +287,7 @@ function Hl(n, e) {
|
|
|
287
287
|
let t = Gl(n, e);
|
|
288
288
|
return Function(t)();
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Qn(n, e = {}) {
|
|
291
291
|
return Hl(n, e)(e);
|
|
292
292
|
}
|
|
293
293
|
function Kl(n) {
|
|
@@ -301,7 +301,7 @@ function pt(n, e) {
|
|
|
301
301
|
function Dt(n) {
|
|
302
302
|
return pt(n, "Function");
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const ql = (n) => typeof n < "u", la = (n) => !ql(n), oo = (n) => n !== null && pt(n, "Object");
|
|
305
305
|
function Tc(n) {
|
|
306
306
|
return pt(n, "Date");
|
|
307
307
|
}
|
|
@@ -311,7 +311,7 @@ function kc(n) {
|
|
|
311
311
|
function Cc(n) {
|
|
312
312
|
return pt(n, "AsyncFunction");
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Yl(n) {
|
|
315
315
|
return pt(n, "Promise") && oo(n) && Dt(n.then) && Dt(n.catch);
|
|
316
316
|
}
|
|
317
317
|
function Mc(n) {
|
|
@@ -333,7 +333,7 @@ function Ao(n) {
|
|
|
333
333
|
function We(n) {
|
|
334
334
|
return la(n) || lt(n);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Tn(n) {
|
|
337
337
|
return We(n) || (n + "").trim() == "";
|
|
338
338
|
}
|
|
339
339
|
function Xl(n) {
|
|
@@ -425,22 +425,154 @@ function en(n) {
|
|
|
425
425
|
function er(n) {
|
|
426
426
|
return n.startsWith("/files") || n.startsWith("/temp") || n.startsWith("/lang");
|
|
427
427
|
}
|
|
428
|
-
const
|
|
429
|
-
|
|
428
|
+
const ra = {
|
|
429
|
+
// 设置超时时间(10s)
|
|
430
|
+
timeout: 1e4
|
|
431
|
+
// 跨域时候允许携带凭证
|
|
432
|
+
// withCredentials: true,
|
|
433
|
+
// crossDomain: true,
|
|
434
|
+
};
|
|
435
|
+
function Zt(n) {
|
|
436
|
+
return ul(
|
|
437
|
+
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
438
|
+
32
|
|
439
|
+
)(n);
|
|
440
|
+
}
|
|
441
|
+
function tr() {
|
|
442
|
+
const n = sessionStorage.getItem(Xt);
|
|
443
|
+
if ((n ?? "") != "")
|
|
444
|
+
return n;
|
|
445
|
+
{
|
|
446
|
+
const e = Zt(32);
|
|
447
|
+
return sessionStorage.setItem(Xt, e), e;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
function cn(n, e) {
|
|
451
|
+
return e ? n.indexOf("?") > -1 ? n += "&sessionId=" + e : n += "?sessionId=" + e : n;
|
|
452
|
+
}
|
|
453
|
+
const Dc = {
|
|
454
|
+
...ra
|
|
455
|
+
};
|
|
456
|
+
class nr {
|
|
457
|
+
constructor(e) {
|
|
458
|
+
Bt(this, "sessionId");
|
|
459
|
+
Bt(this, "service");
|
|
460
|
+
Bt(this, "unAuthService");
|
|
461
|
+
Bt(this, "router");
|
|
462
|
+
this.sessionId = tr, this.service = bn.create(e), this.unAuthService = bn.create(e), this.router = null;
|
|
463
|
+
const t = (r = !0) => async (u) => {
|
|
464
|
+
const i = xe();
|
|
465
|
+
i.checkUserToken();
|
|
466
|
+
const d = i.token ?? "", s = i.userLang ?? "zh-CN";
|
|
467
|
+
return u.headers = {
|
|
468
|
+
...u == null ? void 0 : u.headers,
|
|
469
|
+
"Operation-Log-Require": !0,
|
|
470
|
+
...r ? { Authorization: !0 } : {},
|
|
471
|
+
...d !== "" ? { token: d } : {},
|
|
472
|
+
lang: s
|
|
473
|
+
}, {
|
|
474
|
+
...u
|
|
475
|
+
};
|
|
476
|
+
}, o = (r) => (console.error("http request error:", r), Promise.reject(r)), a = (r) => {
|
|
477
|
+
const { data: u } = r, { state: i, message: d } = u, s = xe();
|
|
478
|
+
if (i && i != null) {
|
|
479
|
+
if (i === 302)
|
|
480
|
+
return he.error(d), s && s.userLogout(), this.router && this.router.push({
|
|
481
|
+
name: "login"
|
|
482
|
+
}), u;
|
|
483
|
+
if (i == "-409") {
|
|
484
|
+
const { device: c, uuid: f } = u.data;
|
|
485
|
+
if (c && f) {
|
|
486
|
+
if (this.router) {
|
|
487
|
+
this.router.push({
|
|
488
|
+
name: "license",
|
|
489
|
+
query: {
|
|
490
|
+
device: c,
|
|
491
|
+
uuid: f
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
} else
|
|
497
|
+
throw r;
|
|
498
|
+
}
|
|
499
|
+
if (i !== 200) {
|
|
500
|
+
if (console.error("http response state error:", u), d)
|
|
501
|
+
he.error(`${d}`);
|
|
502
|
+
else {
|
|
503
|
+
const { T: c } = Me();
|
|
504
|
+
he.error(`${c.t("服务器出错")}`);
|
|
505
|
+
}
|
|
506
|
+
return u;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
return u;
|
|
510
|
+
}, l = async (r) => {
|
|
511
|
+
console.error("http response error", r);
|
|
512
|
+
const { T: u } = Me();
|
|
513
|
+
return r.code === "ECONNABORTED" ? Promise.reject({
|
|
514
|
+
message: u.t("请求超时,请检查网络连接或尝试重新发送请求。")
|
|
515
|
+
}) : (he.error(r.message), Promise.reject(r));
|
|
516
|
+
};
|
|
517
|
+
this.service.interceptors.request.use(t(), o), this.service.interceptors.response.use(a, l), this.unAuthService.interceptors.request.use(
|
|
518
|
+
t(!1),
|
|
519
|
+
o
|
|
520
|
+
), this.unAuthService.interceptors.response.use(a, l);
|
|
521
|
+
}
|
|
522
|
+
get(e, t, o = {}) {
|
|
523
|
+
return this.service.get(`${cn(e, this.sessionId())}`, { params: t, ...o });
|
|
524
|
+
}
|
|
525
|
+
post(e, t, o = {}) {
|
|
526
|
+
return this.service.post(`${cn(e, this.sessionId())}`, t, o);
|
|
527
|
+
}
|
|
528
|
+
put(e, t, o = {}) {
|
|
529
|
+
return this.service.put(`${cn(e, this.sessionId())}`, t, o);
|
|
530
|
+
}
|
|
531
|
+
delete(e, t, o = {}) {
|
|
532
|
+
return this.service.delete(`${cn(e, this.sessionId())}`, {
|
|
533
|
+
params: t,
|
|
534
|
+
...o
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
initRouter(e) {
|
|
538
|
+
this.router = e;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
const Qe = new nr(ra), { T: dn } = Me();
|
|
542
|
+
function $o(n, e = "", t = "blob") {
|
|
430
543
|
if (n == "") {
|
|
431
|
-
he.info(`${
|
|
544
|
+
he.info(`${dn.t("未设置下载链接")}`);
|
|
432
545
|
return;
|
|
433
546
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
547
|
+
const o = xe(), a = o.token ?? "", l = o.userLang ?? "zh-CN";
|
|
548
|
+
if (console.log("原下载链接", n, t), t == "blob")
|
|
549
|
+
bn.get(n, {
|
|
550
|
+
responseType: "blob",
|
|
551
|
+
params: {
|
|
552
|
+
sessionId: Qe.sessionId()
|
|
553
|
+
},
|
|
554
|
+
headers: {
|
|
555
|
+
Authorization: !0,
|
|
556
|
+
"Operation-Log-Require": !0,
|
|
557
|
+
...a !== "" ? { token: a } : {},
|
|
558
|
+
lang: l
|
|
559
|
+
}
|
|
560
|
+
}).then((r) => {
|
|
561
|
+
if (r.status == 200) {
|
|
562
|
+
r.data.type == "application/json" && new Blob([r.data]).text().then((N) => {
|
|
563
|
+
const R = JSON.parse(N);
|
|
564
|
+
if (R !== null && Object.keys(R).includes("state") && R.state !== 200)
|
|
565
|
+
throw R.message;
|
|
566
|
+
});
|
|
567
|
+
const i = r.headers["content-disposition"].match(/filename="(.*)"/), d = decodeURIComponent(i[1]), s = i[1].split(".").pop(), c = new Blob([r.data], { type: r.data.type }), f = window.URL.createObjectURL(c), p = document.createElement("a");
|
|
568
|
+
p.href = f, console.log(d), e !== "" ? p.download = e + "." + s : p.download = d, console.log(`下载链接:${f}`), he.info(`${dn.t("即将开始下载")} ${p.download}`), document.body.appendChild(p), p.click(), window.URL.revokeObjectURL(f);
|
|
569
|
+
}
|
|
570
|
+
}).catch((r) => {
|
|
571
|
+
he.error(`${dn.t("下载失败")} ${r.message}`), console.error(r);
|
|
440
572
|
});
|
|
441
573
|
else if (t == "file") {
|
|
442
|
-
const
|
|
443
|
-
|
|
574
|
+
const r = document.createElement("a");
|
|
575
|
+
r.setAttribute("target", "_black"), r.setAttribute("download", e), r.setAttribute("href", n), document.body.appendChild(r), console.log(`下载链接:${n}`), he.info(`${dn.t("即将开始下载")} ${e}`), r.click(), r.remove();
|
|
444
576
|
}
|
|
445
577
|
}
|
|
446
578
|
function Ge(n) {
|
|
@@ -460,16 +592,16 @@ function Ge(n) {
|
|
|
460
592
|
return null;
|
|
461
593
|
}
|
|
462
594
|
}
|
|
463
|
-
function
|
|
595
|
+
function Ln(n, e) {
|
|
464
596
|
if (!We(e) && e.length) {
|
|
465
597
|
if (Object.keys(n).length)
|
|
466
598
|
return e.forEach((t) => {
|
|
467
|
-
t.keyName &&
|
|
599
|
+
t.keyName && Tn(fe(n, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && je(
|
|
468
600
|
n,
|
|
469
601
|
t.keyName,
|
|
470
602
|
Ge(t.itemType)
|
|
471
603
|
);
|
|
472
|
-
}),
|
|
604
|
+
}), Ze(n, {});
|
|
473
605
|
{
|
|
474
606
|
let t = {};
|
|
475
607
|
return e.forEach((o) => {
|
|
@@ -478,11 +610,11 @@ function In(n, e) {
|
|
|
478
610
|
o.keyName,
|
|
479
611
|
Ge(o.itemType)
|
|
480
612
|
);
|
|
481
|
-
}),
|
|
613
|
+
}), Ze(t, {});
|
|
482
614
|
}
|
|
483
615
|
}
|
|
484
616
|
}
|
|
485
|
-
function
|
|
617
|
+
function sa(n) {
|
|
486
618
|
const { list: e, keyName: t, valueName: o, titleName: a, parentKey: l, parentKeyName: r } = n, u = (i, d) => {
|
|
487
619
|
const s = [];
|
|
488
620
|
return d.forEach((c) => {
|
|
@@ -499,7 +631,7 @@ function ra(n) {
|
|
|
499
631
|
};
|
|
500
632
|
return u(l, e);
|
|
501
633
|
}
|
|
502
|
-
function
|
|
634
|
+
function or(n, e) {
|
|
503
635
|
let t = [...e];
|
|
504
636
|
function o(l, r) {
|
|
505
637
|
return l.every((u) => r.includes(u.value));
|
|
@@ -512,7 +644,7 @@ function tr(n, e) {
|
|
|
512
644
|
}
|
|
513
645
|
return n.forEach((l) => a(l)), t;
|
|
514
646
|
}
|
|
515
|
-
function
|
|
647
|
+
function jt(n) {
|
|
516
648
|
const e = n.querySelector(".t-input__inner");
|
|
517
649
|
if (e) {
|
|
518
650
|
const t = e.clientWidth, o = document.createElement("span");
|
|
@@ -522,14 +654,14 @@ function Rt(n) {
|
|
|
522
654
|
}
|
|
523
655
|
return !1;
|
|
524
656
|
}
|
|
525
|
-
function
|
|
657
|
+
function ia(n, e, t = []) {
|
|
526
658
|
const o = {};
|
|
527
659
|
for (let a in n)
|
|
528
660
|
if (!t.includes(a))
|
|
529
661
|
if (!(a in e))
|
|
530
662
|
je(o, a, n[a]);
|
|
531
663
|
else if (ho(n[a]) && ho(e[a])) {
|
|
532
|
-
const l =
|
|
664
|
+
const l = ia(n[a], e[a]);
|
|
533
665
|
Object.keys(l).length > 0 && je(o, a, l);
|
|
534
666
|
} else
|
|
535
667
|
vo(n[a]) || vo(e[a]) ? go(n[a], e[a]) || je(o, a, n[a]) : go(n[a], e[a]) || je(o, a, n[a]);
|
|
@@ -537,133 +669,20 @@ function sa(n, e, t = []) {
|
|
|
537
669
|
t.includes(a) || a in n || je(o, a, e[a]);
|
|
538
670
|
return o;
|
|
539
671
|
}
|
|
540
|
-
const
|
|
672
|
+
const ar = {
|
|
541
673
|
refreshTokenUrl: "/api/base/token/refresh"
|
|
542
674
|
};
|
|
543
|
-
async function
|
|
544
|
-
const e = Be.getItem(Xt), { data: t } = await
|
|
675
|
+
async function lr(n) {
|
|
676
|
+
const e = Be.getItem(Xt), { data: t } = await bn.create()({
|
|
545
677
|
method: "POST",
|
|
546
|
-
url: `${
|
|
678
|
+
url: `${ar.refreshTokenUrl}?sessionId=${e}`,
|
|
547
679
|
headers: {
|
|
548
680
|
token: n
|
|
549
681
|
}
|
|
550
682
|
});
|
|
551
683
|
return t;
|
|
552
684
|
}
|
|
553
|
-
const
|
|
554
|
-
// 设置超时时间(10s)
|
|
555
|
-
timeout: 1e4
|
|
556
|
-
// 跨域时候允许携带凭证
|
|
557
|
-
// withCredentials: true,
|
|
558
|
-
// crossDomain: true,
|
|
559
|
-
};
|
|
560
|
-
function Zt(n) {
|
|
561
|
-
return ul(
|
|
562
|
-
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
563
|
-
32
|
|
564
|
-
)(n);
|
|
565
|
-
}
|
|
566
|
-
function ar() {
|
|
567
|
-
const n = sessionStorage.getItem(Xt);
|
|
568
|
-
if ((n ?? "") != "")
|
|
569
|
-
return n;
|
|
570
|
-
{
|
|
571
|
-
const e = Zt(32);
|
|
572
|
-
return sessionStorage.setItem(Xt, e), e;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
function dn(n, e) {
|
|
576
|
-
return e ? n.indexOf("?") > -1 ? n += "&sessionId=" + e : n += "?sessionId=" + e : n;
|
|
577
|
-
}
|
|
578
|
-
const Dc = {
|
|
579
|
-
...ia
|
|
580
|
-
};
|
|
581
|
-
class lr {
|
|
582
|
-
constructor(e) {
|
|
583
|
-
zt(this, "sessionId");
|
|
584
|
-
zt(this, "service");
|
|
585
|
-
zt(this, "router");
|
|
586
|
-
this.sessionId = ar, this.service = to.create(e), this.router = null, this.service.interceptors.request.use(
|
|
587
|
-
async (t) => {
|
|
588
|
-
const o = Ve();
|
|
589
|
-
o.checkUserToken();
|
|
590
|
-
const a = o.token ?? "", l = o.userLang ?? "zh-CN";
|
|
591
|
-
return t.headers = {
|
|
592
|
-
...t == null ? void 0 : t.headers,
|
|
593
|
-
Authorization: !0,
|
|
594
|
-
"Operation-Log-Require": !0,
|
|
595
|
-
...a !== "" ? { token: a } : {},
|
|
596
|
-
lang: l
|
|
597
|
-
}, {
|
|
598
|
-
...t
|
|
599
|
-
};
|
|
600
|
-
},
|
|
601
|
-
(t) => (console.error("http request error:", t), Promise.reject(t))
|
|
602
|
-
), this.service.interceptors.response.use(
|
|
603
|
-
(t) => {
|
|
604
|
-
const { data: o } = t, { state: a, message: l } = o, r = Ve();
|
|
605
|
-
if (a && a != null) {
|
|
606
|
-
if (a === 302)
|
|
607
|
-
return he.error(l), r && r.userLogout(), this.router && this.router.push({
|
|
608
|
-
name: "login"
|
|
609
|
-
}), o;
|
|
610
|
-
if (a == "-409") {
|
|
611
|
-
const { device: u, uuid: i } = o.data;
|
|
612
|
-
if (u && i) {
|
|
613
|
-
if (this.router) {
|
|
614
|
-
this.router.push({
|
|
615
|
-
name: "license",
|
|
616
|
-
query: {
|
|
617
|
-
device: u,
|
|
618
|
-
uuid: i
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
} else
|
|
624
|
-
throw t;
|
|
625
|
-
}
|
|
626
|
-
if (a !== 200) {
|
|
627
|
-
if (console.error("http response state error:", o), l)
|
|
628
|
-
he.error(`${l}`);
|
|
629
|
-
else {
|
|
630
|
-
const { T: u } = Ce();
|
|
631
|
-
he.error(`${u.t("服务器出错")}`);
|
|
632
|
-
}
|
|
633
|
-
return o;
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return o;
|
|
637
|
-
},
|
|
638
|
-
async (t) => {
|
|
639
|
-
console.error("http response error", t);
|
|
640
|
-
const { T: o } = Ce();
|
|
641
|
-
return t.code === "ECONNABORTED" ? Promise.reject({
|
|
642
|
-
message: o.t("请求超时,请检查网络连接或尝试重新发送请求。")
|
|
643
|
-
}) : (he.error(t.message), Promise.reject(t));
|
|
644
|
-
}
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
get(e, t, o = {}) {
|
|
648
|
-
return this.service.get(`${dn(e, this.sessionId())}`, { params: t, ...o });
|
|
649
|
-
}
|
|
650
|
-
post(e, t, o = {}) {
|
|
651
|
-
return this.service.post(`${dn(e, this.sessionId())}`, t, o);
|
|
652
|
-
}
|
|
653
|
-
put(e, t, o = {}) {
|
|
654
|
-
return this.service.put(`${dn(e, this.sessionId())}`, t, o);
|
|
655
|
-
}
|
|
656
|
-
delete(e, t, o = {}) {
|
|
657
|
-
return this.service.delete(`${dn(e, this.sessionId())}`, {
|
|
658
|
-
params: t,
|
|
659
|
-
...o
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
initRouter(e) {
|
|
663
|
-
this.router = e;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
const Ze = new lr(ia), ua = Ut("column", {
|
|
685
|
+
const ua = Rt("column", {
|
|
667
686
|
state: () => ({
|
|
668
687
|
columnDataMap: new Map(
|
|
669
688
|
Object.entries(Be.getItem(ln) || {})
|
|
@@ -692,13 +711,13 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
692
711
|
);
|
|
693
712
|
},
|
|
694
713
|
async saveColumnData() {
|
|
695
|
-
const e =
|
|
696
|
-
return !!(e && (await
|
|
714
|
+
const e = xe().userKey;
|
|
715
|
+
return !!(e && (await Qe.put(`/restapi/users/${e}`, {
|
|
697
716
|
listHeaderSetting: Object.fromEntries(this.columnDataMap)
|
|
698
717
|
})).state == 200);
|
|
699
718
|
}
|
|
700
719
|
}
|
|
701
|
-
}),
|
|
720
|
+
}), xe = Rt("setting", {
|
|
702
721
|
state: () => ({
|
|
703
722
|
// 登录标志
|
|
704
723
|
isUserLogin: !!Be.getItem(Al) || !1,
|
|
@@ -712,15 +731,15 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
712
731
|
// 设置面板是否显示
|
|
713
732
|
isSettingPanelShow: !1,
|
|
714
733
|
// 主题配置
|
|
715
|
-
themeConfig:
|
|
734
|
+
themeConfig: Je.getItem(Io) || {
|
|
716
735
|
...Fl
|
|
717
736
|
},
|
|
718
737
|
// 侧边菜单配置
|
|
719
|
-
sideMenuTree:
|
|
738
|
+
sideMenuTree: Je.getItem(on) || [],
|
|
720
739
|
sideMenuExpanded: [],
|
|
721
740
|
sideMenuScrollTop: 0,
|
|
722
741
|
// 用户传入GView的信息与配置
|
|
723
|
-
userConfig:
|
|
742
|
+
userConfig: Je.getItem(nn) || {
|
|
724
743
|
userInfo: {
|
|
725
744
|
realName: "",
|
|
726
745
|
token: "",
|
|
@@ -731,7 +750,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
731
750
|
logoUrl: ""
|
|
732
751
|
},
|
|
733
752
|
// 用户语言
|
|
734
|
-
userLang:
|
|
753
|
+
userLang: Je.getItem(Lo) ?? "zh-CN",
|
|
735
754
|
// 用户token
|
|
736
755
|
token: Be.getItem(So) || "",
|
|
737
756
|
tokenExpiredTime: Be.getItem(Do) || 0,
|
|
@@ -780,16 +799,16 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
780
799
|
},
|
|
781
800
|
setSideMenuConfig(n) {
|
|
782
801
|
const e = ea(n);
|
|
783
|
-
this.sideMenuTree = e,
|
|
802
|
+
this.sideMenuTree = e, Je.setItem(on, e);
|
|
784
803
|
},
|
|
785
804
|
setUserConfig(n) {
|
|
786
|
-
|
|
805
|
+
Je.setItem(nn, n), this.userConfig = { ...n };
|
|
787
806
|
},
|
|
788
807
|
async initUserLang(n) {
|
|
789
808
|
if (n)
|
|
790
809
|
try {
|
|
791
|
-
this.userLang = n,
|
|
792
|
-
const { setupI18n: e } =
|
|
810
|
+
this.userLang = n, Je.setItem(Lo, n);
|
|
811
|
+
const { setupI18n: e } = Me();
|
|
793
812
|
await e(n);
|
|
794
813
|
} catch {
|
|
795
814
|
}
|
|
@@ -809,7 +828,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
809
828
|
const n = +dt();
|
|
810
829
|
if (this.tokenExpiredTime - n <= 36e5 && !this.isTokenRefreshing) {
|
|
811
830
|
this.isTokenRefreshing = !0;
|
|
812
|
-
const t = await
|
|
831
|
+
const t = await lr(this.token);
|
|
813
832
|
if (t.state == 200) {
|
|
814
833
|
const { token: o, expiredTime: a } = t.data;
|
|
815
834
|
o && a && this.setUserToken(o, a);
|
|
@@ -821,8 +840,8 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
821
840
|
},
|
|
822
841
|
setSideMenuTree(n) {
|
|
823
842
|
if (n && Array.isArray(n)) {
|
|
824
|
-
const e =
|
|
825
|
-
this.sideMenuTree = e,
|
|
843
|
+
const e = wn(n, null, 1);
|
|
844
|
+
this.sideMenuTree = e, Je.setItem(on, e);
|
|
826
845
|
}
|
|
827
846
|
},
|
|
828
847
|
setUserPermission(n) {
|
|
@@ -833,7 +852,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
833
852
|
*/
|
|
834
853
|
async initUserConfig(n) {
|
|
835
854
|
var r;
|
|
836
|
-
|
|
855
|
+
Je.setItem(nn, n), this.userConfig = { ...n }, this.initUserToken(((r = n.userInfo) == null ? void 0 : r.token) ?? "");
|
|
837
856
|
const { userMenu: e } = n;
|
|
838
857
|
this.setSideMenuTree(e);
|
|
839
858
|
const { language: t, permissions: o } = n.userInfo ?? {};
|
|
@@ -845,7 +864,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
845
864
|
* @description: 初始化各种变量的值
|
|
846
865
|
*/
|
|
847
866
|
resetInitValue() {
|
|
848
|
-
this.isSideMenuCollapse = !1, this.isSideHoverMenuShow = !1, this.isSettingPanelShow = !1, this.sideMenuTree = [],
|
|
867
|
+
this.isSideMenuCollapse = !1, this.isSideHoverMenuShow = !1, this.isSettingPanelShow = !1, this.sideMenuTree = [], Je.removeItem(on), this.sideMenuExpanded = [], this.sideMenuScrollTop = 0, Je.removeItem(nn), this.userConfig = {
|
|
849
868
|
userInfo: {
|
|
850
869
|
realName: "",
|
|
851
870
|
token: ""
|
|
@@ -864,7 +883,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
864
883
|
* @description 更改主题
|
|
865
884
|
*/
|
|
866
885
|
changeTheme(n) {
|
|
867
|
-
this.changeMode(n), this.changeBrandTheme(n),
|
|
886
|
+
this.changeMode(n), this.changeBrandTheme(n), Je.setItem(Io, n), this.themeConfig = { ...n };
|
|
868
887
|
},
|
|
869
888
|
/**
|
|
870
889
|
* @description 更改颜色模式
|
|
@@ -890,7 +909,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
890
909
|
this.changeMode(n), this.changeBrandTheme(n), this.changeTheme(n);
|
|
891
910
|
}
|
|
892
911
|
}
|
|
893
|
-
}),
|
|
912
|
+
}), Sn = Rt("cache", {
|
|
894
913
|
state: () => ({
|
|
895
914
|
formDataMap: new Map(
|
|
896
915
|
Be.getItem(an) || []
|
|
@@ -922,12 +941,12 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
922
941
|
);
|
|
923
942
|
}
|
|
924
943
|
}
|
|
925
|
-
}), Ct =
|
|
944
|
+
}), Ct = Rt("tabMenu", {
|
|
926
945
|
state: () => ({
|
|
927
946
|
// 初始化tab菜单列表
|
|
928
|
-
initTabMenuList: Be.getItem(
|
|
947
|
+
initTabMenuList: Be.getItem(xn) || [],
|
|
929
948
|
// tab菜单列表
|
|
930
|
-
tabMenuList: Be.getItem(
|
|
949
|
+
tabMenuList: Be.getItem(Vn) || []
|
|
931
950
|
}),
|
|
932
951
|
getters: {
|
|
933
952
|
returnTabMenuItemActiveTab: (n) => (e) => {
|
|
@@ -937,13 +956,13 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
937
956
|
},
|
|
938
957
|
actions: {
|
|
939
958
|
async clearTabMenu() {
|
|
940
|
-
Be.removeItem(
|
|
959
|
+
Be.removeItem(xn), Be.removeItem(Vn), this.tabMenuList = [], this.initTabMenuList = [];
|
|
941
960
|
},
|
|
942
961
|
setInitTabMenuList(n) {
|
|
943
|
-
Be.setItem(
|
|
962
|
+
Be.setItem(xn, n), this.initTabMenuList = n;
|
|
944
963
|
},
|
|
945
964
|
setTabMenuList(n) {
|
|
946
|
-
Be.setItem(
|
|
965
|
+
Be.setItem(Vn, n), this.tabMenuList = n;
|
|
947
966
|
},
|
|
948
967
|
/**
|
|
949
968
|
* @description 初始化tab菜单列表
|
|
@@ -1064,10 +1083,10 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1064
1083
|
* @param {string} path
|
|
1065
1084
|
*/
|
|
1066
1085
|
afterRemoveTab(n) {
|
|
1067
|
-
n &&
|
|
1086
|
+
n && Sn().removeFormData(n);
|
|
1068
1087
|
}
|
|
1069
1088
|
}
|
|
1070
|
-
}), ao =
|
|
1089
|
+
}), ao = Rt("socket", {
|
|
1071
1090
|
state: () => ({
|
|
1072
1091
|
socket: null,
|
|
1073
1092
|
socketInterval: void 0,
|
|
@@ -1088,7 +1107,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1088
1107
|
initSocket() {
|
|
1089
1108
|
const n = this;
|
|
1090
1109
|
this.isSocketLinked = !1, this.socket = new WebSocket(Bl), this.socket.onopen = function(e) {
|
|
1091
|
-
let t =
|
|
1110
|
+
let t = On("heart");
|
|
1092
1111
|
n.socketInterval = setInterval(function() {
|
|
1093
1112
|
n.socket && n.socket.send(JSON.stringify(t));
|
|
1094
1113
|
}, Pl);
|
|
@@ -1113,17 +1132,17 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1113
1132
|
}, n.isSocketLinked = !0;
|
|
1114
1133
|
},
|
|
1115
1134
|
sendRegisterMessage(n) {
|
|
1116
|
-
const t =
|
|
1117
|
-
let o =
|
|
1135
|
+
const t = xe().userEdificeKey ?? "";
|
|
1136
|
+
let o = On("register", n, t);
|
|
1118
1137
|
Ao(this.socket) || this.socket.send(JSON.stringify(o));
|
|
1119
1138
|
},
|
|
1120
1139
|
sendUnregisterMessage(n) {
|
|
1121
|
-
const t =
|
|
1122
|
-
let o =
|
|
1140
|
+
const t = xe().userEdificeKey ?? "";
|
|
1141
|
+
let o = On("unregister", n, t);
|
|
1123
1142
|
Ao(this.socket) || this.socket.send(JSON.stringify(o));
|
|
1124
1143
|
}
|
|
1125
1144
|
}
|
|
1126
|
-
}), lo =
|
|
1145
|
+
}), lo = Rt("props", {
|
|
1127
1146
|
state: () => ({
|
|
1128
1147
|
propsSource: {}
|
|
1129
1148
|
}),
|
|
@@ -1141,7 +1160,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1141
1160
|
}), rr = ["title"], sr = ["title"], ir = ["onClick"], ur = ["title"], cr = ["title"], dr = ["onClick"], mr = ["title"], fr = ["title"], pr = ["title"], hr = ["title"], vr = ["title"], gr = ["title"], yr = /* @__PURE__ */ ue({
|
|
1142
1161
|
__name: "GLayoutHeaderTab",
|
|
1143
1162
|
setup(n) {
|
|
1144
|
-
const { T: e } =
|
|
1163
|
+
const { T: e } = Me(), t = `${et}__layoutHeaderTab`, o = ft(), a = st(), l = q(""), r = Ct(), u = xe(), i = V(() => r.tabMenuList), d = V(() => u.homeUrl), s = V(() => u.displayMode);
|
|
1145
1164
|
function c(C, x, D) {
|
|
1146
1165
|
x.trigger === "document" && (l.value = null), C && (l.value = D);
|
|
1147
1166
|
}
|
|
@@ -1162,14 +1181,14 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1162
1181
|
}
|
|
1163
1182
|
function y(C, x) {
|
|
1164
1183
|
const { path: D } = C;
|
|
1165
|
-
|
|
1184
|
+
Ya(() => {
|
|
1166
1185
|
D === "/HomePage" ? o.push({ path: d.value, query: Kt(d.value) }) : o.push({ path: D, query: Kt(D) });
|
|
1167
1186
|
}), u.toggleGlobalReload(), l.value = null;
|
|
1168
1187
|
}
|
|
1169
1188
|
function N(C, x) {
|
|
1170
1189
|
r.subtractTabMenuItemAhead({ path: C, itemIdx: x }), L("ahead", x);
|
|
1171
1190
|
}
|
|
1172
|
-
function
|
|
1191
|
+
function R(C, x) {
|
|
1173
1192
|
r.subtractTabMenuItemBehind({ path: C, itemIdx: x }), L("behind", x);
|
|
1174
1193
|
}
|
|
1175
1194
|
function E(C, x) {
|
|
@@ -1189,7 +1208,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1189
1208
|
}
|
|
1190
1209
|
l.value = null;
|
|
1191
1210
|
}
|
|
1192
|
-
const _ = V(() => decodeURIComponent(a.fullPath)), I =
|
|
1211
|
+
const _ = V(() => decodeURIComponent(a.fullPath)), I = q(null), { width: m } = Sl(I, { width: 1e3, height: 64 }), w = V(() => m.value > 0 ? m.value / 140 : 5), M = V(
|
|
1193
1212
|
() => w.value > 0 ? i.value.slice(0, w.value) : i.value.slice(0)
|
|
1194
1213
|
), U = V(
|
|
1195
1214
|
() => w.value > 0 ? i.value.slice(w.value) : []
|
|
@@ -1223,7 +1242,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1223
1242
|
}, {
|
|
1224
1243
|
default: k(() => [
|
|
1225
1244
|
ne("span", null, [
|
|
1226
|
-
F(h(
|
|
1245
|
+
F(h(Kn)),
|
|
1227
1246
|
re(" " + te(h(e).t("刷新")), 1)
|
|
1228
1247
|
])
|
|
1229
1248
|
]),
|
|
@@ -1235,7 +1254,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1235
1254
|
}, {
|
|
1236
1255
|
default: k(() => [
|
|
1237
1256
|
ne("span", null, [
|
|
1238
|
-
F(h(
|
|
1257
|
+
F(h(Vt)),
|
|
1239
1258
|
re(" " + te(h(e).t("关闭")), 1)
|
|
1240
1259
|
])
|
|
1241
1260
|
]),
|
|
@@ -1255,7 +1274,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1255
1274
|
}, 1032, ["onClick"])) : X("", !0),
|
|
1256
1275
|
ae > 0 && ae < i.value.length - 1 ? (v(), $(A, {
|
|
1257
1276
|
key: 2,
|
|
1258
|
-
onClick: () =>
|
|
1277
|
+
onClick: () => R(H.path, ae)
|
|
1259
1278
|
}, {
|
|
1260
1279
|
default: k(() => [
|
|
1261
1280
|
ne("span", null, [
|
|
@@ -1296,7 +1315,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1296
1315
|
H.isHome ? X("", !0) : (v(), W("div", {
|
|
1297
1316
|
key: 2,
|
|
1298
1317
|
class: "menu-item--close-button",
|
|
1299
|
-
onClick:
|
|
1318
|
+
onClick: Ot(
|
|
1300
1319
|
() => p({
|
|
1301
1320
|
value: H.path,
|
|
1302
1321
|
index: ae
|
|
@@ -1304,7 +1323,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1304
1323
|
["stop"]
|
|
1305
1324
|
)
|
|
1306
1325
|
}, [
|
|
1307
|
-
F(h(
|
|
1326
|
+
F(h(Vt), { size: "16px" })
|
|
1308
1327
|
], 8, ir))
|
|
1309
1328
|
]),
|
|
1310
1329
|
_: 2
|
|
@@ -1346,7 +1365,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1346
1365
|
ne("span", {
|
|
1347
1366
|
title: h(e).t("刷新")
|
|
1348
1367
|
}, [
|
|
1349
|
-
F(h(
|
|
1368
|
+
F(h(Kn)),
|
|
1350
1369
|
re(" " + te(h(e).t("刷新")), 1)
|
|
1351
1370
|
], 8, mr)
|
|
1352
1371
|
]),
|
|
@@ -1363,7 +1382,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1363
1382
|
ne("span", {
|
|
1364
1383
|
title: h(e).t("关闭")
|
|
1365
1384
|
}, [
|
|
1366
|
-
F(h(
|
|
1385
|
+
F(h(Vt)),
|
|
1367
1386
|
re(" " + te(h(e).t("关闭")), 1)
|
|
1368
1387
|
], 8, fr)
|
|
1369
1388
|
]),
|
|
@@ -1388,7 +1407,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1388
1407
|
}, 1032, ["onClick"])) : X("", !0),
|
|
1389
1408
|
M.value.length + ae > 0 && ae < i.value.length ? (v(), $(A, {
|
|
1390
1409
|
key: 2,
|
|
1391
|
-
onClick: () =>
|
|
1410
|
+
onClick: () => R(
|
|
1392
1411
|
H.path,
|
|
1393
1412
|
M.value.length + ae
|
|
1394
1413
|
)
|
|
@@ -1438,7 +1457,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1438
1457
|
}, te(H.title), 9, cr)),
|
|
1439
1458
|
ne("div", {
|
|
1440
1459
|
class: "menu-item--close-button",
|
|
1441
|
-
onClick:
|
|
1460
|
+
onClick: Ot(
|
|
1442
1461
|
() => p({
|
|
1443
1462
|
value: H.path,
|
|
1444
1463
|
index: M.value.length + ae
|
|
@@ -1446,7 +1465,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1446
1465
|
["stop"]
|
|
1447
1466
|
)
|
|
1448
1467
|
}, [
|
|
1449
|
-
F(h(
|
|
1468
|
+
F(h(Vt), { size: "16px" })
|
|
1450
1469
|
], 8, dr)
|
|
1451
1470
|
]),
|
|
1452
1471
|
_: 2
|
|
@@ -1480,7 +1499,7 @@ const Ze = new lr(ia), ua = Ut("column", {
|
|
|
1480
1499
|
};
|
|
1481
1500
|
}
|
|
1482
1501
|
});
|
|
1483
|
-
const Ft = Symbol("PropsModel"), Qn = Symbol("ConfigProvider"), Sn = Symbol("formItemComponentProps"), ca = Symbol("viewTitle"), br = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAyMjoxMTozMCAwODo0NDo0MviriswAACO4SURBVHhe7Z0JeFzFle+r6t5utSRvLLYx2JZaltQteQFjlpiEZ/wGskEmYRIYSL5MGGaBmSHMJEzCkrBNCBBIhkcSQhKYEIb5eElMMgmZELJiVhOCwau6W7tkgW2Mdy293Fvn/atVJpbVfW/dVsvW+77+2a2+VX37di2nTp3aWYUKFSpUqFChQoUKFSpUqFChQoUKFSpUqFChQoUKFSpUmABcvx81CL+5tbU1lN67166dMcOigzxcVWXb2XDOslxXZIgmLUwR/OM0kmns7n5Le00YxEd0NDaGsuFwyHaciOWGqinLwlLkQiJkC5bV9/Ec2cJyhy3HZURZlyhTFQqNRNLp3B/7+nKXMuaO3ll+Xp23oiZSPXIi8QyCa4ZKq9yIO9z6ZnK39powz6xaZZ848PY8xtLapzBORsjlAx1vaOeEeHXFihB7k4VY9d7QbKdWjEQyVjYXtma4jshUuYJD3iZT5hQqLQecwV2r+/q8Iw7658+vzlTNPDHtk0YK9dz9w5HdZ2xfP6y9CpKIxabbjj3L5JmHUM8eyYnBZf2b92qvCWMaDsk5LevsfBOZIrXXhDkqiu6pxsaqxpy93OFsKRe8hUvZjBIX5ZzVQsZsxMuCJhBKCeL2SQ2TJejzzd2pR7SzJFQ4Ewvjy4XFlxOx5ZzLpfBaiI/CcIcRLxvKzEbxEYhMXrmoP5y4JE5QdNxBnHPw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nGgI97Xh1t/C9F63s2vuptWsfAeCJKKxm/Dsm/2kF2Hbsqk3+S6Tda4mtJ/SOF+GrPXI2hl+v30IlVi4tzctR1YqoR71HUuqvuls4uKXSLtAI9UTAeFCsCBRpLoRuITcuihsOeRbDvk3gg93QPGux/XvQyL3cmN3d0lNt1Q0fiN+4FYlwNqrOAiITfT+pr7UWu1TkER97H3Ig59qpyeI56fjPUnfsyFM2BJtOstiAi0hj3zKr5mnfVBMP4ICu7MuwHGooxOIxT/j++p8EhhofATlZ0162Pn26Tu8D+JSlFXhHAK5Jra2ttqW61Zlcrlqi1dXsWwmDLPeFiSFY9vCd7uBALiO68J83b8zOnfXZJ0ipEC8OFuxwv7D/v3VMzPWNIu51ajOqlAGwkzY06Ft4YZCR45ALskmdjBL7n61EWmYWyOOnRtW6xQXDKzMFjqCsRyo6RfCkieqWkV7FcRx5JDXtIdSSNTF6sni0/x++xA5mB6Si/Tirja1VX3BLhC1RZB0xEmmzywHpNQZ9BrCJiGzrptz3BFJ2eoanpl+8ODw9pNPzq1Yv94ZVYilk19pY7MTTOKm0mpadrDLb/mX2uXXsbNm3Rc8t83LogoCIiAS0XhjSBQegVU1fZjxTCbD9iweaNtbStqp31AbVhwYmmmtOBnGaxnyoEKFChUqVKhQoUKFChUqVKhQoUKFChUqVKhQoQww9v8ADoTZZnPdorgAAAAASUVORK5CYII=", wr = {
|
|
1502
|
+
const Ft = Symbol("PropsModel"), Xn = Symbol("ConfigProvider"), Dn = Symbol("formItemComponentProps"), ca = Symbol("viewTitle"), br = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAyMjoxMTozMCAwODo0NDo0MviriswAACO4SURBVHhe7Z0JeFzFle+r6t5utSRvLLYx2JZaltQteQFjlpiEZ/wGskEmYRIYSL5MGGa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RtW6xQXDKzMFjqCsRyo6RfCkieqWkV7FcRx5JDXtIdSSNTF6sni0/x++xA5mB6Si/Tirja1VX3BLhC1RZB0xEmmzywHpNQZ9BrCJiGzrptz3BFJ2eoanpl+8ODw9pNPzq1Yv94ZVYilk19pY7MTTOKm0mpadrDLb/mX2uXXsbNm3Rc8t83LogoCIiAS0XhjSBQegVU1fZjxTCbD9iweaNtbStqp31AbVhwYmmmtOBnGaxnyoEKFChUqVKhQoUKFChUqVKhQoUKFChUqVKhQoQww9v8ADoTZZnPdorgAAAAASUVORK5CYII=", wr = {
|
|
1484
1503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1485
1504
|
width: "24",
|
|
1486
1505
|
height: "24",
|
|
@@ -1527,7 +1546,7 @@ function Dr(n, e) {
|
|
|
1527
1546
|
const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
1528
1547
|
__name: "GLayoutHeader",
|
|
1529
1548
|
setup(n) {
|
|
1530
|
-
const { T: e } =
|
|
1549
|
+
const { T: e } = Me(), t = `${et}__header`, o = ft(), a = xe(), l = ze(Xn, null), r = l == null ? void 0 : l.GLayoutHeaderOperationsRef, u = l == null ? void 0 : l.GLayoutHeaderConfigRef, i = l == null ? void 0 : l.SideMenuConfigRef, d = V(() => a.userType), s = V(() => {
|
|
1531
1550
|
if ((d.value ?? "") != "")
|
|
1532
1551
|
switch (d.value) {
|
|
1533
1552
|
case "normal":
|
|
@@ -1541,7 +1560,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1541
1560
|
function N() {
|
|
1542
1561
|
a.toggleSideMenuCollapse(), a.isSideHoverMenuShow && (a.isSideHoverMenuShow = !1);
|
|
1543
1562
|
}
|
|
1544
|
-
function
|
|
1563
|
+
function R() {
|
|
1545
1564
|
a.toggleSettingPanel();
|
|
1546
1565
|
}
|
|
1547
1566
|
const E = Ct();
|
|
@@ -1588,7 +1607,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1588
1607
|
onClick: N
|
|
1589
1608
|
}, {
|
|
1590
1609
|
default: k(() => [
|
|
1591
|
-
y.value ? (v(), $(h(
|
|
1610
|
+
y.value ? (v(), $(h(Vt), {
|
|
1592
1611
|
key: 1,
|
|
1593
1612
|
size: "large"
|
|
1594
1613
|
})) : (v(), $(h(ml), {
|
|
@@ -1610,7 +1629,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1610
1629
|
(v(!0), W(de, null, Se(h(r), (b, z) => (v(), W(de, { key: z }, [
|
|
1611
1630
|
b != null && b.isPopup ? (v(), $(C, Lt(Ee({ key: 0 }, b == null ? void 0 : b.popupProps)), {
|
|
1612
1631
|
default: k(() => [
|
|
1613
|
-
F(P, Lt(
|
|
1632
|
+
F(P, Lt(qt(b == null ? void 0 : b.badgeProps)), {
|
|
1614
1633
|
default: k(() => [
|
|
1615
1634
|
F(M, Ee({
|
|
1616
1635
|
theme: "default",
|
|
@@ -1747,7 +1766,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1747
1766
|
theme: "default",
|
|
1748
1767
|
shape: "square",
|
|
1749
1768
|
variant: "text",
|
|
1750
|
-
onClick:
|
|
1769
|
+
onClick: R
|
|
1751
1770
|
}, {
|
|
1752
1771
|
default: k(() => [
|
|
1753
1772
|
F(h(da), {
|
|
@@ -1778,17 +1797,17 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1778
1797
|
}), Ar = /* @__PURE__ */ ue({
|
|
1779
1798
|
__name: "GLayoutContent",
|
|
1780
1799
|
setup(n) {
|
|
1781
|
-
const e =
|
|
1800
|
+
const e = xe(), t = V(() => e.isSideMenuCollapse);
|
|
1782
1801
|
return (o, a) => {
|
|
1783
1802
|
const l = Q("t-content"), r = Q("t-layout");
|
|
1784
1803
|
return v(), $(r, {
|
|
1785
|
-
class: Z(`${h(
|
|
1804
|
+
class: Z(`${h(et)}`)
|
|
1786
1805
|
}, {
|
|
1787
1806
|
default: k(() => [
|
|
1788
1807
|
F(l, {
|
|
1789
1808
|
class: Z([
|
|
1790
|
-
`${h(
|
|
1791
|
-
`${t.value ? `${h(
|
|
1809
|
+
`${h(et)}--content`,
|
|
1810
|
+
`${t.value ? `${h(et)}--content__collapse` : ""}`
|
|
1792
1811
|
])
|
|
1793
1812
|
}, {
|
|
1794
1813
|
default: k(() => [
|
|
@@ -1807,7 +1826,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1807
1826
|
item: {}
|
|
1808
1827
|
},
|
|
1809
1828
|
setup(n) {
|
|
1810
|
-
const { T: e, i18n: t } =
|
|
1829
|
+
const { T: e, i18n: t } = Me(), o = V(() => t.global.locale.value.toLowerCase() === "zh-cn"), a = n, l = V(() => a.item.translateTitle && a.item.translateTitle !== void 0 && a.item.translateTitle !== "" ? a.item.translateTitle : a.item.title), r = V(() => o.value ? a.item.title : l.value ?? "");
|
|
1811
1830
|
return (u, i) => (v(), W("span", { title: r.value }, te(r.value), 9, Fr));
|
|
1812
1831
|
}
|
|
1813
1832
|
}), $r = /* @__PURE__ */ ue({
|
|
@@ -1816,7 +1835,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1816
1835
|
sideMenuTree: {}
|
|
1817
1836
|
},
|
|
1818
1837
|
setup(n) {
|
|
1819
|
-
const e = `${
|
|
1838
|
+
const e = `${et}__side-menu-content`, t = xe(), o = ft(), a = (l) => {
|
|
1820
1839
|
if (en(l)) {
|
|
1821
1840
|
const u = wt(l, {
|
|
1822
1841
|
token: t.token,
|
|
@@ -1897,9 +1916,9 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1897
1916
|
}), Br = /* @__PURE__ */ ue({
|
|
1898
1917
|
__name: "GLayoutSideMenu",
|
|
1899
1918
|
setup(n) {
|
|
1900
|
-
const e = `${
|
|
1919
|
+
const e = `${et}__side-menu`;
|
|
1901
1920
|
ft();
|
|
1902
|
-
const t = st(), o =
|
|
1921
|
+
const t = st(), o = xe(), a = V(() => o.sideMenuTree), l = V(() => o.displayMode), r = V({
|
|
1903
1922
|
get() {
|
|
1904
1923
|
return o.isSideMenuCollapse;
|
|
1905
1924
|
},
|
|
@@ -1951,7 +1970,7 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
1951
1970
|
}), Pr = /* @__PURE__ */ ue({
|
|
1952
1971
|
__name: "GLayoutSettingPanel",
|
|
1953
1972
|
setup(n) {
|
|
1954
|
-
const { T: e } =
|
|
1973
|
+
const { T: e } = Me(), t = `${et}__settingPanel`, o = xe(), a = [
|
|
1955
1974
|
"default",
|
|
1956
1975
|
"red",
|
|
1957
1976
|
"cyan",
|
|
@@ -2007,9 +2026,9 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
2007
2026
|
onChange: i
|
|
2008
2027
|
}, {
|
|
2009
2028
|
default: k(() => [
|
|
2010
|
-
(v(!0), W(de, null, Se(a.slice(0, a.length - 1), (N,
|
|
2029
|
+
(v(!0), W(de, null, Se(a.slice(0, a.length - 1), (N, R) => (v(), W("div", { key: R }, [
|
|
2011
2030
|
(v(), $(f, {
|
|
2012
|
-
key:
|
|
2031
|
+
key: R,
|
|
2013
2032
|
value: N,
|
|
2014
2033
|
class: Z(`${t}--container-color-group`)
|
|
2015
2034
|
}, {
|
|
@@ -2035,9 +2054,9 @@ const da = { render: Dr }, Nr = { class: "username" }, Er = /* @__PURE__ */ ue({
|
|
|
2035
2054
|
onChange: i
|
|
2036
2055
|
}, {
|
|
2037
2056
|
default: k(() => [
|
|
2038
|
-
(v(), W(de, null, Se(l, (N,
|
|
2057
|
+
(v(), W(de, null, Se(l, (N, R) => ne("div", { key: R }, [
|
|
2039
2058
|
(v(), $(f, {
|
|
2040
|
-
key:
|
|
2059
|
+
key: R,
|
|
2041
2060
|
value: N.type
|
|
2042
2061
|
}, {
|
|
2043
2062
|
default: k(() => [
|
|
@@ -2076,9 +2095,9 @@ function Vr(n, e) {
|
|
|
2076
2095
|
const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
2077
2096
|
__name: "GLayoutSideHoverMenu",
|
|
2078
2097
|
setup(n) {
|
|
2079
|
-
const { T: e, i18n: t } =
|
|
2098
|
+
const { T: e, i18n: t } = Me();
|
|
2080
2099
|
V(() => t.global.locale.value.toLowerCase() === "zh-cn");
|
|
2081
|
-
const o = `${
|
|
2100
|
+
const o = `${et}__side-hover-menu`, a = `${et}__side-hover-menu-content`, l = ft(), r = st(), u = xe(), i = V(() => u.sideMenuTree), d = V(() => u.displayMode), s = V({
|
|
2082
2101
|
get: () => u.isSideHoverMenuShow,
|
|
2083
2102
|
set: (g) => u.isSideHoverMenuShow = g
|
|
2084
2103
|
}), c = V(() => {
|
|
@@ -2101,13 +2120,13 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2101
2120
|
} else
|
|
2102
2121
|
l.push(g);
|
|
2103
2122
|
u.isSideHoverMenuShow = !1;
|
|
2104
|
-
}, p =
|
|
2105
|
-
function
|
|
2123
|
+
}, p = q(!1), y = q([]), N = q("");
|
|
2124
|
+
function R(g) {
|
|
2106
2125
|
y.value = [], S.value = [], p.value = !1, E.value = !1, N.value = "", setTimeout(() => {
|
|
2107
2126
|
g && g.children && (p.value = !0, y.value = [...g.children], N.value = g.name, L.value = "");
|
|
2108
2127
|
}, 100);
|
|
2109
2128
|
}
|
|
2110
|
-
const E =
|
|
2129
|
+
const E = q(!1), S = q([]), L = q("");
|
|
2111
2130
|
function _(g) {
|
|
2112
2131
|
E.value = !1, L.value = "", setTimeout(() => {
|
|
2113
2132
|
g && g.children && (E.value = !0, S.value = [...g.children], L.value = g.name);
|
|
@@ -2122,7 +2141,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2122
2141
|
g || (p.value = !1, E.value = !1, N.value = "", L.value = "");
|
|
2123
2142
|
}
|
|
2124
2143
|
);
|
|
2125
|
-
const m =
|
|
2144
|
+
const m = q(null), w = q(null), M = q(null);
|
|
2126
2145
|
Co(
|
|
2127
2146
|
w,
|
|
2128
2147
|
() => {
|
|
@@ -2168,7 +2187,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2168
2187
|
function T() {
|
|
2169
2188
|
clearTimeout(D.value), u.isSideHoverMenuShow = !0;
|
|
2170
2189
|
}
|
|
2171
|
-
const B =
|
|
2190
|
+
const B = q(null);
|
|
2172
2191
|
return Mo(B, "mouseleave", A), Mo(B, "mouseenter", T), (g, b) => {
|
|
2173
2192
|
const z = Q("t-icon"), G = Q("t-menu-item"), H = Q("t-submenu"), ae = Q("t-menu"), me = Q("t-drawer");
|
|
2174
2193
|
return v(), W("div", {
|
|
@@ -2205,7 +2224,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2205
2224
|
name: J.path,
|
|
2206
2225
|
value: J.path,
|
|
2207
2226
|
key: J.name,
|
|
2208
|
-
onClick: (
|
|
2227
|
+
onClick: (_e) => f(J.path)
|
|
2209
2228
|
}, {
|
|
2210
2229
|
icon: k(() => [
|
|
2211
2230
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2237,7 +2256,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2237
2256
|
visible: !1,
|
|
2238
2257
|
overlayInnerClassName: `${a}--popup`
|
|
2239
2258
|
},
|
|
2240
|
-
onMouseenter: (
|
|
2259
|
+
onMouseenter: (_e) => R(J)
|
|
2241
2260
|
}, {
|
|
2242
2261
|
icon: k(() => [
|
|
2243
2262
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2296,7 +2315,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2296
2315
|
name: J.path,
|
|
2297
2316
|
value: J.path,
|
|
2298
2317
|
key: J.name,
|
|
2299
|
-
onClick: (
|
|
2318
|
+
onClick: (_e) => f(J.path),
|
|
2300
2319
|
onMouseenter: I
|
|
2301
2320
|
}, {
|
|
2302
2321
|
icon: k(() => [
|
|
@@ -2329,7 +2348,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2329
2348
|
visible: !1,
|
|
2330
2349
|
overlayInnerClassName: `${a}--popup`
|
|
2331
2350
|
},
|
|
2332
|
-
onMouseenter: (
|
|
2351
|
+
onMouseenter: (_e) => _(J)
|
|
2333
2352
|
}, {
|
|
2334
2353
|
icon: k(() => [
|
|
2335
2354
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2388,7 +2407,7 @@ const Or = /* @__PURE__ */ ht(xr, [["render", Vr]]), Ur = /* @__PURE__ */ ue({
|
|
|
2388
2407
|
name: J.path,
|
|
2389
2408
|
value: J.path,
|
|
2390
2409
|
key: J.name,
|
|
2391
|
-
onClick: (
|
|
2410
|
+
onClick: (_e) => f(J.path)
|
|
2392
2411
|
}, {
|
|
2393
2412
|
icon: k(() => [
|
|
2394
2413
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2424,7 +2443,7 @@ const Rr = /* @__PURE__ */ ue({
|
|
|
2424
2443
|
title: {}
|
|
2425
2444
|
},
|
|
2426
2445
|
setup(n) {
|
|
2427
|
-
const e = `${
|
|
2446
|
+
const e = `${et}__main`, t = `${et}__card`;
|
|
2428
2447
|
return (o, a) => {
|
|
2429
2448
|
const l = Q("t-card"), r = Q("t-content"), u = Q("t-layout");
|
|
2430
2449
|
return v(), W(de, null, [
|
|
@@ -2476,7 +2495,7 @@ const Rr = /* @__PURE__ */ ue({
|
|
|
2476
2495
|
title: {}
|
|
2477
2496
|
},
|
|
2478
2497
|
setup(n) {
|
|
2479
|
-
const e =
|
|
2498
|
+
const e = xe();
|
|
2480
2499
|
return Ue(() => {
|
|
2481
2500
|
e.loadLocalThemeConfig();
|
|
2482
2501
|
}), (t, o) => (v(), $(Rr, { title: t.title }, {
|
|
@@ -2487,7 +2506,7 @@ const Rr = /* @__PURE__ */ ue({
|
|
|
2487
2506
|
}, 8, ["title"]));
|
|
2488
2507
|
}
|
|
2489
2508
|
});
|
|
2490
|
-
const ma =
|
|
2509
|
+
const ma = qe(jr), fa = /* @__PURE__ */ ue({
|
|
2491
2510
|
__name: "GCommonDialog",
|
|
2492
2511
|
props: {
|
|
2493
2512
|
commonDialogProps: {}
|
|
@@ -2498,24 +2517,24 @@ const ma = Ye(jr), fa = /* @__PURE__ */ ue({
|
|
|
2498
2517
|
return v(), $(o, Ee({
|
|
2499
2518
|
class: h(Vl),
|
|
2500
2519
|
placement: "center"
|
|
2501
|
-
}, e.commonDialogProps),
|
|
2520
|
+
}, e.commonDialogProps), Yt({ _: 2 }, [
|
|
2502
2521
|
Se(e.$slots, (a, l) => ({
|
|
2503
2522
|
name: l,
|
|
2504
2523
|
fn: k((r) => [
|
|
2505
|
-
Ke(e.$slots, l, Lt(
|
|
2524
|
+
Ke(e.$slots, l, Lt(qt({ ...r })))
|
|
2506
2525
|
])
|
|
2507
2526
|
}))
|
|
2508
2527
|
]), 1040, ["class"]);
|
|
2509
2528
|
};
|
|
2510
2529
|
}
|
|
2511
2530
|
});
|
|
2512
|
-
const pa =
|
|
2531
|
+
const pa = qe(fa), zr = /* @__PURE__ */ ue({
|
|
2513
2532
|
__name: "GCommonForm",
|
|
2514
2533
|
props: {
|
|
2515
2534
|
commonFormProps: {}
|
|
2516
2535
|
},
|
|
2517
2536
|
setup(n, { expose: e }) {
|
|
2518
|
-
const t =
|
|
2537
|
+
const t = q();
|
|
2519
2538
|
return e({
|
|
2520
2539
|
tFormRef: t
|
|
2521
2540
|
}), (o, a) => {
|
|
@@ -2547,7 +2566,7 @@ const pa = Ye(fa), zr = /* @__PURE__ */ ue({
|
|
|
2547
2566
|
};
|
|
2548
2567
|
}
|
|
2549
2568
|
});
|
|
2550
|
-
const ro =
|
|
2569
|
+
const ro = qe(zr), Gr = /* @__PURE__ */ ue({
|
|
2551
2570
|
__name: "GCommonHeader",
|
|
2552
2571
|
setup(n) {
|
|
2553
2572
|
return (e, t) => {
|
|
@@ -2581,15 +2600,15 @@ const ro = Ye(zr), Gr = /* @__PURE__ */ ue({
|
|
|
2581
2600
|
};
|
|
2582
2601
|
}
|
|
2583
2602
|
});
|
|
2584
|
-
const Hr =
|
|
2603
|
+
const Hr = qe(Gr), Kr = /* @__PURE__ */ ue({
|
|
2585
2604
|
__name: "GCommonTable",
|
|
2586
2605
|
props: {
|
|
2587
2606
|
tableType: { default: "primary" },
|
|
2588
2607
|
commonTableProps: {}
|
|
2589
2608
|
},
|
|
2590
2609
|
setup(n, { expose: e }) {
|
|
2591
|
-
|
|
2592
|
-
const t =
|
|
2610
|
+
Me();
|
|
2611
|
+
const t = q();
|
|
2593
2612
|
e({
|
|
2594
2613
|
tTableRef: t
|
|
2595
2614
|
});
|
|
@@ -2609,33 +2628,33 @@ const Hr = Ye(Gr), Kr = /* @__PURE__ */ ue({
|
|
|
2609
2628
|
key: 0,
|
|
2610
2629
|
ref_key: "tTableRef",
|
|
2611
2630
|
ref: t
|
|
2612
|
-
}, { ...o.value, ...a.commonTableProps }),
|
|
2631
|
+
}, { ...o.value, ...a.commonTableProps }), Yt({ _: 2 }, [
|
|
2613
2632
|
Se(a.$slots, (d, s) => ({
|
|
2614
2633
|
name: s,
|
|
2615
2634
|
fn: k((c) => [
|
|
2616
|
-
Ke(a.$slots, s, Lt(
|
|
2635
|
+
Ke(a.$slots, s, Lt(qt({ ...c })))
|
|
2617
2636
|
])
|
|
2618
2637
|
}))
|
|
2619
2638
|
]), 1040)) : a.tableType == "primary" ? (v(), $(u, Ee({
|
|
2620
2639
|
key: 1,
|
|
2621
2640
|
ref_key: "tTableRef",
|
|
2622
2641
|
ref: t
|
|
2623
|
-
}, { ...o.value, ...a.commonTableProps }),
|
|
2642
|
+
}, { ...o.value, ...a.commonTableProps }), Yt({ _: 2 }, [
|
|
2624
2643
|
Se(a.$slots, (d, s) => ({
|
|
2625
2644
|
name: s,
|
|
2626
2645
|
fn: k((c) => [
|
|
2627
|
-
Ke(a.$slots, s, Lt(
|
|
2646
|
+
Ke(a.$slots, s, Lt(qt({ ...c })))
|
|
2628
2647
|
])
|
|
2629
2648
|
}))
|
|
2630
2649
|
]), 1040)) : a.tableType === "enhanced" ? (v(), $(i, Ee({
|
|
2631
2650
|
key: 2,
|
|
2632
2651
|
ref_key: "tTableRef",
|
|
2633
2652
|
ref: t
|
|
2634
|
-
}, { ...o.value, ...a.commonTableProps }),
|
|
2653
|
+
}, { ...o.value, ...a.commonTableProps }), Yt({ _: 2 }, [
|
|
2635
2654
|
Se(a.$slots, (d, s) => ({
|
|
2636
2655
|
name: s,
|
|
2637
2656
|
fn: k((c) => [
|
|
2638
|
-
Ke(a.$slots, s, Lt(
|
|
2657
|
+
Ke(a.$slots, s, Lt(qt({ ...c })))
|
|
2639
2658
|
])
|
|
2640
2659
|
}))
|
|
2641
2660
|
]), 1040)) : X("", !0)
|
|
@@ -2643,8 +2662,8 @@ const Hr = Ye(Gr), Kr = /* @__PURE__ */ ue({
|
|
|
2643
2662
|
};
|
|
2644
2663
|
}
|
|
2645
2664
|
});
|
|
2646
|
-
const ha =
|
|
2647
|
-
},
|
|
2665
|
+
const ha = qe(Kr), Un = () => {
|
|
2666
|
+
}, kn = {
|
|
2648
2667
|
// 普通上传文件 POST
|
|
2649
2668
|
baseUploadFile: "/api/base/upload",
|
|
2650
2669
|
// 准备上传文件 POST
|
|
@@ -2655,11 +2674,11 @@ const ha = Ye(Kr), On = () => {
|
|
|
2655
2674
|
getFileUrl: "/api/base/upload/files/url"
|
|
2656
2675
|
};
|
|
2657
2676
|
function Wr(n) {
|
|
2658
|
-
return
|
|
2677
|
+
return Qe.post(`${kn.uploadReady}`, no.stringify(n));
|
|
2659
2678
|
}
|
|
2660
|
-
function
|
|
2679
|
+
function qr(n) {
|
|
2661
2680
|
const e = Be.getItem(Xt);
|
|
2662
|
-
return
|
|
2681
|
+
return Qe.service.get(`${kn.getFileUrl}?sessionId=${e}`, {
|
|
2663
2682
|
timeout: 0,
|
|
2664
2683
|
params: n
|
|
2665
2684
|
});
|
|
@@ -2677,7 +2696,7 @@ const Gt = (n) => {
|
|
|
2677
2696
|
return e;
|
|
2678
2697
|
}
|
|
2679
2698
|
return e;
|
|
2680
|
-
}, Bo = (n, e) => Dt(n) ? n(e) : n,
|
|
2699
|
+
}, Bo = (n, e) => Dt(n) ? n(e) : n, Yr = ({
|
|
2681
2700
|
fileItem: n,
|
|
2682
2701
|
name: e,
|
|
2683
2702
|
data: t,
|
|
@@ -2688,12 +2707,12 @@ const Gt = (n) => {
|
|
|
2688
2707
|
fileReadyKey: u,
|
|
2689
2708
|
thread: i,
|
|
2690
2709
|
chunkSize: d,
|
|
2691
|
-
onProgress: s =
|
|
2692
|
-
onSuccess: c =
|
|
2693
|
-
onError: f =
|
|
2710
|
+
onProgress: s = Un,
|
|
2711
|
+
onSuccess: c = Un,
|
|
2712
|
+
onError: f = Un
|
|
2694
2713
|
}) => {
|
|
2695
2714
|
var _;
|
|
2696
|
-
const p = Bo(e, n) || "file", y = Bo(t, n), N = Be.getItem(Xt),
|
|
2715
|
+
const p = Bo(e, n) || "file", y = Bo(t, n), N = Be.getItem(Xt), R = r ? `${kn.pieceUploadFiles}?sessionId=${N}` : `${kn.baseUploadFile}?sessionId=${N}`, E = [];
|
|
2697
2716
|
function S(I, m) {
|
|
2698
2717
|
let w = 0;
|
|
2699
2718
|
E.forEach((M) => {
|
|
@@ -2723,7 +2742,7 @@ const Gt = (n) => {
|
|
|
2723
2742
|
c(g);
|
|
2724
2743
|
} else
|
|
2725
2744
|
w++, x();
|
|
2726
|
-
}, B.open("post",
|
|
2745
|
+
}, B.open("post", R ?? "", !0);
|
|
2727
2746
|
for (const g of Object.keys(o))
|
|
2728
2747
|
B.setRequestHeader(g, o[g]);
|
|
2729
2748
|
B.send(A), P.push(B);
|
|
@@ -2781,7 +2800,7 @@ const Gt = (n) => {
|
|
|
2781
2800
|
if (y)
|
|
2782
2801
|
for (const w of Object.keys(y))
|
|
2783
2802
|
m.append(w, y[w]);
|
|
2784
|
-
n.file && m.append(p, n.file), I.open("post",
|
|
2803
|
+
n.file && m.append(p, n.file), I.open("post", R ?? "", !0);
|
|
2785
2804
|
for (const w of Object.keys(o))
|
|
2786
2805
|
I.setRequestHeader(w, o[w]);
|
|
2787
2806
|
return I.send(m), {
|
|
@@ -2888,14 +2907,14 @@ const Gt = (n) => {
|
|
|
2888
2907
|
[`${t.value}-hide`]: a.hide
|
|
2889
2908
|
}
|
|
2890
2909
|
]), a = n;
|
|
2891
|
-
|
|
2892
|
-
const l =
|
|
2893
|
-
|
|
2910
|
+
qo(), q(!1);
|
|
2911
|
+
const l = q(null), r = q(null);
|
|
2912
|
+
q(0);
|
|
2894
2913
|
const u = (c) => {
|
|
2895
2914
|
if (!a.disabled) {
|
|
2896
2915
|
if (Dt(a.onButtonClick)) {
|
|
2897
2916
|
const f = a.onButtonClick(c);
|
|
2898
|
-
if (
|
|
2917
|
+
if (Yl(f)) {
|
|
2899
2918
|
f.then((p) => {
|
|
2900
2919
|
a.uploadFiles(Po(p));
|
|
2901
2920
|
});
|
|
@@ -3011,7 +3030,7 @@ const Gt = (n) => {
|
|
|
3011
3030
|
default: k(() => {
|
|
3012
3031
|
var y;
|
|
3013
3032
|
return [
|
|
3014
|
-
(y = h(e)) != null && y.showRetryButton ? (v(), $(h(
|
|
3033
|
+
(y = h(e)) != null && y.showRetryButton ? (v(), $(h(Kn), { key: 0 })) : X("", !0)
|
|
3015
3034
|
];
|
|
3016
3035
|
}),
|
|
3017
3036
|
_: 1
|
|
@@ -3033,7 +3052,7 @@ const Gt = (n) => {
|
|
|
3033
3052
|
return [
|
|
3034
3053
|
ne("span", {
|
|
3035
3054
|
class: Z([(y = h(e)) == null ? void 0 : y.iconClass, `${(N = h(e)) == null ? void 0 : N.iconClass}-start`]),
|
|
3036
|
-
onClick: u[1] || (u[1] = (
|
|
3055
|
+
onClick: u[1] || (u[1] = (R) => {
|
|
3037
3056
|
var E;
|
|
3038
3057
|
return (E = h(e)) == null ? void 0 : E.onUpload(n.file);
|
|
3039
3058
|
})
|
|
@@ -3055,7 +3074,7 @@ const Gt = (n) => {
|
|
|
3055
3074
|
return [
|
|
3056
3075
|
ne("span", {
|
|
3057
3076
|
class: Z([(y = h(e)) == null ? void 0 : y.iconClass, `${(N = h(e)) == null ? void 0 : N.iconClass}-cancel`]),
|
|
3058
|
-
onClick: u[2] || (u[2] = (
|
|
3077
|
+
onClick: u[2] || (u[2] = (R) => {
|
|
3059
3078
|
var E;
|
|
3060
3079
|
return (E = h(e)) == null ? void 0 : E.onAbort(n.file);
|
|
3061
3080
|
})
|
|
@@ -3078,7 +3097,7 @@ const Gt = (n) => {
|
|
|
3078
3097
|
}
|
|
3079
3098
|
},
|
|
3080
3099
|
setup(n) {
|
|
3081
|
-
const { T: e } =
|
|
3100
|
+
const { T: e } = Me(), t = ze($t, void 0), a = `${V(() => `${t == null ? void 0 : t.uploaderClass}`).value}__operations`;
|
|
3082
3101
|
function l(r) {
|
|
3083
3102
|
r.url && window.open(r.url, "_blank");
|
|
3084
3103
|
}
|
|
@@ -3099,7 +3118,7 @@ const Gt = (n) => {
|
|
|
3099
3118
|
return [
|
|
3100
3119
|
ne("span", {
|
|
3101
3120
|
class: Z([(d = h(t)) == null ? void 0 : d.iconClass]),
|
|
3102
|
-
onClick: u[0] || (u[0] =
|
|
3121
|
+
onClick: u[0] || (u[0] = Ot((s) => l(n.file), ["stop"]))
|
|
3103
3122
|
}, [
|
|
3104
3123
|
F(h(yl))
|
|
3105
3124
|
], 2)
|
|
@@ -3129,7 +3148,7 @@ const Gt = (n) => {
|
|
|
3129
3148
|
F(Jr, { file: n.file }, null, 8, ["file"]),
|
|
3130
3149
|
(i = h(t)) != null && i.showRemoveButton ? (v(), W("span", {
|
|
3131
3150
|
key: 2,
|
|
3132
|
-
onClick: u[1] || (u[1] =
|
|
3151
|
+
onClick: u[1] || (u[1] = Ot((d) => {
|
|
3133
3152
|
var s, c;
|
|
3134
3153
|
return (c = (s = h(t)) == null ? void 0 : s.onRemove) == null ? void 0 : c.call(s, n.file);
|
|
3135
3154
|
}, ["stop"]))
|
|
@@ -3144,7 +3163,7 @@ const Gt = (n) => {
|
|
|
3144
3163
|
ne("span", {
|
|
3145
3164
|
class: Z([h(t).iconClass, `${h(t).iconClass}-remove`])
|
|
3146
3165
|
}, [
|
|
3147
|
-
F(h(
|
|
3166
|
+
F(h(Vt))
|
|
3148
3167
|
], 2)
|
|
3149
3168
|
]),
|
|
3150
3169
|
_: 1
|
|
@@ -3176,7 +3195,7 @@ const ya = /* @__PURE__ */ ht(es, [["__scopeId", "data-v-8a486150"]]), ts = /* @
|
|
|
3176
3195
|
const s = ((d = l.file.filename) == null ? void 0 : d.split(".")[1]) ?? "";
|
|
3177
3196
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(s) ? i = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(s) ? i = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(s) && (i = "audio");
|
|
3178
3197
|
}
|
|
3179
|
-
return i.includes("image") ? Qt : i.includes("pdf") ? Jo : i.includes("video") ?
|
|
3198
|
+
return i.includes("image") ? Qt : i.includes("pdf") ? Jo : i.includes("video") ? Wn : qn;
|
|
3180
3199
|
}), u = V(() => l.file.filename ? l.file.filename.length > 25 ? l.file.filename.substring(0, 20) + "..." + l.file.filename.substring(l.file.filename.length - 5) : l.file.filename : "");
|
|
3181
3200
|
return (i, d) => {
|
|
3182
3201
|
var s;
|
|
@@ -3284,9 +3303,9 @@ const ya = /* @__PURE__ */ ht(es, [["__scopeId", "data-v-8a486150"]]), ts = /* @
|
|
|
3284
3303
|
const p = ((c = d.data.filename) == null ? void 0 : c.split(".")[1]) ?? "";
|
|
3285
3304
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(p) ? f = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(p) ? f = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(p) && (f = "audio");
|
|
3286
3305
|
}
|
|
3287
|
-
f.includes("image") && (s = Qt), f.includes("pdf") && (s = Jo), f.includes("audio") && (s =
|
|
3306
|
+
f.includes("image") && (s = Qt), f.includes("pdf") && (s = Jo), f.includes("audio") && (s = Wn), f.includes("video") && (s = Wn), s = qn;
|
|
3288
3307
|
} else
|
|
3289
|
-
s =
|
|
3308
|
+
s = qn;
|
|
3290
3309
|
return s && i(s, {});
|
|
3291
3310
|
}, u = V(() => l.fileTree.childFiles);
|
|
3292
3311
|
return (i, d) => {
|
|
@@ -3610,7 +3629,7 @@ const as = /* @__PURE__ */ ue({
|
|
|
3610
3629
|
error: (n) => !0
|
|
3611
3630
|
},
|
|
3612
3631
|
setup(n, { emit: e }) {
|
|
3613
|
-
const { T: t } =
|
|
3632
|
+
const { T: t } = Me(), o = n, a = e, l = qo(), {
|
|
3614
3633
|
fileList: r,
|
|
3615
3634
|
disabled: u,
|
|
3616
3635
|
listType: i,
|
|
@@ -3621,11 +3640,11 @@ const as = /* @__PURE__ */ ue({
|
|
|
3621
3640
|
imageLoading: p,
|
|
3622
3641
|
download: y,
|
|
3623
3642
|
showLink: N,
|
|
3624
|
-
showButtonProgress:
|
|
3625
|
-
} = el(o), E = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), L =
|
|
3643
|
+
showButtonProgress: R
|
|
3644
|
+
} = el(o), E = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), L = q([]), _ = V(() => o.directory ? L.value.length ? ga(L.value) : { fileId: "" } : { fileId: "" }), I = V(() => o.limit > 0 && L.value.length >= o.limit), m = V(() => o.buttonText ? o.buttonText : o.directory ? I.value ? `${t.t("重新选择")}` : `${t.t("上传文件夹")}` : I.value ? `${t.t("重新选择")}` : `${t.t("上传文件")}`), w = (g) => {
|
|
3626
3645
|
E.clear();
|
|
3627
3646
|
const b = g == null ? void 0 : g.map((z, G) => {
|
|
3628
|
-
const H = z.status ? z.status : z.url ? "done" : "error", ae =
|
|
3647
|
+
const H = z.status ? z.status : z.url ? "done" : "error", ae = Bn({
|
|
3629
3648
|
...z,
|
|
3630
3649
|
fileId: z.fileId ?? `${Zt(10)}-${z.filename}`,
|
|
3631
3650
|
status: H,
|
|
@@ -3656,26 +3675,26 @@ const as = /* @__PURE__ */ ue({
|
|
|
3656
3675
|
const b = ((Re = g.file) == null ? void 0 : Re.size) ?? 1, z = b > o.largeLimit;
|
|
3657
3676
|
let G = "";
|
|
3658
3677
|
z && (G = await U(g.file));
|
|
3659
|
-
const H = (
|
|
3678
|
+
const H = (Ce, ge) => {
|
|
3660
3679
|
const Ie = E.get(g.fileId);
|
|
3661
|
-
Ie && (Ie.status = "uploading", Ie.percent =
|
|
3662
|
-
}, ae = z ? (
|
|
3680
|
+
Ie && (Ie.status = "uploading", Ie.percent = Ce, a("progress", Ie, ge));
|
|
3681
|
+
}, ae = z ? (Ce) => {
|
|
3663
3682
|
const ge = E.get(g.fileId);
|
|
3664
|
-
ge && G != "" &&
|
|
3665
|
-
|
|
3683
|
+
ge && G != "" && Ce.every((Ie) => Ie.state == 200) ? Promise.resolve(
|
|
3684
|
+
qr({
|
|
3666
3685
|
key: G
|
|
3667
3686
|
}).then((Ie) => {
|
|
3668
|
-
Ie.state == 200 ? (S.delete(ge.fileId), ge.status = "done", ge.percent = 1, ge.response = Ie, ge.url = Ie.data.url, a("success", ge), M(ge)) : me(
|
|
3687
|
+
Ie.state == 200 ? (S.delete(ge.fileId), ge.status = "done", ge.percent = 1, ge.response = Ie, ge.url = Ie.data.url, a("success", ge), M(ge)) : me(Ce);
|
|
3669
3688
|
}).catch(() => {
|
|
3670
|
-
me(
|
|
3689
|
+
me(Ce);
|
|
3671
3690
|
})
|
|
3672
|
-
) : me(
|
|
3673
|
-
} : (
|
|
3691
|
+
) : me(Ce);
|
|
3692
|
+
} : (Ce) => {
|
|
3674
3693
|
const ge = E.get(g.fileId);
|
|
3675
|
-
ge && (
|
|
3676
|
-
}, me = (
|
|
3694
|
+
ge && (Ce.state == 200 ? (ge.status = "done", ge.percent = 1, ge.response = Ce, S.delete(ge.fileId), ge.url = Ce.data.url, M(ge), a("success", ge)) : me(Ce));
|
|
3695
|
+
}, me = (Ce) => {
|
|
3677
3696
|
const ge = E.get(g.fileId);
|
|
3678
|
-
console.warn("上传报错",
|
|
3697
|
+
console.warn("上传报错", Ce, ge), ge && (ge.status = "error", ge.percent = 0, ge.response = Ce, S.delete(ge.fileId), a("error", ge), M(ge));
|
|
3679
3698
|
}, J = {
|
|
3680
3699
|
fileItem: g,
|
|
3681
3700
|
action: o.action,
|
|
@@ -3693,8 +3712,8 @@ const as = /* @__PURE__ */ ue({
|
|
|
3693
3712
|
onError: me
|
|
3694
3713
|
};
|
|
3695
3714
|
g.status = "uploading", g.percent = 0;
|
|
3696
|
-
const
|
|
3697
|
-
S.set(g.fileId,
|
|
3715
|
+
const _e = Dt(o.customRequest) ? o.customRequest(J) : Yr(J);
|
|
3716
|
+
S.set(g.fileId, _e);
|
|
3698
3717
|
}, C = (g) => {
|
|
3699
3718
|
var z;
|
|
3700
3719
|
const b = S.get(g.fileId);
|
|
@@ -3712,7 +3731,7 @@ const as = /* @__PURE__ */ ue({
|
|
|
3712
3731
|
G && (G.status = "error", G.percent = 0, M(G));
|
|
3713
3732
|
}
|
|
3714
3733
|
}, x = async (g, b) => {
|
|
3715
|
-
const z = `${Zt(10)}-${g.name}`, G = void 0, H =
|
|
3734
|
+
const z = `${Zt(10)}-${g.name}`, G = void 0, H = Bn({
|
|
3716
3735
|
fileId: z,
|
|
3717
3736
|
file: g,
|
|
3718
3737
|
filename: g.name,
|
|
@@ -3754,7 +3773,7 @@ const as = /* @__PURE__ */ ue({
|
|
|
3754
3773
|
});
|
|
3755
3774
|
return At(
|
|
3756
3775
|
$t,
|
|
3757
|
-
|
|
3776
|
+
Bn({
|
|
3758
3777
|
disabled: u,
|
|
3759
3778
|
listType: i,
|
|
3760
3779
|
uploaderClass: un,
|
|
@@ -3764,7 +3783,7 @@ const as = /* @__PURE__ */ ue({
|
|
|
3764
3783
|
showCancelButton: s,
|
|
3765
3784
|
showPreviewButton: f,
|
|
3766
3785
|
showLink: N,
|
|
3767
|
-
showButtonProgress:
|
|
3786
|
+
showButtonProgress: R,
|
|
3768
3787
|
imageLoading: p,
|
|
3769
3788
|
download: y,
|
|
3770
3789
|
slots: l,
|
|
@@ -3812,7 +3831,7 @@ const as = /* @__PURE__ */ ue({
|
|
|
3812
3831
|
};
|
|
3813
3832
|
}
|
|
3814
3833
|
});
|
|
3815
|
-
const
|
|
3834
|
+
const Zn = qe(as), ls = { class: "display-column-checkbox" }, rs = { class: "footer" }, ss = /* @__PURE__ */ ue({
|
|
3816
3835
|
__name: "GColumnController",
|
|
3817
3836
|
props: {
|
|
3818
3837
|
columnOptions: { default: () => [] },
|
|
@@ -3820,11 +3839,11 @@ const Xn = Ye(as), ls = { class: "display-column-checkbox" }, rs = { class: "foo
|
|
|
3820
3839
|
},
|
|
3821
3840
|
emits: ["confirm"],
|
|
3822
3841
|
setup(n, { emit: e }) {
|
|
3823
|
-
const t = n, { T: o } =
|
|
3842
|
+
const t = n, { T: o } = Me(), a = q(!1), l = q([]);
|
|
3824
3843
|
De(
|
|
3825
3844
|
() => t.displayColumns,
|
|
3826
3845
|
() => {
|
|
3827
|
-
l.value =
|
|
3846
|
+
l.value = Ze(t.displayColumns);
|
|
3828
3847
|
},
|
|
3829
3848
|
{
|
|
3830
3849
|
deep: !0,
|
|
@@ -3832,20 +3851,20 @@ const Xn = Ye(as), ls = { class: "display-column-checkbox" }, rs = { class: "foo
|
|
|
3832
3851
|
}
|
|
3833
3852
|
);
|
|
3834
3853
|
function r(p) {
|
|
3835
|
-
p && (l.value =
|
|
3854
|
+
p && (l.value = Ze(t.displayColumns));
|
|
3836
3855
|
}
|
|
3837
3856
|
const u = (p) => {
|
|
3838
3857
|
l.value = p ? [...t.columnOptions.map((y) => y.value)] : [...t.columnOptions.filter((y) => y.disabled).map((y) => y.value)];
|
|
3839
3858
|
}, i = V(() => t.columnOptions.length === l.value.length), d = V(
|
|
3840
3859
|
() => !!(t.columnOptions.length > l.value.length && l.value.length)
|
|
3841
|
-
), s = e, c =
|
|
3860
|
+
), s = e, c = q(!1);
|
|
3842
3861
|
function f() {
|
|
3843
3862
|
c.value = !0, a.value = !1, s("confirm", l.value), setTimeout(() => {
|
|
3844
3863
|
c.value = !1;
|
|
3845
3864
|
}, 1e3);
|
|
3846
3865
|
}
|
|
3847
3866
|
return (p, y) => {
|
|
3848
|
-
const N = Q("t-button"),
|
|
3867
|
+
const N = Q("t-button"), R = Q("t-checkbox"), E = Q("t-checkbox-group"), S = Q("t-space"), L = Q("t-popup");
|
|
3849
3868
|
return v(), $(L, {
|
|
3850
3869
|
trigger: "click",
|
|
3851
3870
|
placement: "bottom-right",
|
|
@@ -3861,7 +3880,7 @@ const Xn = Ye(as), ls = { class: "display-column-checkbox" }, rs = { class: "foo
|
|
|
3861
3880
|
class: "checkbox"
|
|
3862
3881
|
}, {
|
|
3863
3882
|
default: k(() => [
|
|
3864
|
-
F(
|
|
3883
|
+
F(R, {
|
|
3865
3884
|
checked: i.value,
|
|
3866
3885
|
indeterminate: d.value,
|
|
3867
3886
|
"on-change": u
|
|
@@ -3920,7 +3939,7 @@ const Xn = Ye(as), ls = { class: "display-column-checkbox" }, rs = { class: "foo
|
|
|
3920
3939
|
};
|
|
3921
3940
|
}
|
|
3922
3941
|
});
|
|
3923
|
-
const is = /* @__PURE__ */ ht(ss, [["__scopeId", "data-v-05da5ebe"]]), us =
|
|
3942
|
+
const is = /* @__PURE__ */ ht(ss, [["__scopeId", "data-v-05da5ebe"]]), us = qe(is), cs = /* @__PURE__ */ ue({
|
|
3924
3943
|
__name: "GSettingDialog",
|
|
3925
3944
|
props: {
|
|
3926
3945
|
visible: { type: Boolean },
|
|
@@ -3928,7 +3947,7 @@ const is = /* @__PURE__ */ ht(ss, [["__scopeId", "data-v-05da5ebe"]]), us = Ye(i
|
|
|
3928
3947
|
dialogProps: {}
|
|
3929
3948
|
},
|
|
3930
3949
|
setup(n) {
|
|
3931
|
-
const { T: e } =
|
|
3950
|
+
const { T: e } = Me(), t = [
|
|
3932
3951
|
"default",
|
|
3933
3952
|
"red",
|
|
3934
3953
|
"cyan",
|
|
@@ -3942,7 +3961,7 @@ const is = /* @__PURE__ */ ht(ss, [["__scopeId", "data-v-05da5ebe"]]), us = Ye(i
|
|
|
3942
3961
|
{ type: "light", text: e.t("明亮") },
|
|
3943
3962
|
{ type: "dark", text: e.t("暗黑") },
|
|
3944
3963
|
{ type: "auto", text: e.t("跟随系统") }
|
|
3945
|
-
]), a =
|
|
3964
|
+
]), a = xe(), l = V(() => a.themeConfig), r = () => {
|
|
3946
3965
|
a.changeTheme(l.value);
|
|
3947
3966
|
}, u = (i) => ({
|
|
3948
3967
|
background: aa(i, oa)["--td-brand-color"]
|
|
@@ -4035,7 +4054,7 @@ const is = /* @__PURE__ */ ht(ss, [["__scopeId", "data-v-05da5ebe"]]), us = Ye(i
|
|
|
4035
4054
|
};
|
|
4036
4055
|
}
|
|
4037
4056
|
});
|
|
4038
|
-
const Nc =
|
|
4057
|
+
const Nc = qe(cs), zt = {
|
|
4039
4058
|
// 视图 - 获取所有视图 GET
|
|
4040
4059
|
getAllView: "/restapi/s09/gview/boards/all",
|
|
4041
4060
|
// 视图 - 获取一个视图 GET
|
|
@@ -4052,7 +4071,7 @@ const Nc = Ye(cs), jt = {
|
|
|
4052
4071
|
confirm: "/restapi/s09/gview/active/confirm",
|
|
4053
4072
|
// 触发 - 触发批量操作事件 POST
|
|
4054
4073
|
batch: "/restapi/s09/gview/active/batch"
|
|
4055
|
-
}, ba = (n) =>
|
|
4074
|
+
}, ba = (n) => Qe.get(zt.getOneView, n), tn = (n) => Qe.post(zt.getBoardData, n), wa = (n) => Qe.post(zt.confirm, n), ds = (n) => Qe.post(zt.batch, n), ms = (n) => Qe.post(zt.activeFile, n), fs = (n) => Qe.post(zt.downloadFile, n), ps = /* @__PURE__ */ ue({
|
|
4056
4075
|
__name: "GFormLabel",
|
|
4057
4076
|
props: {
|
|
4058
4077
|
modelValue: { default: "" },
|
|
@@ -4082,7 +4101,7 @@ const Nc = Ye(cs), jt = {
|
|
|
4082
4101
|
};
|
|
4083
4102
|
}
|
|
4084
4103
|
});
|
|
4085
|
-
const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]),
|
|
4104
|
+
const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Jn = /* @__PURE__ */ ue({
|
|
4086
4105
|
__name: "GFormInput",
|
|
4087
4106
|
props: {
|
|
4088
4107
|
inputType: {},
|
|
@@ -4097,7 +4116,7 @@ const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @
|
|
|
4097
4116
|
const t = n, o = V(() => {
|
|
4098
4117
|
var f;
|
|
4099
4118
|
return (f = t.formItem) == null ? void 0 : f.itemType;
|
|
4100
|
-
}), a = V(() => t.inputType == "re_password" ? "password" : t.inputType), l =
|
|
4119
|
+
}), a = V(() => t.inputType == "re_password" ? "password" : t.inputType), l = q(t.modelValue);
|
|
4101
4120
|
De(
|
|
4102
4121
|
() => t.modelValue,
|
|
4103
4122
|
() => {
|
|
@@ -4118,11 +4137,11 @@ const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @
|
|
|
4118
4137
|
Tt(() => {
|
|
4119
4138
|
u(Ge(o.value));
|
|
4120
4139
|
});
|
|
4121
|
-
const d =
|
|
4140
|
+
const d = q(), s = q(!1);
|
|
4122
4141
|
Ue(() => {
|
|
4123
|
-
s.value =
|
|
4142
|
+
s.value = jt(d.value);
|
|
4124
4143
|
});
|
|
4125
|
-
const c = ze(
|
|
4144
|
+
const c = ze(Dn);
|
|
4126
4145
|
return (f, p) => {
|
|
4127
4146
|
const y = Q("t-input"), N = Q("t-tooltip");
|
|
4128
4147
|
return v(), W("div", {
|
|
@@ -4141,7 +4160,7 @@ const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @
|
|
|
4141
4160
|
default: k(() => [
|
|
4142
4161
|
F(y, Ee({
|
|
4143
4162
|
modelValue: l.value,
|
|
4144
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4163
|
+
"onUpdate:modelValue": p[0] || (p[0] = (R) => l.value = R)
|
|
4145
4164
|
}, h(c), {
|
|
4146
4165
|
type: a.value,
|
|
4147
4166
|
placeholder: f.placeholder,
|
|
@@ -4165,7 +4184,7 @@ const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @
|
|
|
4165
4184
|
},
|
|
4166
4185
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
4167
4186
|
setup(n, { emit: e }) {
|
|
4168
|
-
const t = n, o =
|
|
4187
|
+
const t = n, o = q(t.modelValue);
|
|
4169
4188
|
De(
|
|
4170
4189
|
() => t.modelValue,
|
|
4171
4190
|
() => {
|
|
@@ -4204,7 +4223,7 @@ const Ta = /* @__PURE__ */ ht(ps, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @
|
|
|
4204
4223
|
const t = n, o = V(() => {
|
|
4205
4224
|
var u;
|
|
4206
4225
|
return (u = t.formItem) == null ? void 0 : u.itemType;
|
|
4207
|
-
}), a =
|
|
4226
|
+
}), a = q(t.modelValue);
|
|
4208
4227
|
De(
|
|
4209
4228
|
() => t.modelValue,
|
|
4210
4229
|
() => {
|
|
@@ -4242,7 +4261,7 @@ async function hs(n, e, t, o) {
|
|
|
4242
4261
|
if (a.state === 200) {
|
|
4243
4262
|
const l = a.data;
|
|
4244
4263
|
if (!We(l) && l.length)
|
|
4245
|
-
return
|
|
4264
|
+
return sa({
|
|
4246
4265
|
list: l,
|
|
4247
4266
|
parentKey: null,
|
|
4248
4267
|
keyName: n == null ? void 0 : n.keyName,
|
|
@@ -4261,7 +4280,7 @@ async function vs(n, e, t, o) {
|
|
|
4261
4280
|
if (a.state === 200) {
|
|
4262
4281
|
const l = a.data;
|
|
4263
4282
|
if (!We(l) && l.length)
|
|
4264
|
-
return
|
|
4283
|
+
return sa({
|
|
4265
4284
|
list: l,
|
|
4266
4285
|
parentKey: null,
|
|
4267
4286
|
keyName: n == null ? void 0 : n.valueName,
|
|
@@ -4291,8 +4310,8 @@ async function gs(n, e, t, o) {
|
|
|
4291
4310
|
}
|
|
4292
4311
|
}
|
|
4293
4312
|
}
|
|
4294
|
-
function
|
|
4295
|
-
const e =
|
|
4313
|
+
function Nn(n) {
|
|
4314
|
+
const e = q([]);
|
|
4296
4315
|
return Jt(async () => {
|
|
4297
4316
|
switch (n.itemType) {
|
|
4298
4317
|
case "tree_check_box": {
|
|
@@ -4353,13 +4372,13 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4353
4372
|
}), l = V(() => {
|
|
4354
4373
|
var c, f;
|
|
4355
4374
|
return ((f = (c = t.formItem) == null ? void 0 : c.listData) == null ? void 0 : f.dataId) ?? "";
|
|
4356
|
-
}), r = ze(Ft, void 0), { options: u } =
|
|
4375
|
+
}), r = ze(Ft, void 0), { options: u } = Nn({
|
|
4357
4376
|
itemType: o.value,
|
|
4358
4377
|
viewName: t.viewName,
|
|
4359
4378
|
listData: a.value,
|
|
4360
4379
|
dataId: l.value,
|
|
4361
4380
|
propsModel: r
|
|
4362
|
-
}), i =
|
|
4381
|
+
}), i = q(t.modelValue);
|
|
4363
4382
|
De(
|
|
4364
4383
|
() => t.modelValue,
|
|
4365
4384
|
() => {
|
|
@@ -4424,15 +4443,15 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4424
4443
|
var N;
|
|
4425
4444
|
return (N = t.formItem) == null ? void 0 : N.listData;
|
|
4426
4445
|
}), l = V(() => {
|
|
4427
|
-
var N,
|
|
4428
|
-
return ((
|
|
4429
|
-
}), r = ze(Ft, void 0), { options: u } =
|
|
4446
|
+
var N, R;
|
|
4447
|
+
return ((R = (N = t.formItem) == null ? void 0 : N.listData) == null ? void 0 : R.dataId) ?? "";
|
|
4448
|
+
}), r = ze(Ft, void 0), { options: u } = Nn({
|
|
4430
4449
|
itemType: o.value,
|
|
4431
4450
|
viewName: t.viewName,
|
|
4432
4451
|
listData: a.value,
|
|
4433
4452
|
dataId: l.value,
|
|
4434
4453
|
propsModel: r
|
|
4435
|
-
}), i =
|
|
4454
|
+
}), i = q(t.modelValue);
|
|
4436
4455
|
De(
|
|
4437
4456
|
() => t.modelValue,
|
|
4438
4457
|
() => {
|
|
@@ -4458,12 +4477,12 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4458
4477
|
), Tt(() => {
|
|
4459
4478
|
s(Ge(o.value));
|
|
4460
4479
|
});
|
|
4461
|
-
const f =
|
|
4480
|
+
const f = q(), p = q(!1);
|
|
4462
4481
|
Ue(() => {
|
|
4463
|
-
f.value && (p.value =
|
|
4482
|
+
f.value && (p.value = jt(f.value));
|
|
4464
4483
|
});
|
|
4465
|
-
const y = ze(
|
|
4466
|
-
return (N,
|
|
4484
|
+
const y = ze(Dn);
|
|
4485
|
+
return (N, R) => {
|
|
4467
4486
|
const E = Q("t-select"), S = Q("t-tooltip");
|
|
4468
4487
|
return v(), W("div", {
|
|
4469
4488
|
ref_key: "formSelectRef",
|
|
@@ -4481,7 +4500,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4481
4500
|
default: k(() => [
|
|
4482
4501
|
F(E, Ee({
|
|
4483
4502
|
modelValue: i.value,
|
|
4484
|
-
"onUpdate:modelValue":
|
|
4503
|
+
"onUpdate:modelValue": R[0] || (R[0] = (L) => i.value = L)
|
|
4485
4504
|
}, h(y), {
|
|
4486
4505
|
placeholder: N.placeholder,
|
|
4487
4506
|
options: h(u),
|
|
@@ -4511,11 +4530,11 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4511
4530
|
},
|
|
4512
4531
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
4513
4532
|
setup(n, { emit: e }) {
|
|
4514
|
-
|
|
4533
|
+
Me();
|
|
4515
4534
|
const t = n, o = V(() => {
|
|
4516
4535
|
var s;
|
|
4517
4536
|
return (s = t.formItem) == null ? void 0 : s.itemType;
|
|
4518
|
-
}), a =
|
|
4537
|
+
}), a = q(t.modelValue);
|
|
4519
4538
|
De(
|
|
4520
4539
|
() => t.modelValue,
|
|
4521
4540
|
() => {
|
|
@@ -4542,9 +4561,9 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4542
4561
|
t.disabled && l("update:modelValue", Ge(o.value));
|
|
4543
4562
|
}
|
|
4544
4563
|
);
|
|
4545
|
-
const i =
|
|
4564
|
+
const i = q(), d = q(!1);
|
|
4546
4565
|
return Ue(() => {
|
|
4547
|
-
i.value && (d.value =
|
|
4566
|
+
i.value && (d.value = jt(i.value));
|
|
4548
4567
|
}), (s, c) => {
|
|
4549
4568
|
const f = Q("t-date-picker"), p = Q("t-time-picker"), y = Q("t-tooltip");
|
|
4550
4569
|
return v(), W("div", {
|
|
@@ -4561,9 +4580,9 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4561
4580
|
placement: "bottom"
|
|
4562
4581
|
}, {
|
|
4563
4582
|
default: k(() => {
|
|
4564
|
-
var N,
|
|
4583
|
+
var N, R, E, S, L;
|
|
4565
4584
|
return [
|
|
4566
|
-
((N = s.formItem) == null ? void 0 : N.itemType) === "date_selector" || ((
|
|
4585
|
+
((N = s.formItem) == null ? void 0 : N.itemType) === "date_selector" || ((R = s.formItem) == null ? void 0 : R.itemType) === "date_time_selector" ? (v(), $(f, {
|
|
4567
4586
|
key: 0,
|
|
4568
4587
|
"enable-time-picker": ((E = s.formItem) == null ? void 0 : E.itemType) === "date_time_selector",
|
|
4569
4588
|
placeholder: s.placeholder,
|
|
@@ -4617,7 +4636,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4617
4636
|
}), l = V(() => {
|
|
4618
4637
|
var y, N;
|
|
4619
4638
|
return ((N = (y = t.formItem) == null ? void 0 : y.treeData) == null ? void 0 : N.dataId) ?? "";
|
|
4620
|
-
}), r = ze(Ft, void 0), { options: u } =
|
|
4639
|
+
}), r = ze(Ft, void 0), { options: u } = Nn({
|
|
4621
4640
|
itemType: o.value,
|
|
4622
4641
|
viewName: t.viewName,
|
|
4623
4642
|
treeData: a.value,
|
|
@@ -4638,22 +4657,22 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4638
4657
|
), Tt(() => {
|
|
4639
4658
|
d(Ge(o.value));
|
|
4640
4659
|
});
|
|
4641
|
-
const c =
|
|
4660
|
+
const c = q(), f = q(!1);
|
|
4642
4661
|
Ue(() => {
|
|
4643
|
-
c.value && (f.value =
|
|
4662
|
+
c.value && (f.value = jt(c.value));
|
|
4644
4663
|
});
|
|
4645
|
-
const p =
|
|
4664
|
+
const p = q(t.modelValue);
|
|
4646
4665
|
return De(
|
|
4647
4666
|
() => t.modelValue,
|
|
4648
4667
|
(y) => {
|
|
4649
|
-
t.modelValue ? p.value =
|
|
4668
|
+
t.modelValue ? p.value = or(u.value, y) : p.value = y;
|
|
4650
4669
|
},
|
|
4651
4670
|
{
|
|
4652
4671
|
deep: !0,
|
|
4653
4672
|
immediate: !0
|
|
4654
4673
|
}
|
|
4655
4674
|
), (y, N) => {
|
|
4656
|
-
const
|
|
4675
|
+
const R = Q("t-tree-select"), E = Q("t-tooltip");
|
|
4657
4676
|
return v(), W("div", {
|
|
4658
4677
|
ref_key: "formTreeCheckBoxRef",
|
|
4659
4678
|
ref: c,
|
|
@@ -4668,7 +4687,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4668
4687
|
placement: "bottom"
|
|
4669
4688
|
}, {
|
|
4670
4689
|
default: k(() => [
|
|
4671
|
-
F(
|
|
4690
|
+
F(R, {
|
|
4672
4691
|
modelValue: p.value,
|
|
4673
4692
|
"onUpdate:modelValue": N[0] || (N[0] = (S) => p.value = S),
|
|
4674
4693
|
data: h(u),
|
|
@@ -4709,7 +4728,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4709
4728
|
}), l = V(() => {
|
|
4710
4729
|
var y, N;
|
|
4711
4730
|
return ((N = (y = t.formItem) == null ? void 0 : y.treeData) == null ? void 0 : N.dataId) ?? "";
|
|
4712
|
-
}), r = ze(Ft, void 0), { options: u } =
|
|
4731
|
+
}), r = ze(Ft, void 0), { options: u } = Nn({
|
|
4713
4732
|
itemType: o.value,
|
|
4714
4733
|
viewName: t.viewName,
|
|
4715
4734
|
treeData: a.value,
|
|
@@ -4730,11 +4749,11 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4730
4749
|
), Tt(() => {
|
|
4731
4750
|
d(Ge(o.value));
|
|
4732
4751
|
});
|
|
4733
|
-
const c =
|
|
4752
|
+
const c = q(), f = q(!1);
|
|
4734
4753
|
Ue(() => {
|
|
4735
|
-
c.value && (f.value =
|
|
4754
|
+
c.value && (f.value = jt(c.value));
|
|
4736
4755
|
});
|
|
4737
|
-
const p =
|
|
4756
|
+
const p = q(t.modelValue);
|
|
4738
4757
|
return De(
|
|
4739
4758
|
() => t.modelValue,
|
|
4740
4759
|
(y) => {
|
|
@@ -4745,7 +4764,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4745
4764
|
immediate: !0
|
|
4746
4765
|
}
|
|
4747
4766
|
), (y, N) => {
|
|
4748
|
-
const
|
|
4767
|
+
const R = Q("t-cascader"), E = Q("t-tooltip");
|
|
4749
4768
|
return v(), W("div", {
|
|
4750
4769
|
ref_key: "formCascaderRef",
|
|
4751
4770
|
ref: c,
|
|
@@ -4760,7 +4779,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4760
4779
|
placement: "bottom"
|
|
4761
4780
|
}, {
|
|
4762
4781
|
default: k(() => [
|
|
4763
|
-
F(
|
|
4782
|
+
F(R, {
|
|
4764
4783
|
modelValue: p.value,
|
|
4765
4784
|
"onUpdate:modelValue": N[0] || (N[0] = (S) => p.value = S),
|
|
4766
4785
|
options: h(u),
|
|
@@ -4791,7 +4810,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4791
4810
|
},
|
|
4792
4811
|
emits: ["update:modelValue", "blur:modelValue", "update:fileName"],
|
|
4793
4812
|
setup(n, { emit: e }) {
|
|
4794
|
-
const { T: t } =
|
|
4813
|
+
const { T: t } = Me(), o = n, a = e, l = q([]);
|
|
4795
4814
|
De(
|
|
4796
4815
|
() => o.modelValue,
|
|
4797
4816
|
() => {
|
|
@@ -4811,7 +4830,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4811
4830
|
}
|
|
4812
4831
|
);
|
|
4813
4832
|
function r(d) {
|
|
4814
|
-
const s =
|
|
4833
|
+
const s = In(d);
|
|
4815
4834
|
if (o.formItem.fileUploadType == "file")
|
|
4816
4835
|
if (s.length && s.every((c) => c.status == "done")) {
|
|
4817
4836
|
const { response: c, filename: f, url: p } = s[0];
|
|
@@ -4821,13 +4840,13 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4821
4840
|
else if (o.formItem.fileUploadType == "path")
|
|
4822
4841
|
if (s.length) {
|
|
4823
4842
|
const c = s.map((f) => {
|
|
4824
|
-
const { fileId: p, filename: y, relativePath: N, url:
|
|
4843
|
+
const { fileId: p, filename: y, relativePath: N, url: R, file: E } = f;
|
|
4825
4844
|
return {
|
|
4826
4845
|
fileId: p,
|
|
4827
4846
|
filename: y,
|
|
4828
4847
|
relativePath: N,
|
|
4829
|
-
url:
|
|
4830
|
-
...
|
|
4848
|
+
url: R,
|
|
4849
|
+
...R ? {} : { file: E }
|
|
4831
4850
|
};
|
|
4832
4851
|
});
|
|
4833
4852
|
a("update:modelValue", c), a("blur:modelValue", c);
|
|
@@ -4841,7 +4860,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4841
4860
|
}
|
|
4842
4861
|
return (d, s) => {
|
|
4843
4862
|
var c, f;
|
|
4844
|
-
return d.formItem.fileUploadType != "path" ? (v(), $(h(
|
|
4863
|
+
return d.formItem.fileUploadType != "path" ? (v(), $(h(Zn), {
|
|
4845
4864
|
key: 0,
|
|
4846
4865
|
fileList: l.value,
|
|
4847
4866
|
tip: d.placeholder,
|
|
@@ -4852,7 +4871,7 @@ const Ma = /* @__PURE__ */ ue({
|
|
|
4852
4871
|
onRemove: u,
|
|
4853
4872
|
onChange: r,
|
|
4854
4873
|
onError: i
|
|
4855
|
-
}, null, 8, ["fileList", "tip", "disabled", "accept"])) : (v(), $(h(
|
|
4874
|
+
}, null, 8, ["fileList", "tip", "disabled", "accept"])) : (v(), $(h(Zn), {
|
|
4856
4875
|
key: 1,
|
|
4857
4876
|
directory: !0,
|
|
4858
4877
|
fileList: l.value,
|
|
@@ -4881,14 +4900,14 @@ var Na = { exports: {} };
|
|
|
4881
4900
|
return new _(m, M, w.$l);
|
|
4882
4901
|
}, N = function(m) {
|
|
4883
4902
|
return o.p(m) + "s";
|
|
4884
|
-
},
|
|
4903
|
+
}, R = function(m) {
|
|
4885
4904
|
return m < 0;
|
|
4886
4905
|
}, E = function(m) {
|
|
4887
|
-
return
|
|
4906
|
+
return R(m) ? Math.ceil(m) : Math.floor(m);
|
|
4888
4907
|
}, S = function(m) {
|
|
4889
4908
|
return Math.abs(m);
|
|
4890
4909
|
}, L = function(m, w) {
|
|
4891
|
-
return m ?
|
|
4910
|
+
return m ? R(m) ? { negative: !0, format: "" + S(m) + w } : { negative: !1, format: "" + m + w } : { negative: !1, format: "" };
|
|
4892
4911
|
}, _ = function() {
|
|
4893
4912
|
function m(M, U, P) {
|
|
4894
4913
|
var C = this;
|
|
@@ -5020,7 +5039,7 @@ const Ts = /* @__PURE__ */ bs(ws), ks = /* @__PURE__ */ ue({
|
|
|
5020
5039
|
const t = n, o = V(() => {
|
|
5021
5040
|
var s;
|
|
5022
5041
|
return (s = t.formItem) == null ? void 0 : s.itemType;
|
|
5023
|
-
}), a =
|
|
5042
|
+
}), a = q(t.modelValue);
|
|
5024
5043
|
De(
|
|
5025
5044
|
() => t.modelValue,
|
|
5026
5045
|
() => {
|
|
@@ -5040,12 +5059,12 @@ const Ts = /* @__PURE__ */ bs(ws), ks = /* @__PURE__ */ ue({
|
|
|
5040
5059
|
l("update:modelValue", "");
|
|
5041
5060
|
}
|
|
5042
5061
|
function u(s) {
|
|
5043
|
-
const { value: c } = s, f = c.split(":"), [p, y, N] = f,
|
|
5062
|
+
const { value: c } = s, f = c.split(":"), [p, y, N] = f, R = dt.duration({
|
|
5044
5063
|
hours: p,
|
|
5045
5064
|
minutes: y,
|
|
5046
5065
|
seconds: N
|
|
5047
5066
|
}).asMilliseconds();
|
|
5048
|
-
t.originValue !=
|
|
5067
|
+
t.originValue != R && l("blur:modelValue", R);
|
|
5049
5068
|
}
|
|
5050
5069
|
De(
|
|
5051
5070
|
() => t.disabled,
|
|
@@ -5053,9 +5072,9 @@ const Ts = /* @__PURE__ */ bs(ws), ks = /* @__PURE__ */ ue({
|
|
|
5053
5072
|
t.disabled && l("update:modelValue", Ge(o.value));
|
|
5054
5073
|
}
|
|
5055
5074
|
);
|
|
5056
|
-
const i =
|
|
5075
|
+
const i = q(), d = q(!1);
|
|
5057
5076
|
return Ue(() => {
|
|
5058
|
-
i.value && (d.value =
|
|
5077
|
+
i.value && (d.value = jt(i.value));
|
|
5059
5078
|
}), (s, c) => {
|
|
5060
5079
|
const f = Q("t-time-picker"), p = Q("t-tooltip");
|
|
5061
5080
|
return v(), W("div", {
|
|
@@ -5108,7 +5127,7 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5108
5127
|
var S;
|
|
5109
5128
|
return (S = o.formItem) == null ? void 0 : S.itemType;
|
|
5110
5129
|
});
|
|
5111
|
-
const a =
|
|
5130
|
+
const a = q(o.modelValue);
|
|
5112
5131
|
De(
|
|
5113
5132
|
() => o.modelValue,
|
|
5114
5133
|
() => {
|
|
@@ -5119,7 +5138,7 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5119
5138
|
immediate: !0
|
|
5120
5139
|
}
|
|
5121
5140
|
);
|
|
5122
|
-
const l =
|
|
5141
|
+
const l = q("simple"), r = tl();
|
|
5123
5142
|
Ue(() => {
|
|
5124
5143
|
});
|
|
5125
5144
|
const u = {
|
|
@@ -5136,11 +5155,11 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5136
5155
|
}, c = (S) => {
|
|
5137
5156
|
d("update:modelValue", S.getHtml());
|
|
5138
5157
|
}, f = (S) => {
|
|
5139
|
-
}, p =
|
|
5158
|
+
}, p = q(!1), y = (S) => {
|
|
5140
5159
|
p.value = !0;
|
|
5141
5160
|
}, N = (S) => {
|
|
5142
5161
|
p.value = !1, o.originValue != S.getHtml() && d("blur:modelValue", S.getHtml());
|
|
5143
|
-
},
|
|
5162
|
+
}, R = () => {
|
|
5144
5163
|
const S = r.value;
|
|
5145
5164
|
S != null && S.disable();
|
|
5146
5165
|
}, E = () => {
|
|
@@ -5150,7 +5169,7 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5150
5169
|
return De(
|
|
5151
5170
|
() => o.disabled,
|
|
5152
5171
|
() => {
|
|
5153
|
-
o.disabled ?
|
|
5172
|
+
o.disabled ? R() : E();
|
|
5154
5173
|
}
|
|
5155
5174
|
), Tt(() => {
|
|
5156
5175
|
d("update:modelValue", "");
|
|
@@ -5190,10 +5209,10 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5190
5209
|
},
|
|
5191
5210
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
5192
5211
|
setup(n, { emit: e }) {
|
|
5193
|
-
const { T: t } =
|
|
5212
|
+
const { T: t } = Me(), o = n, a = V(() => {
|
|
5194
5213
|
var f;
|
|
5195
5214
|
return (f = o.formItem) == null ? void 0 : f.itemType;
|
|
5196
|
-
}), l =
|
|
5215
|
+
}), l = q(o.modelValue);
|
|
5197
5216
|
De(
|
|
5198
5217
|
() => o.modelValue,
|
|
5199
5218
|
() => {
|
|
@@ -5232,7 +5251,7 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5232
5251
|
return Tt(() => {
|
|
5233
5252
|
u(Ge(a.value));
|
|
5234
5253
|
}), (f, p) => {
|
|
5235
|
-
const y = Q("t-button"), N = Q("t-input"),
|
|
5254
|
+
const y = Q("t-button"), N = Q("t-input"), R = Q("t-input-group"), E = Q("t-space");
|
|
5236
5255
|
return v(), $(E, null, {
|
|
5237
5256
|
default: k(() => [
|
|
5238
5257
|
l.value.length == 0 ? (v(), $(y, {
|
|
@@ -5249,7 +5268,7 @@ const Cs = /* @__PURE__ */ ue({
|
|
|
5249
5268
|
direction: "vertical"
|
|
5250
5269
|
}, {
|
|
5251
5270
|
default: k(() => [
|
|
5252
|
-
(v(!0), W(de, null, Se(l.value, (S, L) => (v(), $(
|
|
5271
|
+
(v(!0), W(de, null, Se(l.value, (S, L) => (v(), $(R, { key: L }, {
|
|
5253
5272
|
default: k(() => [
|
|
5254
5273
|
F(N, {
|
|
5255
5274
|
style: { width: "200px" },
|
|
@@ -5297,7 +5316,7 @@ function so(n = {}) {
|
|
|
5297
5316
|
if (!We(o) && o !== 1) {
|
|
5298
5317
|
let l, r;
|
|
5299
5318
|
try {
|
|
5300
|
-
return l = mt.render(o, { form: n.formModel.value }), r =
|
|
5319
|
+
return l = mt.render(o, { form: n.formModel.value }), r = Qn(l, { form: n.formModel.value }), r;
|
|
5301
5320
|
} catch (u) {
|
|
5302
5321
|
console.error(o, u.message);
|
|
5303
5322
|
}
|
|
@@ -5308,7 +5327,7 @@ function so(n = {}) {
|
|
|
5308
5327
|
if (!We(o) && o !== 0) {
|
|
5309
5328
|
let l, r;
|
|
5310
5329
|
try {
|
|
5311
|
-
l = mt.render(o, { form: n.formModel.value }), r =
|
|
5330
|
+
l = mt.render(o, { form: n.formModel.value }), r = Qn(l, { form: n.formModel.value });
|
|
5312
5331
|
} catch (u) {
|
|
5313
5332
|
console.error(o, u.message);
|
|
5314
5333
|
}
|
|
@@ -5332,11 +5351,11 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5332
5351
|
},
|
|
5333
5352
|
emits: ["after-update-value"],
|
|
5334
5353
|
setup(n, { expose: e, emit: t }) {
|
|
5335
|
-
const { T: o, localLanguage: a } =
|
|
5354
|
+
const { T: o, localLanguage: a } = Me(), l = n, r = V(() => l.formModel), { handleItemShowIf: u, handleItemDisableIf: i } = so({ formModel: r }), d = t;
|
|
5336
5355
|
function s(m, w) {
|
|
5337
5356
|
d("after-update-value", m, w);
|
|
5338
5357
|
}
|
|
5339
|
-
const c = V(() => l.formItem.disableIf ? i(l.formItem.disableIf, l.formItem) : !1), f =
|
|
5358
|
+
const c = V(() => l.formItem.disableIf ? i(l.formItem.disableIf, l.formItem) : !1), f = q(!0);
|
|
5340
5359
|
function p() {
|
|
5341
5360
|
return c.value;
|
|
5342
5361
|
}
|
|
@@ -5345,7 +5364,7 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5345
5364
|
}
|
|
5346
5365
|
const N = V(
|
|
5347
5366
|
() => l.formItem.keyName ? l.formItem.keyName : l.formItem.name
|
|
5348
|
-
),
|
|
5367
|
+
), R = V(() => {
|
|
5349
5368
|
switch (l.formItem.itemType) {
|
|
5350
5369
|
case "text_input":
|
|
5351
5370
|
case "rich_text":
|
|
@@ -5368,7 +5387,7 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5368
5387
|
if (l.formItem.placeholder && l.formItem.placeholder !== "")
|
|
5369
5388
|
return l.formItem.placeholder;
|
|
5370
5389
|
const m = l.formItem.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "");
|
|
5371
|
-
return m !== "" ? `${
|
|
5390
|
+
return m !== "" ? `${R.value}${m}` : "";
|
|
5372
5391
|
});
|
|
5373
5392
|
e({
|
|
5374
5393
|
formItem: l.formItem,
|
|
@@ -5376,14 +5395,14 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5376
5395
|
getDisableFlag: p,
|
|
5377
5396
|
setBlockShowFlag: y
|
|
5378
5397
|
});
|
|
5379
|
-
const S = V(() => l.formItem.name.replace(/:|:/, "")), L =
|
|
5398
|
+
const S = V(() => l.formItem.name.replace(/:|:/, "")), L = q(), _ = q(!1), I = q(0);
|
|
5380
5399
|
return Ue(() => {
|
|
5381
5400
|
if (L.value && l.isLabelNameShow) {
|
|
5382
5401
|
I.value = L.value.parentElement.parentElement.clientWidth;
|
|
5383
5402
|
const m = L.value.clientWidth;
|
|
5384
5403
|
m && m && m - I.value > -15 && (_.value = !0);
|
|
5385
5404
|
}
|
|
5386
|
-
}), At(
|
|
5405
|
+
}), At(Dn, l.componentProps), (m, w) => {
|
|
5387
5406
|
const M = Q("t-divider"), U = Q("t-tooltip"), P = Q("t-form-item");
|
|
5388
5407
|
return v(), W("div", {
|
|
5389
5408
|
ref: "formItemRef",
|
|
@@ -5441,7 +5460,7 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5441
5460
|
formModel: r.value,
|
|
5442
5461
|
modelValue: h(fe)(r.value, m.formItem.keyName)
|
|
5443
5462
|
}, null, 8, ["formItem", "formModel", "modelValue"])) : X("", !0),
|
|
5444
|
-
m.formItem.itemType === "text_input" && m.formItem.inputType != "RE_PASSWORD" ? (v(), $(
|
|
5463
|
+
m.formItem.itemType === "text_input" && m.formItem.inputType != "RE_PASSWORD" ? (v(), $(Jn, Ee({ key: 1 }, m.componentProps, {
|
|
5445
5464
|
formItem: m.formItem,
|
|
5446
5465
|
inputType: (x = (C = m.formItem) == null ? void 0 : C.inputType) == null ? void 0 : x.toLowerCase(),
|
|
5447
5466
|
modelValue: h(fe)(r.value, m.formItem.keyName),
|
|
@@ -5449,7 +5468,7 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5449
5468
|
disabled: c.value,
|
|
5450
5469
|
"onUpdate:modelValue": w[0] || (w[0] = (T) => s(m.formItem.keyName, T))
|
|
5451
5470
|
}), null, 16, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : X("", !0),
|
|
5452
|
-
m.formItem.itemType === "text_input" && m.formItem.inputType == "RE_PASSWORD" ? (v(), $(
|
|
5471
|
+
m.formItem.itemType === "text_input" && m.formItem.inputType == "RE_PASSWORD" ? (v(), $(Jn, Ee({ key: 2 }, m.componentProps, {
|
|
5453
5472
|
formItem: m.formItem,
|
|
5454
5473
|
inputType: m.formItem.inputType.toLowerCase(),
|
|
5455
5474
|
modelValue: h(fe)(r.value, "rePassword"),
|
|
@@ -5554,7 +5573,7 @@ const _s = ["id"], Is = /* @__PURE__ */ ue({
|
|
|
5554
5573
|
};
|
|
5555
5574
|
}
|
|
5556
5575
|
});
|
|
5557
|
-
const
|
|
5576
|
+
const Cn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id"], Ea = /* @__PURE__ */ ue({
|
|
5558
5577
|
__name: "GFormBlock",
|
|
5559
5578
|
props: {
|
|
5560
5579
|
name: {},
|
|
@@ -5563,11 +5582,11 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5563
5582
|
},
|
|
5564
5583
|
emits: ["block-show-if-change"],
|
|
5565
5584
|
setup(n, { emit: e }) {
|
|
5566
|
-
const t = n, o =
|
|
5585
|
+
const t = n, o = q("");
|
|
5567
5586
|
function a() {
|
|
5568
5587
|
o.value = t.blockType == "block_start" && !t.showIf ? `block_NotShow_start_${t.name}` : t.blockType == "block_start" && t.showIf ? `block_Show_${t.name}` : `block_end_${t.name}`;
|
|
5569
5588
|
}
|
|
5570
|
-
const l =
|
|
5589
|
+
const l = q(), r = e;
|
|
5571
5590
|
function u() {
|
|
5572
5591
|
const i = l.value, d = !!(t.blockType == "block_start" && t.showIf);
|
|
5573
5592
|
let s = [];
|
|
@@ -5601,24 +5620,24 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5601
5620
|
},
|
|
5602
5621
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
5603
5622
|
setup(n, { expose: e, emit: t }) {
|
|
5604
|
-
const { T: o } =
|
|
5623
|
+
const { T: o } = Me(), a = n, l = V(() => "280px"), r = V(() => {
|
|
5605
5624
|
var P;
|
|
5606
5625
|
return (P = a.board) == null ? void 0 : P.formItems;
|
|
5607
|
-
}), u =
|
|
5626
|
+
}), u = q({}), { handleItemShowIf: i } = so({ formModel: u });
|
|
5608
5627
|
De(
|
|
5609
5628
|
() => a.formData,
|
|
5610
5629
|
() => {
|
|
5611
|
-
u.value =
|
|
5630
|
+
u.value = Ln(a.formData, r.value);
|
|
5612
5631
|
},
|
|
5613
5632
|
{
|
|
5614
5633
|
immediate: !0,
|
|
5615
5634
|
deep: !0
|
|
5616
5635
|
}
|
|
5617
5636
|
);
|
|
5618
|
-
const d =
|
|
5637
|
+
const d = q(), s = V(() => {
|
|
5619
5638
|
var P;
|
|
5620
5639
|
return (P = d.value) == null ? void 0 : P.tFormRef;
|
|
5621
|
-
}), c =
|
|
5640
|
+
}), c = q({});
|
|
5622
5641
|
async function f() {
|
|
5623
5642
|
let P = [];
|
|
5624
5643
|
return p.value && (P = p == null ? void 0 : p.value.map((C) => {
|
|
@@ -5626,7 +5645,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5626
5645
|
return x.required && x.keyName && D.push({
|
|
5627
5646
|
validator: () => {
|
|
5628
5647
|
const A = fe(u.value, x.keyName);
|
|
5629
|
-
return
|
|
5648
|
+
return Tn(A) ? {
|
|
5630
5649
|
result: !1,
|
|
5631
5650
|
message: `${x.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
5632
5651
|
} : { result: !0 };
|
|
@@ -5649,7 +5668,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5649
5668
|
};
|
|
5650
5669
|
})), P == null ? void 0 : P.reduce((C, x) => (x.rules.length && (C[x.keyName] = x.rules), C), {});
|
|
5651
5670
|
}
|
|
5652
|
-
const p =
|
|
5671
|
+
const p = q(), y = q();
|
|
5653
5672
|
function N(P, C, x) {
|
|
5654
5673
|
p.value && p.value.forEach((D) => {
|
|
5655
5674
|
D.formItemId && C.includes(D.formItemId) && D.$el.classList.contains(P) && D.setBlockShowFlag(x);
|
|
@@ -5658,7 +5677,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5658
5677
|
Ue(async () => {
|
|
5659
5678
|
c.value = await f();
|
|
5660
5679
|
});
|
|
5661
|
-
function
|
|
5680
|
+
function R(P, C) {
|
|
5662
5681
|
je(u.value, P, C), s.value && E([P]);
|
|
5663
5682
|
}
|
|
5664
5683
|
async function E(P = []) {
|
|
@@ -5690,7 +5709,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5690
5709
|
return null;
|
|
5691
5710
|
}
|
|
5692
5711
|
function w(P) {
|
|
5693
|
-
let C =
|
|
5712
|
+
let C = In(P);
|
|
5694
5713
|
const x = Object.keys(C);
|
|
5695
5714
|
if (r.value && x.length) {
|
|
5696
5715
|
const D = r.value.filter((T) => T.itemType == "file" && T.fileUploadType == "path").map((T) => T.keyName);
|
|
@@ -5742,7 +5761,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5742
5761
|
}
|
|
5743
5762
|
}
|
|
5744
5763
|
}
|
|
5745
|
-
const U =
|
|
5764
|
+
const U = q(!1);
|
|
5746
5765
|
return e({
|
|
5747
5766
|
formOkButtonLoading: U
|
|
5748
5767
|
}), (P, C) => {
|
|
@@ -5770,7 +5789,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5770
5789
|
blockType: D.itemType,
|
|
5771
5790
|
showIf: h(i)(D.showIf),
|
|
5772
5791
|
onBlockShowIfChange: N
|
|
5773
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (v(), $(
|
|
5792
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (v(), $(Cn, {
|
|
5774
5793
|
key: 1,
|
|
5775
5794
|
ref_for: !0,
|
|
5776
5795
|
ref_key: "formItemRef",
|
|
@@ -5778,7 +5797,7 @@ const kn = /* @__PURE__ */ ht(Is, [["__scopeId", "data-v-9b1bb63e"]]), Ls = ["id
|
|
|
5778
5797
|
formModel: u.value,
|
|
5779
5798
|
formItem: D,
|
|
5780
5799
|
viewName: P.viewName,
|
|
5781
|
-
onAfterUpdateValue:
|
|
5800
|
+
onAfterUpdateValue: R
|
|
5782
5801
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
5783
5802
|
], 64))), 128))
|
|
5784
5803
|
]),
|
|
@@ -5833,7 +5852,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5833
5852
|
},
|
|
5834
5853
|
emits: ["close-dialog"],
|
|
5835
5854
|
setup(n, { emit: e }) {
|
|
5836
|
-
const t =
|
|
5855
|
+
const t = Yo(() => Promise.resolve().then(() => Ga)), { T: o } = Me(), a = st(), l = n, r = V(() => {
|
|
5837
5856
|
var L, _, I;
|
|
5838
5857
|
return (L = l.board) != null && L.data ? (_ = l.board) == null ? void 0 : _.data.dataId : (I = l.board) != null && I.tableData ? l.board.tableData.dataId : null;
|
|
5839
5858
|
}), u = V(() => {
|
|
@@ -5854,7 +5873,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5854
5873
|
function c() {
|
|
5855
5874
|
s("close-dialog");
|
|
5856
5875
|
}
|
|
5857
|
-
const f =
|
|
5876
|
+
const f = q();
|
|
5858
5877
|
async function p(L, _) {
|
|
5859
5878
|
f.value && (f.value.formOkButtonLoading || (f.value.formOkButtonLoading = !0));
|
|
5860
5879
|
let I = {};
|
|
@@ -5870,7 +5889,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5870
5889
|
function N() {
|
|
5871
5890
|
s("close-dialog");
|
|
5872
5891
|
}
|
|
5873
|
-
const
|
|
5892
|
+
const R = q({}), E = q(!1);
|
|
5874
5893
|
async function S() {
|
|
5875
5894
|
try {
|
|
5876
5895
|
if (E.value = !0, !lt(r.value) && !lt(l.viewName)) {
|
|
@@ -5879,9 +5898,9 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5879
5898
|
viewName: l.viewName,
|
|
5880
5899
|
props: i.value
|
|
5881
5900
|
});
|
|
5882
|
-
L.state === 200 && L.data && (
|
|
5901
|
+
L.state === 200 && L.data && (R.value = L.data);
|
|
5883
5902
|
}
|
|
5884
|
-
lt(r.value) && (
|
|
5903
|
+
lt(r.value) && (R.value = { ...i.value });
|
|
5885
5904
|
} catch (L) {
|
|
5886
5905
|
console.warn("getViewDataApi", L);
|
|
5887
5906
|
} finally {
|
|
@@ -5912,7 +5931,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5912
5931
|
viewName: L.viewName,
|
|
5913
5932
|
board: L.board,
|
|
5914
5933
|
dialogProps: L.dialogProps,
|
|
5915
|
-
formData:
|
|
5934
|
+
formData: R.value,
|
|
5916
5935
|
onConfirmForm: p,
|
|
5917
5936
|
onConfirmAndClose: y,
|
|
5918
5937
|
onCloseDialog: N
|
|
@@ -5933,8 +5952,8 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5933
5952
|
},
|
|
5934
5953
|
emits: ["update:isDialogVisible", "close-dialog"],
|
|
5935
5954
|
setup(n, { emit: e }) {
|
|
5936
|
-
const { T: t } =
|
|
5937
|
-
|
|
5955
|
+
const { T: t } = Me();
|
|
5956
|
+
Yo(() => Promise.resolve().then(() => Ga));
|
|
5938
5957
|
const o = n, a = e, l = lo(), r = V(() => o.dialogViewInfo.view), u = V(() => o.dialogViewInfo.name), i = V(() => {
|
|
5939
5958
|
var S;
|
|
5940
5959
|
return ((S = o.dialogViewBoard) == null ? void 0 : S.boardType) ?? "default";
|
|
@@ -5968,9 +5987,9 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5968
5987
|
L = `${location.origin}/${_}`;
|
|
5969
5988
|
}
|
|
5970
5989
|
return o.dialogViewInfo.link ? L : "";
|
|
5971
|
-
}), N =
|
|
5990
|
+
}), N = q(), R = q(!0);
|
|
5972
5991
|
function E() {
|
|
5973
|
-
|
|
5992
|
+
R.value = !1;
|
|
5974
5993
|
}
|
|
5975
5994
|
return (S, L) => {
|
|
5976
5995
|
const _ = Q("t-loading");
|
|
@@ -5986,7 +6005,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
5986
6005
|
}, {
|
|
5987
6006
|
body: k(() => [
|
|
5988
6007
|
F(_, {
|
|
5989
|
-
loading: S.dialogType === "iframe" &&
|
|
6008
|
+
loading: S.dialogType === "iframe" && R.value,
|
|
5990
6009
|
size: "medium",
|
|
5991
6010
|
text: `${h(t).t("加载中")}`
|
|
5992
6011
|
}, {
|
|
@@ -6017,7 +6036,7 @@ const Ds = /* @__PURE__ */ ue({
|
|
|
6017
6036
|
};
|
|
6018
6037
|
}
|
|
6019
6038
|
});
|
|
6020
|
-
const As =
|
|
6039
|
+
const As = qe(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs = { class: "title" }, Ps = /* @__PURE__ */ ue({
|
|
6021
6040
|
__name: "GForm",
|
|
6022
6041
|
props: {
|
|
6023
6042
|
viewName: {},
|
|
@@ -6026,36 +6045,36 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6026
6045
|
},
|
|
6027
6046
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
6028
6047
|
setup(n, { expose: e, emit: t }) {
|
|
6029
|
-
const { T: o } =
|
|
6048
|
+
const { T: o } = Me(), a = Sn(), l = Ct(), r = ze(ca, ""), u = n, i = V(() => "280px"), d = V(() => {
|
|
6030
6049
|
var B;
|
|
6031
6050
|
return (B = u.board) == null ? void 0 : B.formItems;
|
|
6032
|
-
}), s =
|
|
6051
|
+
}), s = q({}), { handleItemShowIf: c } = so({ formModel: s }), f = st();
|
|
6033
6052
|
function p() {
|
|
6034
6053
|
const B = a.getFormData(f.fullPath);
|
|
6035
6054
|
B && Object.keys(B).length && Object.keys(s.value).forEach((g) => {
|
|
6036
|
-
|
|
6055
|
+
Tn(B[g]) || (s.value[g] = B[g]);
|
|
6037
6056
|
});
|
|
6038
6057
|
}
|
|
6039
6058
|
function y(B) {
|
|
6040
6059
|
if (l.findExistTabMenuItem({ path: B }) && Object.keys(s.value).length) {
|
|
6041
|
-
const b =
|
|
6060
|
+
const b = ia(s.value, u.formData);
|
|
6042
6061
|
b && Object.keys(b).length && a.setFormData(B, b);
|
|
6043
6062
|
}
|
|
6044
6063
|
}
|
|
6045
6064
|
De(
|
|
6046
6065
|
() => u.formData,
|
|
6047
6066
|
() => {
|
|
6048
|
-
s.value =
|
|
6067
|
+
s.value = Ln(u.formData, d.value), p();
|
|
6049
6068
|
},
|
|
6050
6069
|
{
|
|
6051
6070
|
immediate: !0,
|
|
6052
6071
|
deep: !0
|
|
6053
6072
|
}
|
|
6054
6073
|
);
|
|
6055
|
-
const N =
|
|
6074
|
+
const N = q(), R = V(() => {
|
|
6056
6075
|
var B;
|
|
6057
6076
|
return (B = N.value) == null ? void 0 : B.tFormRef;
|
|
6058
|
-
}), E =
|
|
6077
|
+
}), E = q({});
|
|
6059
6078
|
async function S() {
|
|
6060
6079
|
let B = [];
|
|
6061
6080
|
return L.value && (B = L == null ? void 0 : L.value.map((g) => {
|
|
@@ -6063,7 +6082,7 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6063
6082
|
return b.required && b.keyName && z.push({
|
|
6064
6083
|
validator: () => {
|
|
6065
6084
|
const G = fe(s.value, b.keyName);
|
|
6066
|
-
return
|
|
6085
|
+
return Tn(G) ? {
|
|
6067
6086
|
result: !1,
|
|
6068
6087
|
message: `${b.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "")}${o.t("为必填项")}`
|
|
6069
6088
|
} : { result: !0 };
|
|
@@ -6086,7 +6105,7 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6086
6105
|
};
|
|
6087
6106
|
})), B == null ? void 0 : B.reduce((g, b) => (b.rules.length && (g[b.keyName] = b.rules), g), {});
|
|
6088
6107
|
}
|
|
6089
|
-
const L =
|
|
6108
|
+
const L = q(), _ = q();
|
|
6090
6109
|
function I(B, g, b) {
|
|
6091
6110
|
L.value && L.value.forEach((z) => {
|
|
6092
6111
|
z.formItemId && g.includes(z.formItemId) && z.$el.classList.contains(B) && z.setBlockShowFlag(b);
|
|
@@ -6096,12 +6115,12 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6096
6115
|
E.value = await S();
|
|
6097
6116
|
});
|
|
6098
6117
|
function m(B, g) {
|
|
6099
|
-
je(s.value, B, g),
|
|
6118
|
+
je(s.value, B, g), R.value && w([B]);
|
|
6100
6119
|
}
|
|
6101
6120
|
async function w(B = []) {
|
|
6102
6121
|
var z;
|
|
6103
6122
|
const g = M();
|
|
6104
|
-
return (B.length ? B.some((G) => g.includes(G)) : !0) ? (z =
|
|
6123
|
+
return (B.length ? B.some((G) => g.includes(G)) : !0) ? (z = R.value) == null ? void 0 : z.validate({
|
|
6105
6124
|
fields: B.length ? B : g
|
|
6106
6125
|
}) : Promise.resolve({});
|
|
6107
6126
|
}
|
|
@@ -6127,7 +6146,7 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6127
6146
|
return null;
|
|
6128
6147
|
}
|
|
6129
6148
|
function D(B) {
|
|
6130
|
-
let g =
|
|
6149
|
+
let g = In(B);
|
|
6131
6150
|
const b = Object.keys(g);
|
|
6132
6151
|
if (d.value && b.length) {
|
|
6133
6152
|
const z = d.value.filter((H) => H.itemType == "file" && H.fileUploadType == "path").map((H) => H.keyName);
|
|
@@ -6179,7 +6198,7 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6179
6198
|
}
|
|
6180
6199
|
}
|
|
6181
6200
|
}
|
|
6182
|
-
const T =
|
|
6201
|
+
const T = q(!1);
|
|
6183
6202
|
return e({
|
|
6184
6203
|
formOkButtonLoading: T
|
|
6185
6204
|
}), V(() => l.tabMenuList), Qo((B, g) => {
|
|
@@ -6257,7 +6276,7 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6257
6276
|
blockType: G.itemType,
|
|
6258
6277
|
showIf: h(c)(G.showIf),
|
|
6259
6278
|
onBlockShowIfChange: I
|
|
6260
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (v(), $(
|
|
6279
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (v(), $(Cn, {
|
|
6261
6280
|
key: 1,
|
|
6262
6281
|
ref_for: !0,
|
|
6263
6282
|
ref_key: "formItemRef",
|
|
@@ -6275,17 +6294,17 @@ const As = Ye(Es), Fs = { class: "g-form" }, $s = { class: "g-form-header" }, Bs
|
|
|
6275
6294
|
};
|
|
6276
6295
|
}
|
|
6277
6296
|
});
|
|
6278
|
-
const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs =
|
|
6297
|
+
const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = qe(xs), Os = /* @__PURE__ */ ue({
|
|
6279
6298
|
__name: "GHeaderUpload",
|
|
6280
6299
|
props: {
|
|
6281
6300
|
button: {},
|
|
6282
6301
|
viewName: {}
|
|
6283
6302
|
},
|
|
6284
6303
|
setup(n) {
|
|
6285
|
-
const { T: e } =
|
|
6304
|
+
const { T: e } = Me(), t = n;
|
|
6286
6305
|
function o(i) {
|
|
6287
6306
|
var s, c;
|
|
6288
|
-
const d =
|
|
6307
|
+
const d = In(i);
|
|
6289
6308
|
if (((s = t.button) == null ? void 0 : s.fileUploadType) == "file") {
|
|
6290
6309
|
if (d.length && d.every((f) => f.status == "done")) {
|
|
6291
6310
|
const { response: f, filename: p, url: y } = d[0];
|
|
@@ -6322,7 +6341,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6322
6341
|
}
|
|
6323
6342
|
return (i, d) => {
|
|
6324
6343
|
var s, c, f;
|
|
6325
|
-
return v(), $(h(
|
|
6344
|
+
return v(), $(h(Zn), Ee({
|
|
6326
6345
|
limit: 1,
|
|
6327
6346
|
multiple: !1,
|
|
6328
6347
|
showFileList: !1,
|
|
@@ -6360,7 +6379,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6360
6379
|
}) {
|
|
6361
6380
|
const {
|
|
6362
6381
|
T: t
|
|
6363
|
-
} =
|
|
6382
|
+
} = Me(), o = n, a = e, l = V(() => {
|
|
6364
6383
|
var _;
|
|
6365
6384
|
return ((_ = o.headerInfo) == null ? void 0 : _.buttons) || [];
|
|
6366
6385
|
});
|
|
@@ -6376,8 +6395,8 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6376
6395
|
}), d = V(() => {
|
|
6377
6396
|
var _;
|
|
6378
6397
|
return kt((_ = o.headerInfo.searchBar) == null ? void 0 : _.filters) ? o.headerInfo.searchBar.filters.filter((I) => I.itemType === "text_input") : [];
|
|
6379
|
-
}), s =
|
|
6380
|
-
let f =
|
|
6398
|
+
}), s = Ln({}, u.value), c = q(Ze(s));
|
|
6399
|
+
let f = q(0);
|
|
6381
6400
|
function p(_, I) {
|
|
6382
6401
|
je(c.value, _, I), f.value && clearTimeout(f.value), f.value = setTimeout(() => {
|
|
6383
6402
|
Object.keys(c.value).forEach((m) => {
|
|
@@ -6397,7 +6416,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6397
6416
|
je(c.value, _, "");
|
|
6398
6417
|
}), a("header-filter-change", c.value);
|
|
6399
6418
|
}
|
|
6400
|
-
const
|
|
6419
|
+
const R = V(() => o.tableColumns && o.tableColumns.length ? o.tableColumns.map((_, I) => ({
|
|
6401
6420
|
disabled: I == 0 || I == o.tableColumns.length - 1,
|
|
6402
6421
|
label: _.title,
|
|
6403
6422
|
value: _.colKey
|
|
@@ -6405,7 +6424,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6405
6424
|
function E(_) {
|
|
6406
6425
|
a("display-columns-change", _);
|
|
6407
6426
|
}
|
|
6408
|
-
const S = st(), L =
|
|
6427
|
+
const S = st(), L = Sn();
|
|
6409
6428
|
return Ue(() => {
|
|
6410
6429
|
const _ = L.getFormData(S.fullPath);
|
|
6411
6430
|
_ != null && _.formData && (c.value = {
|
|
@@ -6437,7 +6456,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6437
6456
|
}, {
|
|
6438
6457
|
default: k(() => [(v(!0), W(de, null, Se(i.value, (M, U) => (v(), W("div", {
|
|
6439
6458
|
key: U
|
|
6440
|
-
}, [F(
|
|
6459
|
+
}, [F(Cn, {
|
|
6441
6460
|
formItem: M,
|
|
6442
6461
|
formModel: c.value,
|
|
6443
6462
|
viewName: _.viewName,
|
|
@@ -6451,7 +6470,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6451
6470
|
}, {
|
|
6452
6471
|
default: k(() => [(v(!0), W(de, null, Se(d.value, (M, U) => (v(), W("div", {
|
|
6453
6472
|
key: U
|
|
6454
|
-
}, [F(
|
|
6473
|
+
}, [F(Cn, {
|
|
6455
6474
|
formItem: M,
|
|
6456
6475
|
formModel: c.value,
|
|
6457
6476
|
viewName: _.viewName,
|
|
@@ -6465,7 +6484,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6465
6484
|
default: k(() => [re(te(h(t).t("重置")), 1)]),
|
|
6466
6485
|
_: 1
|
|
6467
6486
|
}), F(h(us), {
|
|
6468
|
-
columnOptions:
|
|
6487
|
+
columnOptions: R.value,
|
|
6469
6488
|
displayColumns: _.displayColumns,
|
|
6470
6489
|
onConfirm: E
|
|
6471
6490
|
}, null, 8, ["columnOptions", "displayColumns"])]),
|
|
@@ -6474,7 +6493,7 @@ const xs = /* @__PURE__ */ ht(Ps, [["__scopeId", "data-v-24093af1"]]), Vs = Ye(x
|
|
|
6474
6493
|
};
|
|
6475
6494
|
}
|
|
6476
6495
|
});
|
|
6477
|
-
const zs = /* @__PURE__ */ ht(js, [["__scopeId", "data-v-fcd955b9"]]), Gs =
|
|
6496
|
+
const zs = /* @__PURE__ */ ht(js, [["__scopeId", "data-v-fcd955b9"]]), Gs = qe(zs), Hs = /* @__PURE__ */ ue({
|
|
6478
6497
|
__name: "GTableForm",
|
|
6479
6498
|
props: {
|
|
6480
6499
|
col: {},
|
|
@@ -6484,17 +6503,17 @@ const zs = /* @__PURE__ */ ht(js, [["__scopeId", "data-v-fcd955b9"]]), Gs = Ye(z
|
|
|
6484
6503
|
},
|
|
6485
6504
|
emits: ["blur"],
|
|
6486
6505
|
setup(n, { emit: e }) {
|
|
6487
|
-
const { T: t } =
|
|
6506
|
+
const { T: t } = Me(), o = `${xt}__form`, a = n, l = e, r = V(() => {
|
|
6488
6507
|
var s;
|
|
6489
6508
|
return (s = a.col) == null ? void 0 : s.formItems;
|
|
6490
|
-
}), u = V(() =>
|
|
6509
|
+
}), u = V(() => Ln(a.row, r.value));
|
|
6491
6510
|
function i(s, c) {
|
|
6492
6511
|
je(u.value, s, c);
|
|
6493
6512
|
}
|
|
6494
6513
|
function d(s, c) {
|
|
6495
6514
|
l("blur", s, u.value);
|
|
6496
6515
|
}
|
|
6497
|
-
return At(
|
|
6516
|
+
return At(Dn, {}), (s, c) => (v(), W("div", {
|
|
6498
6517
|
class: Z(`${o}`)
|
|
6499
6518
|
}, [
|
|
6500
6519
|
(v(!0), W(de, null, Se(r.value, (f) => {
|
|
@@ -6508,7 +6527,7 @@ const zs = /* @__PURE__ */ ht(js, [["__scopeId", "data-v-fcd955b9"]]), Gs = Ye(z
|
|
|
6508
6527
|
formItem: f,
|
|
6509
6528
|
formModel: u.value
|
|
6510
6529
|
}, null, 8, ["modelValue", "formItem", "formModel"])) : X("", !0),
|
|
6511
|
-
f.itemType == "text_input" ? (v(), $(
|
|
6530
|
+
f.itemType == "text_input" ? (v(), $(Jn, {
|
|
6512
6531
|
key: 1,
|
|
6513
6532
|
formItem: f,
|
|
6514
6533
|
viewName: s.viewName,
|
|
@@ -6597,7 +6616,7 @@ const zs = /* @__PURE__ */ ht(js, [["__scopeId", "data-v-fcd955b9"]]), Gs = Ye(z
|
|
|
6597
6616
|
], 2));
|
|
6598
6617
|
}
|
|
6599
6618
|
});
|
|
6600
|
-
function
|
|
6619
|
+
function Rn(n) {
|
|
6601
6620
|
return n === "" ? n : n === "true" || n == "1";
|
|
6602
6621
|
}
|
|
6603
6622
|
function Ks(n, e) {
|
|
@@ -6804,8 +6823,8 @@ var Nt = {
|
|
|
6804
6823
|
posix: null
|
|
6805
6824
|
};
|
|
6806
6825
|
Nt.posix = Nt;
|
|
6807
|
-
const
|
|
6808
|
-
class
|
|
6826
|
+
const qs = Nt.extname, Aa = Nt.basename;
|
|
6827
|
+
class Ys {
|
|
6809
6828
|
constructor() {
|
|
6810
6829
|
let e = (() => typeof global > "u")(), t = "image/png", o = "image/jpeg", a = "image/jpeg", l = "image/webp", r = "application/pdf", u = "image/svg+xml";
|
|
6811
6830
|
Object.assign(this, {
|
|
@@ -6834,7 +6853,7 @@ function Qs(n, {
|
|
|
6834
6853
|
outline: i,
|
|
6835
6854
|
archive: p
|
|
6836
6855
|
} = {}) {
|
|
6837
|
-
var { fromMime: s, toMime: c, expected: f } = new
|
|
6856
|
+
var { fromMime: s, toMime: c, expected: f } = new Ys(), p = p || "canvas", y = N || t.replace(/@\d+x$/i, "") || qs(e), N = s(c(y) || y), R = c(N), E = n.length;
|
|
6838
6857
|
if (!y)
|
|
6839
6858
|
throw new Error(
|
|
6840
6859
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
@@ -6865,7 +6884,7 @@ function Qs(n, {
|
|
|
6865
6884
|
filename: e,
|
|
6866
6885
|
pattern: _,
|
|
6867
6886
|
format: N,
|
|
6868
|
-
mime:
|
|
6887
|
+
mime: R,
|
|
6869
6888
|
pages: n,
|
|
6870
6889
|
padding: S,
|
|
6871
6890
|
quality: l,
|
|
@@ -6875,9 +6894,9 @@ function Qs(n, {
|
|
|
6875
6894
|
archive: p
|
|
6876
6895
|
};
|
|
6877
6896
|
}
|
|
6878
|
-
class
|
|
6897
|
+
class En {
|
|
6879
6898
|
static for(e) {
|
|
6880
|
-
return new
|
|
6899
|
+
return new En().append(e).get();
|
|
6881
6900
|
}
|
|
6882
6901
|
constructor() {
|
|
6883
6902
|
this.crc = -1;
|
|
@@ -6891,7 +6910,7 @@ class Nn {
|
|
|
6891
6910
|
return this.crc = t, this;
|
|
6892
6911
|
}
|
|
6893
6912
|
}
|
|
6894
|
-
|
|
6913
|
+
En.prototype.table = (() => {
|
|
6895
6914
|
var n, e, t, o = [];
|
|
6896
6915
|
for (n = 0; n < 256; n++) {
|
|
6897
6916
|
for (t = n, e = 0; e < 8; e++)
|
|
@@ -6900,7 +6919,7 @@ Nn.prototype.table = (() => {
|
|
|
6900
6919
|
}
|
|
6901
6920
|
return o;
|
|
6902
6921
|
})();
|
|
6903
|
-
function
|
|
6922
|
+
function jn(n) {
|
|
6904
6923
|
let e = new Uint8Array(n), t = new DataView(e.buffer), o = {
|
|
6905
6924
|
array: e,
|
|
6906
6925
|
view: t,
|
|
@@ -6920,7 +6939,7 @@ function Rn(n) {
|
|
|
6920
6939
|
};
|
|
6921
6940
|
return o;
|
|
6922
6941
|
}
|
|
6923
|
-
class
|
|
6942
|
+
class An {
|
|
6924
6943
|
constructor(e) {
|
|
6925
6944
|
let t = /* @__PURE__ */ new Date();
|
|
6926
6945
|
Object.assign(this, {
|
|
@@ -6932,16 +6951,16 @@ class En {
|
|
|
6932
6951
|
}), this.add(e);
|
|
6933
6952
|
}
|
|
6934
6953
|
async add(e, t) {
|
|
6935
|
-
let o = !t, a =
|
|
6954
|
+
let o = !t, a = An.encoder.encode(`${this.directory}/${o ? "" : e}`), l = new Uint8Array(o ? 0 : await t.arrayBuffer()), r = 30 + a.length, u = r + l.length, i = 16, { offset: d } = this, s = jn(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, En.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
|
|
6936
6955
|
d += r;
|
|
6937
|
-
let c =
|
|
6956
|
+
let c = jn(r + l.length + i).set32(0, 67324752).bytes(4, s.array).bytes(30, a).bytes(r, l);
|
|
6938
6957
|
d += l.length, c.set32(u, 134695760).bytes(u + 4, s.array.slice(10, 22)), d += i, this.files.push({ offset: d, folder: o, name: a, header: s, payload: c }), this.offset = d;
|
|
6939
6958
|
}
|
|
6940
6959
|
toBuffer() {
|
|
6941
6960
|
let e = this.files.reduce(
|
|
6942
6961
|
(c, { name: f }) => 46 + f.length + c,
|
|
6943
6962
|
0
|
|
6944
|
-
), t =
|
|
6963
|
+
), t = jn(e + 22), o = 0;
|
|
6945
6964
|
for (var { offset: a, name: l, header: r, folder: u } of this.files)
|
|
6946
6965
|
t.set32(o, 33639248).set16(o + 4, 20).bytes(o + 6, r.array).set8(o + 38, u ? 16 : 0).set32(o + 42, a).bytes(o + 46, l), o += 46 + l.length;
|
|
6947
6966
|
t.set32(o, 101010256).set16(o + 8, this.files.length).set16(o + 10, this.files.length).set32(o + 12, e).set32(o + 16, this.offset);
|
|
@@ -6954,7 +6973,7 @@ class En {
|
|
|
6954
6973
|
return new Blob([this.toBuffer()], { type: "application/zip" });
|
|
6955
6974
|
}
|
|
6956
6975
|
}
|
|
6957
|
-
|
|
6976
|
+
An.encoder = new TextEncoder();
|
|
6958
6977
|
const io = (n, e, t, o) => {
|
|
6959
6978
|
if (o) {
|
|
6960
6979
|
let { width: a, height: l } = n, r = Object.assign(document.createElement("canvas"), { width: a, height: l }), u = r.getContext("2d");
|
|
@@ -6964,7 +6983,7 @@ const io = (n, e, t, o) => {
|
|
|
6964
6983
|
}, Xs = (...n) => io(...n).then((e) => e.arrayBuffer()), Zs = async (n, e, t, o, a) => {
|
|
6965
6984
|
Fa(a, await io(n, e, t, o));
|
|
6966
6985
|
}, Js = async (n, e, t, o, a, l, r) => {
|
|
6967
|
-
let u = (s) => l.replace("{}", String(s + 1).padStart(r, "0")), i = Aa(a, ".zip") || "archive", d = new
|
|
6986
|
+
let u = (s) => l.replace("{}", String(s + 1).padStart(r, "0")), i = Aa(a, ".zip") || "archive", d = new An(i);
|
|
6968
6987
|
await Promise.all(
|
|
6969
6988
|
n.map(async (s, c) => {
|
|
6970
6989
|
let f = u(c);
|
|
@@ -6979,7 +6998,7 @@ const io = (n, e, t, o) => {
|
|
|
6979
6998
|
return o.canvas;
|
|
6980
6999
|
let a = document.createElement("canvas"), l = a.getContext("2d"), r = o.canvas ? o.canvas : o;
|
|
6981
7000
|
return a.width = r.width * e, a.height = r.height * e, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(e, e), l.drawImage(r, 0, 0), a;
|
|
6982
|
-
}), ti = { asBuffer: Xs, asDownload: Zs, asZipDownload: Js, atScale: ei, options: Qs }, { asBuffer:
|
|
7001
|
+
}), ti = { asBuffer: Xs, asDownload: Zs, asZipDownload: Js, atScale: ei, options: Qs }, { asBuffer: zn, asDownload: ni, asZipDownload: oi, atScale: Gn, options: Hn } = ti, Vo = Symbol.for("toDataURL"), ai = (n) => new Promise(
|
|
6983
7002
|
(e, t) => Object.assign(new $a(), {
|
|
6984
7003
|
crossOrigin: "Anonymous",
|
|
6985
7004
|
onload: e,
|
|
@@ -6996,8 +7015,8 @@ let li = class {
|
|
|
6996
7015
|
enumerable: !0
|
|
6997
7016
|
});
|
|
6998
7017
|
for (var [l, r] of Object.entries({
|
|
6999
|
-
png: () =>
|
|
7000
|
-
jpg: () =>
|
|
7018
|
+
png: () => zn(o, "image/png"),
|
|
7019
|
+
jpg: () => zn(o, "image/jpeg"),
|
|
7001
7020
|
pages: () => a.concat(o).map((u) => u.getContext("2d"))
|
|
7002
7021
|
}))
|
|
7003
7022
|
Object.defineProperty(o, l, { get: r });
|
|
@@ -7015,27 +7034,27 @@ let li = class {
|
|
|
7015
7034
|
},
|
|
7016
7035
|
saveAs(u, i) {
|
|
7017
7036
|
i = typeof i == "number" ? { quality: i } : i;
|
|
7018
|
-
let d =
|
|
7037
|
+
let d = Hn(this.pages, { filename: u, ...i }), { pattern: s, padding: c, mime: f, quality: p, matte: y, density: N, archive: R } = d, E = Gn(d.pages, N);
|
|
7019
7038
|
return c == null ? ni(E[0], f, p, y, u) : oi(
|
|
7020
7039
|
E,
|
|
7021
7040
|
f,
|
|
7022
7041
|
p,
|
|
7023
7042
|
y,
|
|
7024
|
-
|
|
7043
|
+
R,
|
|
7025
7044
|
s,
|
|
7026
7045
|
c
|
|
7027
7046
|
);
|
|
7028
7047
|
},
|
|
7029
7048
|
toBuffer(u = "png", i = {}) {
|
|
7030
7049
|
i = typeof i == "number" ? { quality: i } : i;
|
|
7031
|
-
let d =
|
|
7032
|
-
return
|
|
7050
|
+
let d = Hn(this.pages, { extension: u, ...i }), { mime: s, quality: c, matte: f, pages: p, density: y } = d, N = Gn(p, y, f)[0];
|
|
7051
|
+
return zn(N, s, c, f);
|
|
7033
7052
|
},
|
|
7034
7053
|
[Vo]: o.toDataURL.bind(o),
|
|
7035
7054
|
toDataURL(u = "png", i = {}) {
|
|
7036
7055
|
i = typeof i == "number" ? { quality: i } : i;
|
|
7037
|
-
let d =
|
|
7038
|
-
return Promise.resolve(
|
|
7056
|
+
let d = Hn(this.pages, { extension: u, ...i }), { mime: s, quality: c, matte: f, pages: p, density: y } = d, N = Gn(p, y, f)[0], R = N[N === o ? Vo : "toDataURL"](s, c);
|
|
7057
|
+
return Promise.resolve(R);
|
|
7039
7058
|
}
|
|
7040
7059
|
});
|
|
7041
7060
|
}
|
|
@@ -7087,7 +7106,7 @@ const {
|
|
|
7087
7106
|
}, vi = (n) => ({
|
|
7088
7107
|
data: n,
|
|
7089
7108
|
pos: 0
|
|
7090
|
-
}),
|
|
7109
|
+
}), tt = () => (n) => n.data[n.pos++], Ba = (n = 0) => (e) => e.data[e.pos + n], rt = (n) => (e) => e.data.subarray(e.pos, e.pos += n), Fn = (n) => (e) => e.data.subarray(e.pos, e.pos + n), eo = (n) => (e) => Array.from(rt(n)(e)).map((t) => String.fromCharCode(t)).join(""), It = (n) => (e) => {
|
|
7091
7110
|
const t = rt(2)(e);
|
|
7092
7111
|
return n ? (t[1] << 8) + t[0] : (t[0] << 8) + t[1];
|
|
7093
7112
|
}, Pa = (n, e) => (t, o, a) => {
|
|
@@ -7100,7 +7119,7 @@ const {
|
|
|
7100
7119
|
o += n[e + a] && 2 ** (t - a - 1);
|
|
7101
7120
|
return o;
|
|
7102
7121
|
}, uo = (n) => (e) => {
|
|
7103
|
-
const t =
|
|
7122
|
+
const t = tt()(e), o = new Array(8);
|
|
7104
7123
|
for (var a = 0; a < 8; a++)
|
|
7105
7124
|
o[7 - a] = !!(t & 1 << a);
|
|
7106
7125
|
return Object.keys(n).reduce((l, r) => {
|
|
@@ -7108,10 +7127,10 @@ const {
|
|
|
7108
7127
|
return u.length ? l[r] = gi(o, u.index, u.length) : l[r] = o[u.index], l;
|
|
7109
7128
|
}, {});
|
|
7110
7129
|
};
|
|
7111
|
-
var
|
|
7130
|
+
var $n = {
|
|
7112
7131
|
blocks: (n) => {
|
|
7113
7132
|
const t = [], o = n.data.length;
|
|
7114
|
-
for (var a = 0, l =
|
|
7133
|
+
for (var a = 0, l = tt()(n); l !== 0 && l; l = tt()(n)) {
|
|
7115
7134
|
if (n.pos + l >= o) {
|
|
7116
7135
|
const d = o - n.pos;
|
|
7117
7136
|
t.push(rt(d)(n)), a += d;
|
|
@@ -7129,7 +7148,7 @@ const yi = Et(
|
|
|
7129
7148
|
{
|
|
7130
7149
|
gce: [
|
|
7131
7150
|
{ codes: rt(2) },
|
|
7132
|
-
{ byteSize:
|
|
7151
|
+
{ byteSize: tt() },
|
|
7133
7152
|
{
|
|
7134
7153
|
extras: uo({
|
|
7135
7154
|
future: { index: 0, length: 3 },
|
|
@@ -7139,18 +7158,18 @@ const yi = Et(
|
|
|
7139
7158
|
})
|
|
7140
7159
|
},
|
|
7141
7160
|
{ delay: It(!0) },
|
|
7142
|
-
{ transparentColorIndex:
|
|
7143
|
-
{ terminator:
|
|
7161
|
+
{ transparentColorIndex: tt() },
|
|
7162
|
+
{ terminator: tt() }
|
|
7144
7163
|
]
|
|
7145
7164
|
},
|
|
7146
7165
|
(n) => {
|
|
7147
|
-
var e =
|
|
7166
|
+
var e = Fn(2)(n);
|
|
7148
7167
|
return e[0] === 33 && e[1] === 249;
|
|
7149
7168
|
}
|
|
7150
7169
|
), bi = Et(
|
|
7151
7170
|
{
|
|
7152
7171
|
image: [
|
|
7153
|
-
{ code:
|
|
7172
|
+
{ code: tt() },
|
|
7154
7173
|
{
|
|
7155
7174
|
descriptor: [
|
|
7156
7175
|
{ left: It(!0) },
|
|
@@ -7174,7 +7193,7 @@ const yi = Et(
|
|
|
7174
7193
|
},
|
|
7175
7194
|
(n, e, t) => t.descriptor.lct.exists
|
|
7176
7195
|
),
|
|
7177
|
-
{ data: [{ minCodeSize:
|
|
7196
|
+
{ data: [{ minCodeSize: tt() }, $n] }
|
|
7178
7197
|
]
|
|
7179
7198
|
},
|
|
7180
7199
|
(n) => Ba()(n) === 44
|
|
@@ -7182,40 +7201,40 @@ const yi = Et(
|
|
|
7182
7201
|
{
|
|
7183
7202
|
text: [
|
|
7184
7203
|
{ codes: rt(2) },
|
|
7185
|
-
{ blockSize:
|
|
7204
|
+
{ blockSize: tt() },
|
|
7186
7205
|
{
|
|
7187
7206
|
preData: (n, e, t) => rt(t.text.blockSize)(n)
|
|
7188
7207
|
},
|
|
7189
|
-
|
|
7208
|
+
$n
|
|
7190
7209
|
]
|
|
7191
7210
|
},
|
|
7192
7211
|
(n) => {
|
|
7193
|
-
var e =
|
|
7212
|
+
var e = Fn(2)(n);
|
|
7194
7213
|
return e[0] === 33 && e[1] === 1;
|
|
7195
7214
|
}
|
|
7196
7215
|
), Ti = Et(
|
|
7197
7216
|
{
|
|
7198
7217
|
application: [
|
|
7199
7218
|
{ codes: rt(2) },
|
|
7200
|
-
{ blockSize:
|
|
7201
|
-
{ id: (n, e, t) =>
|
|
7202
|
-
|
|
7219
|
+
{ blockSize: tt() },
|
|
7220
|
+
{ id: (n, e, t) => eo(t.blockSize)(n) },
|
|
7221
|
+
$n
|
|
7203
7222
|
]
|
|
7204
7223
|
},
|
|
7205
7224
|
(n) => {
|
|
7206
|
-
var e =
|
|
7225
|
+
var e = Fn(2)(n);
|
|
7207
7226
|
return e[0] === 33 && e[1] === 255;
|
|
7208
7227
|
}
|
|
7209
7228
|
), ki = Et(
|
|
7210
7229
|
{
|
|
7211
|
-
comment: [{ codes: rt(2) },
|
|
7230
|
+
comment: [{ codes: rt(2) }, $n]
|
|
7212
7231
|
},
|
|
7213
7232
|
(n) => {
|
|
7214
|
-
var e =
|
|
7233
|
+
var e = Fn(2)(n);
|
|
7215
7234
|
return e[0] === 33 && e[1] === 254;
|
|
7216
7235
|
}
|
|
7217
7236
|
), Ci = [
|
|
7218
|
-
{ header: [{ signature:
|
|
7237
|
+
{ header: [{ signature: eo(3) }, { version: eo(3) }] },
|
|
7219
7238
|
{
|
|
7220
7239
|
lsd: [
|
|
7221
7240
|
{ width: It(!0) },
|
|
@@ -7228,8 +7247,8 @@ const yi = Et(
|
|
|
7228
7247
|
size: { index: 5, length: 3 }
|
|
7229
7248
|
})
|
|
7230
7249
|
},
|
|
7231
|
-
{ backgroundColorIndex:
|
|
7232
|
-
{ pixelAspectRatio:
|
|
7250
|
+
{ backgroundColorIndex: tt() },
|
|
7251
|
+
{ pixelAspectRatio: tt() }
|
|
7233
7252
|
]
|
|
7234
7253
|
},
|
|
7235
7254
|
Et(
|
|
@@ -7263,7 +7282,7 @@ const yi = Et(
|
|
|
7263
7282
|
}, _i = (n, e, t) => {
|
|
7264
7283
|
const l = t;
|
|
7265
7284
|
var r, u, i, d, s, c, f, I, p, y, _, N, m, w, U, M;
|
|
7266
|
-
const
|
|
7285
|
+
const R = new Array(t), E = new Array(4096), S = new Array(4096), L = new Array(4096 + 1);
|
|
7267
7286
|
for (N = n, u = 1 << N, s = u + 1, r = u + 2, f = -1, d = N + 1, i = (1 << d) - 1, p = 0; p < u; p++)
|
|
7268
7287
|
E[p] = 0, S[p] = p;
|
|
7269
7288
|
var _, I, m, w, M, U;
|
|
@@ -7287,11 +7306,11 @@ const yi = Et(
|
|
|
7287
7306
|
L[w++] = S[p], p = E[p];
|
|
7288
7307
|
m = S[p] & 255, L[w++] = m, r < 4096 && (E[r] = f, S[r] = m, r++, !(r & i) && r < 4096 && (d++, i += r)), f = c;
|
|
7289
7308
|
}
|
|
7290
|
-
w--,
|
|
7309
|
+
w--, R[M++] = L[w], y++;
|
|
7291
7310
|
}
|
|
7292
7311
|
for (y = M; y < l; y++)
|
|
7293
|
-
|
|
7294
|
-
return
|
|
7312
|
+
R[y] = 0;
|
|
7313
|
+
return R;
|
|
7295
7314
|
}, Ii = (n) => {
|
|
7296
7315
|
const e = new Uint8Array(n);
|
|
7297
7316
|
return Wt(vi(e), Ci);
|
|
@@ -7371,7 +7390,7 @@ function xa(n) {
|
|
|
7371
7390
|
}
|
|
7372
7391
|
class Ai {
|
|
7373
7392
|
constructor(e) {
|
|
7374
|
-
this.mode =
|
|
7393
|
+
this.mode = Xe.MODE_8BIT_BYTE, this.parsedData = [], this.data = e;
|
|
7375
7394
|
const t = [];
|
|
7376
7395
|
for (let o = 0, a = this.data.length; o < a; o++) {
|
|
7377
7396
|
const l = [], r = this.data.charCodeAt(o);
|
|
@@ -7521,7 +7540,7 @@ class yt {
|
|
|
7521
7540
|
for (var d = 0; d < r[i].length; d++)
|
|
7522
7541
|
r[i][d] = 255 & e.buffer[d + o];
|
|
7523
7542
|
o += p;
|
|
7524
|
-
const N = Ne.getErrorCorrectPolynomial(y), E = new
|
|
7543
|
+
const N = Ne.getErrorCorrectPolynomial(y), E = new Ut(r[i], N.getLength() - 1).mod(N);
|
|
7525
7544
|
u[i] = new Array(N.getLength() - 1);
|
|
7526
7545
|
for (var d = 0; d < u[i].length; d++) {
|
|
7527
7546
|
const L = d + E.getLength() - u[i].length;
|
|
@@ -7544,7 +7563,7 @@ class yt {
|
|
|
7544
7563
|
}
|
|
7545
7564
|
yt.PAD0 = 236;
|
|
7546
7565
|
yt.PAD1 = 17;
|
|
7547
|
-
const He = { L: 1, M: 0, Q: 3, H: 2 },
|
|
7566
|
+
const He = { L: 1, M: 0, Q: 3, H: 2 }, Xe = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, ut = {
|
|
7548
7567
|
PATTERN000: 0,
|
|
7549
7568
|
PATTERN001: 1,
|
|
7550
7569
|
PATTERN010: 2,
|
|
@@ -7599,47 +7618,47 @@ class Ne {
|
|
|
7599
7618
|
}
|
|
7600
7619
|
}
|
|
7601
7620
|
static getErrorCorrectPolynomial(e) {
|
|
7602
|
-
let t = new
|
|
7621
|
+
let t = new Ut([1], 0);
|
|
7603
7622
|
for (let o = 0; o < e; o++)
|
|
7604
|
-
t = t.multiply(new
|
|
7623
|
+
t = t.multiply(new Ut([1, Pe.gexp(o)], 0));
|
|
7605
7624
|
return t;
|
|
7606
7625
|
}
|
|
7607
7626
|
static getLengthInBits(e, t) {
|
|
7608
7627
|
if (1 <= t && t < 10)
|
|
7609
7628
|
switch (e) {
|
|
7610
|
-
case
|
|
7629
|
+
case Xe.MODE_NUMBER:
|
|
7611
7630
|
return 10;
|
|
7612
|
-
case
|
|
7631
|
+
case Xe.MODE_ALPHA_NUM:
|
|
7613
7632
|
return 9;
|
|
7614
|
-
case
|
|
7633
|
+
case Xe.MODE_8BIT_BYTE:
|
|
7615
7634
|
return 8;
|
|
7616
|
-
case
|
|
7635
|
+
case Xe.MODE_KANJI:
|
|
7617
7636
|
return 8;
|
|
7618
7637
|
default:
|
|
7619
7638
|
throw new Error(`mode:${e}`);
|
|
7620
7639
|
}
|
|
7621
7640
|
else if (t < 27)
|
|
7622
7641
|
switch (e) {
|
|
7623
|
-
case
|
|
7642
|
+
case Xe.MODE_NUMBER:
|
|
7624
7643
|
return 12;
|
|
7625
|
-
case
|
|
7644
|
+
case Xe.MODE_ALPHA_NUM:
|
|
7626
7645
|
return 11;
|
|
7627
|
-
case
|
|
7646
|
+
case Xe.MODE_8BIT_BYTE:
|
|
7628
7647
|
return 16;
|
|
7629
|
-
case
|
|
7648
|
+
case Xe.MODE_KANJI:
|
|
7630
7649
|
return 10;
|
|
7631
7650
|
default:
|
|
7632
7651
|
throw new Error(`mode:${e}`);
|
|
7633
7652
|
}
|
|
7634
7653
|
else if (t < 41)
|
|
7635
7654
|
switch (e) {
|
|
7636
|
-
case
|
|
7655
|
+
case Xe.MODE_NUMBER:
|
|
7637
7656
|
return 14;
|
|
7638
|
-
case
|
|
7657
|
+
case Xe.MODE_ALPHA_NUM:
|
|
7639
7658
|
return 13;
|
|
7640
|
-
case
|
|
7659
|
+
case Xe.MODE_8BIT_BYTE:
|
|
7641
7660
|
return 16;
|
|
7642
|
-
case
|
|
7661
|
+
case Xe.MODE_KANJI:
|
|
7643
7662
|
return 12;
|
|
7644
7663
|
default:
|
|
7645
7664
|
throw new Error(`mode:${e}`);
|
|
@@ -7748,7 +7767,7 @@ Pe._constructor = function() {
|
|
|
7748
7767
|
for (var n = 0; n < 255; n++)
|
|
7749
7768
|
Pe.LOG_TABLE[Pe.EXP_TABLE[n]] = n;
|
|
7750
7769
|
}();
|
|
7751
|
-
class
|
|
7770
|
+
class Ut {
|
|
7752
7771
|
constructor(e, t) {
|
|
7753
7772
|
if (e.length == null)
|
|
7754
7773
|
throw new Error(`${e.length}/${t}`);
|
|
@@ -7770,7 +7789,7 @@ class Ot {
|
|
|
7770
7789
|
for (let o = 0; o < this.getLength(); o++)
|
|
7771
7790
|
for (let a = 0; a < e.getLength(); a++)
|
|
7772
7791
|
t[o + a] ^= Pe.gexp(Pe.glog(this.get(o)) + Pe.glog(e.get(a)));
|
|
7773
|
-
return new
|
|
7792
|
+
return new Ut(t, 0);
|
|
7774
7793
|
}
|
|
7775
7794
|
mod(e) {
|
|
7776
7795
|
if (this.getLength() - e.getLength() < 0)
|
|
@@ -7780,7 +7799,7 @@ class Ot {
|
|
|
7780
7799
|
o[a] = this.get(a);
|
|
7781
7800
|
for (var a = 0; a < e.getLength(); a++)
|
|
7782
7801
|
o[a] ^= Pe.gexp(Pe.glog(e.get(a)) + t);
|
|
7783
|
-
return new
|
|
7802
|
+
return new Ut(o, 0).mod(e);
|
|
7784
7803
|
}
|
|
7785
7804
|
}
|
|
7786
7805
|
class ct {
|
|
@@ -8038,7 +8057,7 @@ const at = [
|
|
|
8038
8057
|
[2809, 2213, 1579, 1219],
|
|
8039
8058
|
[2953, 2331, 1663, 1273]
|
|
8040
8059
|
];
|
|
8041
|
-
var $i = 100, Oe = 256, Oo = Oe - 1, vt = 4, Va = 16, co = 1 << Va, Oa = 10, mo = 10, Bi = co >> mo, Pi = co << Oa - mo, xi = Oe >> 3,
|
|
8060
|
+
var $i = 100, Oe = 256, Oo = Oe - 1, vt = 4, Va = 16, co = 1 << Va, Oa = 10, mo = 10, Bi = co >> mo, Pi = co << Oa - mo, xi = Oe >> 3, to = 6, Vi = 1 << to, Oi = xi * Vi, Ui = 30, Ua = 10, mn = 1 << Ua, Ra = 8, Uo = 1 << Ra, Ri = Ua + Ra, Pt = 1 << Ri, Ro = 499, jo = 491, zo = 487, ja = 503, ji = 3 * ja;
|
|
8042
8061
|
function zi(n, e) {
|
|
8043
8062
|
var t, o, a, l, r;
|
|
8044
8063
|
function u() {
|
|
@@ -8056,7 +8075,7 @@ function zi(n, e) {
|
|
|
8056
8075
|
}
|
|
8057
8076
|
function s(E, S, L, _, I) {
|
|
8058
8077
|
for (var m = Math.abs(S - E), w = Math.min(S + E, Oe), M = S + 1, U = S - 1, P = 1, C, x; M < w || U > m; )
|
|
8059
|
-
x = r[P++], M < w && (C = t[M++], C[0] -= x * (C[0] - L) /
|
|
8078
|
+
x = r[P++], M < w && (C = t[M++], C[0] -= x * (C[0] - L) / Pt, C[1] -= x * (C[1] - _) / Pt, C[2] -= x * (C[2] - I) / Pt), U > m && (C = t[U--], C[0] -= x * (C[0] - L) / Pt, C[1] -= x * (C[1] - _) / Pt, C[2] -= x * (C[2] - I) / Pt);
|
|
8060
8079
|
}
|
|
8061
8080
|
function c(E, S, L) {
|
|
8062
8081
|
var _ = 2147483647, I = _, m = -1, w = m, M, U, P, C, x;
|
|
@@ -8084,7 +8103,7 @@ function zi(n, e) {
|
|
|
8084
8103
|
return M;
|
|
8085
8104
|
}
|
|
8086
8105
|
function y() {
|
|
8087
|
-
var E, S = n.length, L = 30 + (e - 1) / 3, _ = S / (3 * e), I = ~~(_ / $i), m = mn, w = Oi, M = w >>
|
|
8106
|
+
var E, S = n.length, L = 30 + (e - 1) / 3, _ = S / (3 * e), I = ~~(_ / $i), m = mn, w = Oi, M = w >> to;
|
|
8088
8107
|
for (M <= 1 && (M = 0), E = 0; E < M; E++)
|
|
8089
8108
|
r[E] = m * ((M * M - E * E) * Uo / (M * M));
|
|
8090
8109
|
var U;
|
|
@@ -8092,14 +8111,14 @@ function zi(n, e) {
|
|
|
8092
8111
|
var P, C, x, D, A = 0;
|
|
8093
8112
|
for (E = 0; E < _; )
|
|
8094
8113
|
if (P = (n[A] & 255) << vt, C = (n[A + 1] & 255) << vt, x = (n[A + 2] & 255) << vt, D = c(P, C, x), d(m, D, P, C, x), M !== 0 && s(M, D, P, C, x), A += U, A >= S && (A -= S), E++, I === 0 && (I = 1), E % I === 0)
|
|
8095
|
-
for (m -= m / L, w -= w / Ui, M = w >>
|
|
8114
|
+
for (m -= m / L, w -= w / Ui, M = w >> to, M <= 1 && (M = 0), D = 0; D < M; D++)
|
|
8096
8115
|
r[D] = m * ((M * M - D * D) * Uo / (M * M));
|
|
8097
8116
|
}
|
|
8098
8117
|
function N() {
|
|
8099
8118
|
u(), y(), i(), f();
|
|
8100
8119
|
}
|
|
8101
8120
|
this.buildColormap = N;
|
|
8102
|
-
function
|
|
8121
|
+
function R() {
|
|
8103
8122
|
for (var E = [], S = [], L = 0; L < Oe; L++)
|
|
8104
8123
|
S[t[L][3]] = L;
|
|
8105
8124
|
for (var _ = 0, I = 0; I < Oe; I++) {
|
|
@@ -8108,7 +8127,7 @@ function zi(n, e) {
|
|
|
8108
8127
|
}
|
|
8109
8128
|
return E;
|
|
8110
8129
|
}
|
|
8111
|
-
this.getColormap =
|
|
8130
|
+
this.getColormap = R, this.lookupRGB = p;
|
|
8112
8131
|
}
|
|
8113
8132
|
var Go = -1, fn = 12, Ht = 5003, Gi = [
|
|
8114
8133
|
0,
|
|
@@ -8130,7 +8149,7 @@ var Go = -1, fn = 12, Ht = 5003, Gi = [
|
|
|
8130
8149
|
65535
|
|
8131
8150
|
];
|
|
8132
8151
|
function Hi(n, e, t, o) {
|
|
8133
|
-
var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Ht), u = new Int32Array(Ht), i, d = 0, s, c = 0, f, p = !1, y, N,
|
|
8152
|
+
var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Ht), u = new Int32Array(Ht), i, d = 0, s, c = 0, f, p = !1, y, N, R, E, S, L;
|
|
8134
8153
|
function _(D, A) {
|
|
8135
8154
|
l[s++] = D, s >= 254 && U(A);
|
|
8136
8155
|
}
|
|
@@ -8143,7 +8162,7 @@ function Hi(n, e, t, o) {
|
|
|
8143
8162
|
}
|
|
8144
8163
|
function w(D, A) {
|
|
8145
8164
|
var T, B, g, b, z, G, H;
|
|
8146
|
-
for (y = D, p = !1, L = y, f = P(L), N = 1 << D - 1,
|
|
8165
|
+
for (y = D, p = !1, L = y, f = P(L), N = 1 << D - 1, R = N + 1, c = N + 2, s = 0, b = C(), H = 0, T = Ht; T < 65536; T *= 2)
|
|
8147
8166
|
++H;
|
|
8148
8167
|
H = 8 - H, G = Ht, m(G), x(N, A);
|
|
8149
8168
|
e:
|
|
@@ -8162,7 +8181,7 @@ function Hi(n, e, t, o) {
|
|
|
8162
8181
|
}
|
|
8163
8182
|
x(b, A), b = B, c < 1 << fn ? (u[g] = c++, r[g] = T) : I(A);
|
|
8164
8183
|
}
|
|
8165
|
-
x(b, A), x(
|
|
8184
|
+
x(b, A), x(R, A);
|
|
8166
8185
|
}
|
|
8167
8186
|
function M(D) {
|
|
8168
8187
|
D.writeByte(a), E = n * e, S = 0, w(a + 1, D), D.writeByte(0);
|
|
@@ -8183,7 +8202,7 @@ function Hi(n, e, t, o) {
|
|
|
8183
8202
|
function x(D, A) {
|
|
8184
8203
|
for (i &= Gi[d], d > 0 ? i |= D << d : i = D, d += L; d >= 8; )
|
|
8185
8204
|
_(i & 255, A), i >>= 8, d -= 8;
|
|
8186
|
-
if ((c > f || p) && (p ? (f = P(L = y), p = !1) : (++L, L == fn ? f = 1 << fn : f = P(L))), D ==
|
|
8205
|
+
if ((c > f || p) && (p ? (f = P(L = y), p = !1) : (++L, L == fn ? f = 1 << fn : f = P(L))), D == R) {
|
|
8187
8206
|
for (; d > 0; )
|
|
8188
8207
|
_(i & 255, A), i >>= 8, d -= 8;
|
|
8189
8208
|
U(A);
|
|
@@ -8191,23 +8210,23 @@ function Hi(n, e, t, o) {
|
|
|
8191
8210
|
}
|
|
8192
8211
|
this.encode = M;
|
|
8193
8212
|
}
|
|
8194
|
-
function
|
|
8213
|
+
function Ye() {
|
|
8195
8214
|
this.page = -1, this.pages = [], this.newPage();
|
|
8196
8215
|
}
|
|
8197
|
-
|
|
8198
|
-
|
|
8216
|
+
Ye.pageSize = 4096;
|
|
8217
|
+
Ye.charMap = {};
|
|
8199
8218
|
for (var pn = 0; pn < 256; pn++)
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
this.pages[++this.page] = new Uint8Array(
|
|
8219
|
+
Ye.charMap[pn] = String.fromCharCode(pn);
|
|
8220
|
+
Ye.prototype.newPage = function() {
|
|
8221
|
+
this.pages[++this.page] = new Uint8Array(Ye.pageSize), this.cursor = 0;
|
|
8203
8222
|
};
|
|
8204
|
-
|
|
8223
|
+
Ye.prototype.getData = function() {
|
|
8205
8224
|
for (var n = "", e = 0; e < this.pages.length; e++)
|
|
8206
|
-
for (var t = 0; t <
|
|
8207
|
-
n +=
|
|
8225
|
+
for (var t = 0; t < Ye.pageSize; t++)
|
|
8226
|
+
n += Ye.charMap[this.pages[e][t]];
|
|
8208
8227
|
return n;
|
|
8209
8228
|
};
|
|
8210
|
-
|
|
8229
|
+
Ye.prototype.toFlattenUint8Array = function() {
|
|
8211
8230
|
const n = [];
|
|
8212
8231
|
for (var e = 0; e < this.pages.length; e++)
|
|
8213
8232
|
if (e === this.pages.length - 1) {
|
|
@@ -8218,19 +8237,19 @@ qe.prototype.toFlattenUint8Array = function() {
|
|
|
8218
8237
|
const t = new Uint8Array(n.reduce((o, a) => o + a.length, 0));
|
|
8219
8238
|
return n.reduce((o, a) => (t.set(a, o), o + a.length), 0), t;
|
|
8220
8239
|
};
|
|
8221
|
-
|
|
8222
|
-
this.cursor >=
|
|
8240
|
+
Ye.prototype.writeByte = function(n) {
|
|
8241
|
+
this.cursor >= Ye.pageSize && this.newPage(), this.pages[this.page][this.cursor++] = n;
|
|
8223
8242
|
};
|
|
8224
|
-
|
|
8243
|
+
Ye.prototype.writeUTFBytes = function(n) {
|
|
8225
8244
|
for (var e = n.length, t = 0; t < e; t++)
|
|
8226
8245
|
this.writeByte(n.charCodeAt(t));
|
|
8227
8246
|
};
|
|
8228
|
-
|
|
8247
|
+
Ye.prototype.writeBytes = function(n, e, t) {
|
|
8229
8248
|
for (var o = t || n.length, a = e || 0; a < o; a++)
|
|
8230
8249
|
this.writeByte(n[a]);
|
|
8231
8250
|
};
|
|
8232
8251
|
function Fe(n, e) {
|
|
8233
|
-
this.width = ~~n, this.height = ~~e, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new
|
|
8252
|
+
this.width = ~~n, this.height = ~~e, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new Ye();
|
|
8234
8253
|
}
|
|
8235
8254
|
Fe.prototype.setDelay = function(n) {
|
|
8236
8255
|
this.delay = Math.round(n / 10);
|
|
@@ -8325,7 +8344,7 @@ Fe.prototype.ditherPixels = function(n, e) {
|
|
|
8325
8344
|
a = d * r + s;
|
|
8326
8345
|
var f = a * 3, p = u[f], y = u[f + 1], N = u[f + 2];
|
|
8327
8346
|
f = this.findClosestRGB(p, y, N), this.usedEntry[f] = !0, this.indexedPixels[a] = f, f *= 3;
|
|
8328
|
-
for (var
|
|
8347
|
+
for (var R = this.colorTab[f], E = this.colorTab[f + 1], S = this.colorTab[f + 2], L = p - R, _ = y - E, I = N - S, m = i == 1 ? 0 : o.length - 1, w = i == 1 ? o.length : 0; m !== w; m += i) {
|
|
8329
8348
|
var M = o[m][1], U = o[m][2];
|
|
8330
8349
|
if (M + s >= 0 && M + s < r && U + d >= 0 && U + d < l) {
|
|
8331
8350
|
var P = o[m][0];
|
|
@@ -8525,7 +8544,7 @@ class Le {
|
|
|
8525
8544
|
})), e.fillStyle = d;
|
|
8526
8545
|
}
|
|
8527
8546
|
_draw() {
|
|
8528
|
-
var e, t, o, a, l, r, u, i, d, s, c, f, p, y, N,
|
|
8547
|
+
var e, t, o, a, l, r, u, i, d, s, c, f, p, y, N, R, E, S, L;
|
|
8529
8548
|
return Ki(this, void 0, void 0, function* () {
|
|
8530
8549
|
const _ = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount, I = this.options.size;
|
|
8531
8550
|
let m = this.options.margin;
|
|
@@ -8537,12 +8556,12 @@ class Le {
|
|
|
8537
8556
|
if (this.options.gifBackground) {
|
|
8538
8557
|
const le = Ii(this.options.gifBackground);
|
|
8539
8558
|
if (b = le, z = Di(le, !0), this.options.autoColor) {
|
|
8540
|
-
let ce = 0, ve = 0,
|
|
8541
|
-
for (let
|
|
8542
|
-
const
|
|
8543
|
-
|
|
8559
|
+
let ce = 0, ve = 0, be = 0, Ae = 0;
|
|
8560
|
+
for (let j = 0; j < z[0].colorTable.length; j++) {
|
|
8561
|
+
const Y = z[0].colorTable[j];
|
|
8562
|
+
Y[0] > 200 || Y[1] > 200 || Y[2] > 200 || Y[0] === 0 && Y[1] === 0 && Y[2] === 0 || (Ae++, ce += Y[0], ve += Y[1], be += Y[2]);
|
|
8544
8563
|
}
|
|
8545
|
-
ce = ~~(ce / Ae), ve = ~~(ve / Ae),
|
|
8564
|
+
ce = ~~(ce / Ae), ve = ~~(ve / Ae), be = ~~(be / Ae), this.options.colorDark = `rgb(${ce},${ve},${be})`;
|
|
8546
8565
|
}
|
|
8547
8566
|
} else if (this.options.backgroundImage) {
|
|
8548
8567
|
const le = yield Ho(this.options.backgroundImage);
|
|
@@ -8556,72 +8575,72 @@ class Le {
|
|
|
8556
8575
|
const G = Ne.getPatternPosition(this.qrCode.typeNumber), H = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || hn, ae = (1 - H) * 0.5;
|
|
8557
8576
|
for (let le = 0; le < _; le++)
|
|
8558
8577
|
for (let ce = 0; ce < _; ce++) {
|
|
8559
|
-
const ve = this.qrCode.isDark(le, ce),
|
|
8560
|
-
let
|
|
8578
|
+
const ve = this.qrCode.isDark(le, ce), be = ce < 8 && (le < 8 || le >= _ - 8) || ce >= _ - 8 && le < 8, Ae = le == 6 && ce >= 8 && ce <= _ - 8 || ce == 6 && le >= 8 && le <= _ - 8;
|
|
8579
|
+
let j = be || Ae;
|
|
8561
8580
|
for (let ye = 1; ye < G.length - 1; ye++)
|
|
8562
|
-
|
|
8563
|
-
const
|
|
8581
|
+
j = j || le >= G[ye] - 2 && le <= G[ye] + 2 && ce >= G[ye] - 2 && ce <= G[ye] + 2;
|
|
8582
|
+
const Y = ce * C + (j ? 0 : ae * C), oe = le * C + (j ? 0 : ae * C);
|
|
8564
8583
|
if (T.strokeStyle = ve ? this.options.colorDark : this.options.colorLight, T.lineWidth = 0.5, T.fillStyle = ve ? this.options.colorDark : this.options.colorLight, G.length === 0)
|
|
8565
|
-
|
|
8584
|
+
j || T.fillRect(Y, oe, (j ? 1 : H) * C, (j ? 1 : H) * C);
|
|
8566
8585
|
else {
|
|
8567
8586
|
const ye = ce < _ - 4 && ce >= _ - 4 - 5 && le < _ - 4 && le >= _ - 4 - 5;
|
|
8568
|
-
!
|
|
8587
|
+
!j && !ye && T.fillRect(Y, oe, (j ? 1 : H) * C, (j ? 1 : H) * C);
|
|
8569
8588
|
}
|
|
8570
8589
|
}
|
|
8571
8590
|
const me = G[G.length - 1], J = this.options.colorLight;
|
|
8572
8591
|
if (T.fillStyle = J, T.fillRect(0, 0, 8 * C, 8 * C), T.fillRect(0, (_ - 8) * C, 8 * C, 8 * C), T.fillRect((_ - 8) * C, 0, 8 * C, 8 * C), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (T.fillRect(8 * C, 6 * C, (_ - 8 - 8) * C, C), T.fillRect(6 * C, 8 * C, C, (_ - 8 - 8) * C)), !((u = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || u === void 0) && u.protectors && Le._drawAlignProtector(T, me, me, C), !((d = (i = this.options.components) === null || i === void 0 ? void 0 : i.alignment) === null || d === void 0) && d.protectors)
|
|
8573
8592
|
for (let le = 0; le < G.length; le++)
|
|
8574
8593
|
for (let ce = 0; ce < G.length; ce++) {
|
|
8575
|
-
const ve = G[ce],
|
|
8576
|
-
if (!(ve === 6 && (
|
|
8577
|
-
if (
|
|
8594
|
+
const ve = G[ce], be = G[le];
|
|
8595
|
+
if (!(ve === 6 && (be === 6 || be === me))) {
|
|
8596
|
+
if (be === 6 && (ve === 6 || ve === me))
|
|
8578
8597
|
continue;
|
|
8579
|
-
if (ve === me &&
|
|
8598
|
+
if (ve === me && be === me)
|
|
8580
8599
|
continue;
|
|
8581
|
-
Le._drawAlignProtector(T, ve,
|
|
8600
|
+
Le._drawAlignProtector(T, ve, be, C);
|
|
8582
8601
|
}
|
|
8583
8602
|
}
|
|
8584
8603
|
T.fillStyle = this.options.colorDark, T.fillRect(0, 0, 7 * C, C), T.fillRect((_ - 7) * C, 0, 7 * C, C), T.fillRect(0, 6 * C, 7 * C, C), T.fillRect((_ - 7) * C, 6 * C, 7 * C, C), T.fillRect(0, (_ - 7) * C, 7 * C, C), T.fillRect(0, (_ - 7 + 6) * C, 7 * C, C), T.fillRect(0, 0, C, 7 * C), T.fillRect(6 * C, 0, C, 7 * C), T.fillRect((_ - 7) * C, 0, C, 7 * C), T.fillRect((_ - 7 + 6) * C, 0, C, 7 * C), T.fillRect(0, (_ - 7) * C, C, 7 * C), T.fillRect(6 * C, (_ - 7) * C, C, 7 * C), T.fillRect(2 * C, 2 * C, 3 * C, 3 * C), T.fillRect((_ - 7 + 2) * C, 2 * C, 3 * C, 3 * C), T.fillRect(2 * C, (_ - 7 + 2) * C, 3 * C, 3 * C);
|
|
8585
|
-
const
|
|
8604
|
+
const _e = ((c = (s = this.options.components) === null || s === void 0 ? void 0 : s.timing) === null || c === void 0 ? void 0 : c.scale) || hn, Re = (1 - _e) * 0.5;
|
|
8586
8605
|
for (let le = 0; le < _ - 8; le += 2)
|
|
8587
|
-
Le._drawDot(T, 8 + le, 6, C, Re,
|
|
8588
|
-
const
|
|
8589
|
-
Le._drawAlign(T, me, me, C, ge,
|
|
8590
|
-
const Ie = ((E = (
|
|
8606
|
+
Le._drawDot(T, 8 + le, 6, C, Re, _e), Le._drawDot(T, 6, 8 + le, C, Re, _e);
|
|
8607
|
+
const Ce = ((p = (f = this.options.components) === null || f === void 0 ? void 0 : f.cornerAlignment) === null || p === void 0 ? void 0 : p.scale) || hn, ge = (1 - Ce) * 0.5;
|
|
8608
|
+
Le._drawAlign(T, me, me, C, ge, Ce, this.options.colorDark, ((N = (y = this.options.components) === null || y === void 0 ? void 0 : y.cornerAlignment) === null || N === void 0 ? void 0 : N.protectors) || !1);
|
|
8609
|
+
const Ie = ((E = (R = this.options.components) === null || R === void 0 ? void 0 : R.alignment) === null || E === void 0 ? void 0 : E.scale) || hn, $e = (1 - Ie) * 0.5;
|
|
8591
8610
|
for (let le = 0; le < G.length; le++)
|
|
8592
8611
|
for (let ce = 0; ce < G.length; ce++) {
|
|
8593
|
-
const ve = G[ce],
|
|
8594
|
-
if (!(ve === 6 && (
|
|
8595
|
-
if (
|
|
8612
|
+
const ve = G[ce], be = G[le];
|
|
8613
|
+
if (!(ve === 6 && (be === 6 || be === me))) {
|
|
8614
|
+
if (be === 6 && (ve === 6 || ve === me))
|
|
8596
8615
|
continue;
|
|
8597
|
-
if (ve === me &&
|
|
8616
|
+
if (ve === me && be === me)
|
|
8598
8617
|
continue;
|
|
8599
|
-
Le._drawAlign(T, ve,
|
|
8618
|
+
Le._drawAlign(T, ve, be, C, $e, Ie, this.options.colorDark, ((L = (S = this.options.components) === null || S === void 0 ? void 0 : S.alignment) === null || L === void 0 ? void 0 : L.protectors) || !1);
|
|
8600
8619
|
}
|
|
8601
8620
|
}
|
|
8602
8621
|
if (U && (T.fillStyle = this.options.backgroundColor, T.fillRect(-w, -w, D, w), T.fillRect(-w, x, D, w), T.fillRect(x, -w, w, D), T.fillRect(-w, -w, w, D)), this.options.logoImage) {
|
|
8603
8622
|
const le = yield Ho(this.options.logoImage);
|
|
8604
|
-
let ce = this.options.logoScale, ve = this.options.logoMargin,
|
|
8605
|
-
(ce <= 0 || ce >= 1) && (ce = 0.2), ve < 0 && (ve = 0),
|
|
8606
|
-
const Ae = x * ce,
|
|
8607
|
-
T.restore(), T.fillStyle = this.options.logoBackgroundColor, T.save(), Le._prepareRoundedCornerClip(T,
|
|
8623
|
+
let ce = this.options.logoScale, ve = this.options.logoMargin, be = this.options.logoCornerRadius;
|
|
8624
|
+
(ce <= 0 || ce >= 1) && (ce = 0.2), ve < 0 && (ve = 0), be < 0 && (be = 0);
|
|
8625
|
+
const Ae = x * ce, j = 0.5 * (D - Ae), Y = j;
|
|
8626
|
+
T.restore(), T.fillStyle = this.options.logoBackgroundColor, T.save(), Le._prepareRoundedCornerClip(T, j - ve, Y - ve, Ae + 2 * ve, Ae + 2 * ve, be + ve), T.clip();
|
|
8608
8627
|
const oe = T.globalCompositeOperation;
|
|
8609
|
-
T.globalCompositeOperation = "destination-out", T.fill(), T.globalCompositeOperation = oe, T.restore(), T.save(), Le._prepareRoundedCornerClip(T,
|
|
8628
|
+
T.globalCompositeOperation = "destination-out", T.fill(), T.globalCompositeOperation = oe, T.restore(), T.save(), Le._prepareRoundedCornerClip(T, j, Y, Ae, Ae, be), T.clip(), T.drawImage(le, j, Y, Ae, Ae), T.restore(), T.save(), T.translate(w, w);
|
|
8610
8629
|
}
|
|
8611
8630
|
if (b) {
|
|
8612
|
-
let le, ce, ve,
|
|
8613
|
-
if (z.forEach(function(
|
|
8614
|
-
le || (le = new Fe(I, I), le.setDelay(
|
|
8615
|
-
const { width: oe, height: ye } =
|
|
8616
|
-
ce || (ce = new it(oe, ye), ve = ce.getContext("2d"), ve.rect(0, 0, ce.width, ce.height), ve.fillStyle = "#ffffff", ve.fill()), (!
|
|
8617
|
-
const
|
|
8631
|
+
let le, ce, ve, be, Ae, j;
|
|
8632
|
+
if (z.forEach(function(Y) {
|
|
8633
|
+
le || (le = new Fe(I, I), le.setDelay(Y.delay), le.setRepeat(0));
|
|
8634
|
+
const { width: oe, height: ye } = Y.dims;
|
|
8635
|
+
ce || (ce = new it(oe, ye), ve = ce.getContext("2d"), ve.rect(0, 0, ce.width, ce.height), ve.fillStyle = "#ffffff", ve.fill()), (!be || !j || oe !== be.width || ye !== be.height) && (be = new it(oe, ye), Ae = be.getContext("2d"), j = Ae.createImageData(oe, ye)), j.data.set(Y.patch), Ae.putImageData(j, 0, 0), ve.drawImage(be.getContext("2d").canvas, Y.dims.left, Y.dims.top);
|
|
8636
|
+
const we = new it(D, D), ie = we.getContext("2d");
|
|
8618
8637
|
ie.drawImage(ce.getContext("2d").canvas, 0, 0, D, D), ie.rect(0, 0, D, D), ie.fillStyle = P, ie.fill(), ie.drawImage(A.getContext("2d").canvas, 0, 0, D, D);
|
|
8619
8638
|
const O = new it(I, I), K = O.getContext("2d");
|
|
8620
|
-
K.drawImage(
|
|
8639
|
+
K.drawImage(we.getContext("2d").canvas, 0, 0, I, I), le.addFrame(K.getImageData(0, 0, O.width, O.height).data);
|
|
8621
8640
|
}), !le)
|
|
8622
8641
|
throw new Error("No frames.");
|
|
8623
8642
|
if (le.finish(), Ko(this.canvas)) {
|
|
8624
|
-
const oe = le.stream().toFlattenUint8Array().reduce((ye,
|
|
8643
|
+
const oe = le.stream().toFlattenUint8Array().reduce((ye, we) => ye + String.fromCharCode(we), "");
|
|
8625
8644
|
return Promise.resolve(`data:image/gif;base64,${window.btoa(oe)}`);
|
|
8626
8645
|
}
|
|
8627
8646
|
return Promise.resolve(Buffer.from(le.stream().toFlattenUint8Array()));
|
|
@@ -8844,10 +8863,10 @@ const Wi = {
|
|
|
8844
8863
|
correctLevel: o.correctLevel,
|
|
8845
8864
|
logoMargin: o.logoMargin,
|
|
8846
8865
|
logoCornerRadius: o.logoCornerRadius,
|
|
8847
|
-
whiteMargin:
|
|
8866
|
+
whiteMargin: Rn(o.whiteMargin),
|
|
8848
8867
|
dotScale: o.dotScale,
|
|
8849
|
-
autoColor:
|
|
8850
|
-
binarize:
|
|
8868
|
+
autoColor: Rn(o.autoColor),
|
|
8869
|
+
binarize: Rn(o.binarize),
|
|
8851
8870
|
binarizeThreshold: o.binarizeThreshold,
|
|
8852
8871
|
components: o.components
|
|
8853
8872
|
}).draw().then((a) => {
|
|
@@ -8855,17 +8874,17 @@ const Wi = {
|
|
|
8855
8874
|
});
|
|
8856
8875
|
}
|
|
8857
8876
|
}
|
|
8858
|
-
},
|
|
8859
|
-
function
|
|
8877
|
+
}, qi = ["src"];
|
|
8878
|
+
function Yi(n, e, t, o, a, l) {
|
|
8860
8879
|
return t.bindElement ? (v(), W("img", {
|
|
8861
8880
|
key: 0,
|
|
8862
8881
|
style: { display: "inline-block" },
|
|
8863
8882
|
src: a.imgUrl
|
|
8864
|
-
}, null, 8,
|
|
8883
|
+
}, null, 8, qi)) : X("", !0);
|
|
8865
8884
|
}
|
|
8866
|
-
const Qi = /* @__PURE__ */ ht(Wi, [["render",
|
|
8885
|
+
const Qi = /* @__PURE__ */ ht(Wi, [["render", Yi]]);
|
|
8867
8886
|
function za(n = {}) {
|
|
8868
|
-
const e =
|
|
8887
|
+
const e = q(!1);
|
|
8869
8888
|
return {
|
|
8870
8889
|
reloadFlag: e,
|
|
8871
8890
|
reload: () => {
|
|
@@ -8895,10 +8914,10 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
8895
8914
|
"return-pagination-props"
|
|
8896
8915
|
],
|
|
8897
8916
|
setup(n, { emit: e }) {
|
|
8898
|
-
const { T: t } =
|
|
8917
|
+
const { T: t } = Me(), { reload: o, reloadFlag: a } = za(), l = n, r = e, u = V(() => {
|
|
8899
8918
|
var I, m, w, M;
|
|
8900
8919
|
return (m = (I = l.board) == null ? void 0 : I.tableData) != null && m.keyName ? (M = (w = l.board) == null ? void 0 : w.tableData) == null ? void 0 : M.keyName : "";
|
|
8901
|
-
}), i =
|
|
8920
|
+
}), i = q([]);
|
|
8902
8921
|
function d(I, m) {
|
|
8903
8922
|
i.value = I, r("return-selected-key", i.value), r("return-selected-row", m.selectedRowData);
|
|
8904
8923
|
}
|
|
@@ -8931,7 +8950,7 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
8931
8950
|
return !lt(I) && I !== "";
|
|
8932
8951
|
}
|
|
8933
8952
|
const N = () => "<span class='empty'>----</span>";
|
|
8934
|
-
function
|
|
8953
|
+
function R(I, m) {
|
|
8935
8954
|
var w;
|
|
8936
8955
|
if (!We(I.enums)) {
|
|
8937
8956
|
let M = I.enums.filter((U) => {
|
|
@@ -8952,7 +8971,7 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
8952
8971
|
if (w.showIf != "1") {
|
|
8953
8972
|
let M, U;
|
|
8954
8973
|
try {
|
|
8955
|
-
M = mt.render(w.showIf, { item: m }), U =
|
|
8974
|
+
M = mt.render(w.showIf, { item: m }), U = Qn(M, { item: m });
|
|
8956
8975
|
} catch (P) {
|
|
8957
8976
|
console.warn(P);
|
|
8958
8977
|
}
|
|
@@ -9001,7 +9020,7 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
9001
9020
|
]),
|
|
9002
9021
|
ENUMS: k(({ col: x, row: D }) => [
|
|
9003
9022
|
ne("span", {
|
|
9004
|
-
innerHTML:
|
|
9023
|
+
innerHTML: R(x, D)
|
|
9005
9024
|
}, null, 8, eu)
|
|
9006
9025
|
]),
|
|
9007
9026
|
DATE: k(({ col: x, row: D }) => [
|
|
@@ -9043,7 +9062,7 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
9043
9062
|
]),
|
|
9044
9063
|
IMAGE: k(({ col: x, row: D }) => [
|
|
9045
9064
|
ne("div", {
|
|
9046
|
-
class: Z(`${h(
|
|
9065
|
+
class: Z(`${h(xt)}__imageViewer`)
|
|
9047
9066
|
}, [
|
|
9048
9067
|
p(x, D) ? (v(), $(P, {
|
|
9049
9068
|
key: 0,
|
|
@@ -9051,19 +9070,19 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
9051
9070
|
}, {
|
|
9052
9071
|
trigger: k(({ open: A }) => [
|
|
9053
9072
|
ne("div", {
|
|
9054
|
-
class: Z(`${h(
|
|
9073
|
+
class: Z(`${h(xt)}__imageViewer--image`)
|
|
9055
9074
|
}, [
|
|
9056
9075
|
F(U, {
|
|
9057
|
-
class: Z(`${h(
|
|
9076
|
+
class: Z(`${h(xt)}__imageViewer--image-img`),
|
|
9058
9077
|
src: p(x, D),
|
|
9059
9078
|
shape: "round",
|
|
9060
9079
|
fit: "scale-down"
|
|
9061
9080
|
}, {
|
|
9062
9081
|
error: k(() => [
|
|
9063
|
-
x.name == `${h(t).t("头像")}` ? (v(), $(h(
|
|
9082
|
+
x.name == `${h(t).t("头像")}` ? (v(), $(h(Pn), { key: 0 })) : (v(), $(h(Qt), { key: 1 }))
|
|
9064
9083
|
]),
|
|
9065
9084
|
loading: k(() => [
|
|
9066
|
-
x.name == `${h(t).t("头像")}` ? (v(), $(h(
|
|
9085
|
+
x.name == `${h(t).t("头像")}` ? (v(), $(h(Pn), { key: 0 })) : (v(), $(h(Qt), {
|
|
9067
9086
|
key: 1,
|
|
9068
9087
|
size: "large"
|
|
9069
9088
|
}))
|
|
@@ -9071,7 +9090,7 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
9071
9090
|
_: 2
|
|
9072
9091
|
}, 1032, ["class", "src"]),
|
|
9073
9092
|
ne("div", {
|
|
9074
|
-
class: Z(`${h(
|
|
9093
|
+
class: Z(`${h(xt)}__imageViewer--hover`),
|
|
9075
9094
|
onClick: A
|
|
9076
9095
|
}, [
|
|
9077
9096
|
ne("span", null, [
|
|
@@ -9084,9 +9103,9 @@ const Xi = { key: 0 }, Zi = ["innerHTML"], Ji = ["innerHTML"], eu = ["innerHTML"
|
|
|
9084
9103
|
_: 2
|
|
9085
9104
|
}, 1032, ["images"])) : (v(), W("span", {
|
|
9086
9105
|
key: 1,
|
|
9087
|
-
class: Z(`${h(
|
|
9106
|
+
class: Z(`${h(xt)}__imageViewer--placeholder`)
|
|
9088
9107
|
}, [
|
|
9089
|
-
x.name == `${h(t).t("头像")}` ? (v(), $(h(
|
|
9108
|
+
x.name == `${h(t).t("头像")}` ? (v(), $(h(Pn), {
|
|
9090
9109
|
key: 0,
|
|
9091
9110
|
size: "large"
|
|
9092
9111
|
})) : (v(), $(h(Qt), {
|
|
@@ -9129,7 +9148,7 @@ const lu = /* @__PURE__ */ ht(au, [["__scopeId", "data-v-45aeff49"]]), ru = /* @
|
|
|
9129
9148
|
const e = n, t = Ct(), o = st(), a = ft(), l = V(() => o.fullPath), r = V(() => {
|
|
9130
9149
|
var p;
|
|
9131
9150
|
return (p = e == null ? void 0 : e.board) == null ? void 0 : p.tabs;
|
|
9132
|
-
}), u =
|
|
9151
|
+
}), u = q(0), i = V(() => t.returnTabMenuItemActiveTab(l.value));
|
|
9133
9152
|
De(
|
|
9134
9153
|
() => i.value,
|
|
9135
9154
|
() => {
|
|
@@ -9148,13 +9167,13 @@ const lu = /* @__PURE__ */ ht(au, [["__scopeId", "data-v-45aeff49"]]), ru = /* @
|
|
|
9148
9167
|
console.error("tab切换出错", y);
|
|
9149
9168
|
}
|
|
9150
9169
|
}
|
|
9151
|
-
const s =
|
|
9170
|
+
const s = xe(), c = V(() => s.homeUrl);
|
|
9152
9171
|
function f() {
|
|
9153
9172
|
const p = o.fullPath, y = t.returnPrevTabMenuPathItemByPath(p);
|
|
9154
9173
|
y && (t.removeTabMenuItemByPath(p), console.log(y), y != "/home" ? a.push(y) : c.value && a.push({ path: c.value, query: Kt(c.value) }));
|
|
9155
9174
|
}
|
|
9156
9175
|
return (p, y) => {
|
|
9157
|
-
const N = Q("t-card"),
|
|
9176
|
+
const N = Q("t-card"), R = Q("t-tab-panel"), E = Q("t-tabs");
|
|
9158
9177
|
return v(), $(E, {
|
|
9159
9178
|
class: Z(`${h(jl)}`),
|
|
9160
9179
|
placement: "left",
|
|
@@ -9162,7 +9181,7 @@ const lu = /* @__PURE__ */ ht(au, [["__scopeId", "data-v-45aeff49"]]), ru = /* @
|
|
|
9162
9181
|
onChange: d
|
|
9163
9182
|
}, {
|
|
9164
9183
|
default: k(() => [
|
|
9165
|
-
(v(!0), W(de, null, Se(r.value, (S, L) => (v(), $(
|
|
9184
|
+
(v(!0), W(de, null, Se(r.value, (S, L) => (v(), $(R, {
|
|
9166
9185
|
key: `${L}${S.title}`,
|
|
9167
9186
|
value: L,
|
|
9168
9187
|
label: S.title,
|
|
@@ -9171,7 +9190,7 @@ const lu = /* @__PURE__ */ ht(au, [["__scopeId", "data-v-45aeff49"]]), ru = /* @
|
|
|
9171
9190
|
default: k(() => [
|
|
9172
9191
|
F(N, { bordered: !1 }, {
|
|
9173
9192
|
content: k(() => [
|
|
9174
|
-
S.board ? (v(), $(h(
|
|
9193
|
+
S.board ? (v(), $(h(Mn), {
|
|
9175
9194
|
key: S.title,
|
|
9176
9195
|
viewName: p.viewName,
|
|
9177
9196
|
board: S.board,
|
|
@@ -9202,16 +9221,16 @@ const su = /* @__PURE__ */ ue({
|
|
|
9202
9221
|
},
|
|
9203
9222
|
emits: ["close-dialog"],
|
|
9204
9223
|
setup(n, { emit: e }) {
|
|
9205
|
-
const { T: t } =
|
|
9224
|
+
const { T: t } = Me(), o = ft(), a = st(), l = xe(), r = ao(), u = lo(), i = n, { reload: d } = za(), s = e, c = V(() => {
|
|
9206
9225
|
var O;
|
|
9207
9226
|
return (O = i.board) == null ? void 0 : O.boardType;
|
|
9208
9227
|
}), f = V(() => {
|
|
9209
9228
|
var O, K, se;
|
|
9210
9229
|
return (O = i.board) != null && O.data ? (K = i.board) == null ? void 0 : K.data.dataId : (se = i.board) != null && se.tableData ? i.board.tableData.dataId : null;
|
|
9211
|
-
}), p =
|
|
9230
|
+
}), p = q([]), y = q({}), N = V(() => {
|
|
9212
9231
|
var O;
|
|
9213
9232
|
return (O = i.board) == null ? void 0 : O.header;
|
|
9214
|
-
}),
|
|
9233
|
+
}), R = q({}), E = q({}), S = V(
|
|
9215
9234
|
() => {
|
|
9216
9235
|
var O, K;
|
|
9217
9236
|
return N.value && (kt(N.value.buttons) && N.value.buttons.length || kt((O = N.value.searchBar) == null ? void 0 : O.filters) && ((K = N.value.searchBar) == null ? void 0 : K.filters.length));
|
|
@@ -9223,7 +9242,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9223
9242
|
const { viewName: O, ...K } = a.query;
|
|
9224
9243
|
return K;
|
|
9225
9244
|
}
|
|
9226
|
-
}), _ =
|
|
9245
|
+
}), _ = q({
|
|
9227
9246
|
count: 15,
|
|
9228
9247
|
page: 0,
|
|
9229
9248
|
totalCount: 0,
|
|
@@ -9231,8 +9250,8 @@ const su = /* @__PURE__ */ ue({
|
|
|
9231
9250
|
}), I = V(() => {
|
|
9232
9251
|
var K, se;
|
|
9233
9252
|
let O = {};
|
|
9234
|
-
return N.value &&
|
|
9235
|
-
}), m =
|
|
9253
|
+
return N.value && R.value && Object.assign(O, R.value), i.dialogProps && ((K = Object.keys(i.dialogProps)) != null && K.length) && Object.assign(O, i.dialogProps), c.value === "table" && Object.assign(O, _.value), i.serverProps && ((se = Object.keys(i.serverProps)) != null && se.length) && Object.assign(O, i.serverProps), Object.assign(O, L.value), O;
|
|
9254
|
+
}), m = q(!1), w = q(!0);
|
|
9236
9255
|
async function M() {
|
|
9237
9256
|
var O;
|
|
9238
9257
|
try {
|
|
@@ -9268,9 +9287,9 @@ const su = /* @__PURE__ */ ue({
|
|
|
9268
9287
|
f.value === K && M();
|
|
9269
9288
|
});
|
|
9270
9289
|
});
|
|
9271
|
-
const U = Ct(), P =
|
|
9290
|
+
const U = Ct(), P = Sn();
|
|
9272
9291
|
function C(O) {
|
|
9273
|
-
const K =
|
|
9292
|
+
const K = Ze(R.value), se = Ze(_.value);
|
|
9274
9293
|
U.findExistTabMenuItem({ path: O }) && P.setFormData(O, {
|
|
9275
9294
|
formData: K,
|
|
9276
9295
|
pagination: se
|
|
@@ -9289,7 +9308,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9289
9308
|
deep: !0
|
|
9290
9309
|
}
|
|
9291
9310
|
);
|
|
9292
|
-
const x =
|
|
9311
|
+
const x = q(!1), D = q(!1), A = q(""), T = q({}), B = q(), g = q();
|
|
9293
9312
|
async function b(O, K = {}) {
|
|
9294
9313
|
if ((O ?? "") != "") {
|
|
9295
9314
|
K.viewName = O;
|
|
@@ -9300,7 +9319,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9300
9319
|
async function z(O) {
|
|
9301
9320
|
x.value = O;
|
|
9302
9321
|
}
|
|
9303
|
-
const G =
|
|
9322
|
+
const G = q();
|
|
9304
9323
|
async function H(O, K = {}) {
|
|
9305
9324
|
var se, ee, ke;
|
|
9306
9325
|
try {
|
|
@@ -9311,8 +9330,8 @@ const su = /* @__PURE__ */ ue({
|
|
|
9311
9330
|
}
|
|
9312
9331
|
case "VIEW": {
|
|
9313
9332
|
let pe = {};
|
|
9314
|
-
(ee = O == null ? void 0 : O.props) == null || ee.forEach((
|
|
9315
|
-
|
|
9333
|
+
(ee = O == null ? void 0 : O.props) == null || ee.forEach((Te) => {
|
|
9334
|
+
Te.keyName && (K[Te.keyName] ?? "") != "" && (pe[Te.keyName] = K[Te.keyName]);
|
|
9316
9335
|
}), o.push({
|
|
9317
9336
|
path: "/view",
|
|
9318
9337
|
query: {
|
|
@@ -9325,11 +9344,11 @@ const su = /* @__PURE__ */ ue({
|
|
|
9325
9344
|
case "CONFIRM": {
|
|
9326
9345
|
let pe;
|
|
9327
9346
|
O.confirmMessage && O.confirmMessage != "" ? pe = mt.render(O.confirmMessage, { item: K }) : pe = `${t.t("是否进行%s")}`.replace("%s", `${O.name}`);
|
|
9328
|
-
let
|
|
9329
|
-
O.props ? O.props.forEach((
|
|
9330
|
-
|
|
9331
|
-
}) :
|
|
9332
|
-
const
|
|
9347
|
+
let Te = {};
|
|
9348
|
+
O.props ? O.props.forEach((nt) => {
|
|
9349
|
+
nt.keyName && (K[nt.keyName] ?? "") != "" && (Te[nt.keyName] = K[nt.keyName]);
|
|
9350
|
+
}) : Te = { ...K };
|
|
9351
|
+
const Ve = vn.confirm({
|
|
9333
9352
|
theme: "info",
|
|
9334
9353
|
header: O.name,
|
|
9335
9354
|
body: pe,
|
|
@@ -9346,19 +9365,19 @@ const su = /* @__PURE__ */ ue({
|
|
|
9346
9365
|
theme: "default"
|
|
9347
9366
|
},
|
|
9348
9367
|
onConfirm: async () => {
|
|
9349
|
-
|
|
9368
|
+
Ve.update({
|
|
9350
9369
|
confirmBtn: {
|
|
9351
9370
|
content: `${t.t("提交中")}`,
|
|
9352
9371
|
variant: "text",
|
|
9353
9372
|
loading: !0
|
|
9354
9373
|
}
|
|
9355
|
-
}), O.buttonId && (await Ae(
|
|
9374
|
+
}), O.buttonId && (await Ae(Te, O.buttonId) && Ve.update({
|
|
9356
9375
|
confirmBtn: {
|
|
9357
9376
|
content: `${t.t("确定")}`,
|
|
9358
9377
|
variant: "text",
|
|
9359
9378
|
loading: !1
|
|
9360
9379
|
}
|
|
9361
|
-
}),
|
|
9380
|
+
}), Ve.destroy());
|
|
9362
9381
|
},
|
|
9363
9382
|
onCancel: () => {
|
|
9364
9383
|
he.info(`${t.t("已取消%s")}`.replace("%s", `${O.name}`));
|
|
@@ -9396,7 +9415,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9396
9415
|
variant: "text",
|
|
9397
9416
|
loading: !1
|
|
9398
9417
|
}
|
|
9399
|
-
}), pe.destroy()) : (await
|
|
9418
|
+
}), pe.destroy()) : (await Y(O, me.value) && pe.update({
|
|
9400
9419
|
confirmBtn: {
|
|
9401
9420
|
content: `${t.t("确定")}`,
|
|
9402
9421
|
variant: "text",
|
|
@@ -9412,66 +9431,62 @@ const su = /* @__PURE__ */ ue({
|
|
|
9412
9431
|
}
|
|
9413
9432
|
case "LINK": {
|
|
9414
9433
|
let pe = {};
|
|
9415
|
-
(ke = O == null ? void 0 : O.props) == null || ke.forEach((
|
|
9416
|
-
|
|
9434
|
+
(ke = O == null ? void 0 : O.props) == null || ke.forEach((Ve) => {
|
|
9435
|
+
Ve.keyName && (K[Ve.keyName] ?? "") != "" && (pe[Ve.keyName] = K[Ve.keyName]);
|
|
9417
9436
|
});
|
|
9418
|
-
const
|
|
9437
|
+
const Te = _o.decode(mt.render(O.link, { item: K }));
|
|
9419
9438
|
if (O.outLink) {
|
|
9420
|
-
const
|
|
9439
|
+
const Ve = wt(`${location.origin}${Te}`, {
|
|
9421
9440
|
...pe,
|
|
9422
9441
|
token: l.token,
|
|
9423
9442
|
lang: l.userLang
|
|
9424
9443
|
});
|
|
9425
|
-
window.open(`${
|
|
9444
|
+
window.open(`${Ve}`, "_blank");
|
|
9426
9445
|
return;
|
|
9427
9446
|
}
|
|
9428
|
-
if (!en(
|
|
9429
|
-
er(
|
|
9430
|
-
path:
|
|
9447
|
+
if (!en(Te))
|
|
9448
|
+
er(Te) ? window.open(`${location.origin}${Te}`) : o.push({
|
|
9449
|
+
path: Te,
|
|
9431
9450
|
query: {
|
|
9432
9451
|
...pe
|
|
9433
9452
|
}
|
|
9434
9453
|
});
|
|
9435
9454
|
else {
|
|
9436
|
-
const
|
|
9455
|
+
const Ve = wt(Te, {
|
|
9437
9456
|
...pe,
|
|
9438
9457
|
token: l.token,
|
|
9439
9458
|
lang: l.userLang
|
|
9440
9459
|
});
|
|
9441
|
-
window.open(
|
|
9460
|
+
window.open(Ve, "_blank");
|
|
9442
9461
|
}
|
|
9443
9462
|
break;
|
|
9444
9463
|
}
|
|
9445
9464
|
case "DOWNLOAD": {
|
|
9446
9465
|
let pe = {};
|
|
9447
|
-
if (O.props && O.props.forEach((
|
|
9448
|
-
|
|
9449
|
-
}),
|
|
9450
|
-
|
|
9451
|
-
if (
|
|
9452
|
-
const
|
|
9453
|
-
pe[
|
|
9454
|
-
...pe[
|
|
9455
|
-
|
|
9456
|
-
] : pe[
|
|
9466
|
+
if (O.props && O.props.forEach((Te) => {
|
|
9467
|
+
Te.keyName && (K[Te.keyName] ?? "") != "" && (pe[Te.keyName] = K[Te.keyName]);
|
|
9468
|
+
}), _e.value && _e.value.length > 0 && O.props && O.props.forEach((Te) => {
|
|
9469
|
+
_e.value.forEach((Ve) => {
|
|
9470
|
+
if (Te.keyName && fe(Ve, Te.keyName)) {
|
|
9471
|
+
const nt = fe(Ve, Te.keyName);
|
|
9472
|
+
pe[Te.keyName] ? pe[Te.keyName] = [
|
|
9473
|
+
...pe[Te.keyName],
|
|
9474
|
+
nt
|
|
9475
|
+
] : pe[Te.keyName] = [nt];
|
|
9457
9476
|
}
|
|
9458
9477
|
});
|
|
9459
9478
|
}), (O.buttonId ?? "") != "") {
|
|
9460
|
-
const
|
|
9479
|
+
const Te = await oe(
|
|
9461
9480
|
pe,
|
|
9462
9481
|
O.buttonId
|
|
9463
9482
|
);
|
|
9464
|
-
if (
|
|
9465
|
-
const { url:
|
|
9466
|
-
$o(
|
|
9483
|
+
if (Te) {
|
|
9484
|
+
const { url: Ve, filename: nt } = Te;
|
|
9485
|
+
$o(Ve, nt);
|
|
9467
9486
|
}
|
|
9468
9487
|
} else if ((O.downloadUrl ?? "") != "") {
|
|
9469
|
-
const
|
|
9470
|
-
|
|
9471
|
-
const Je = be.split("/").slice(-1)[0];
|
|
9472
|
-
$o(xe, Je, "file");
|
|
9473
|
-
} else
|
|
9474
|
-
he.info(`${t.t("未设置下载链接")}`);
|
|
9488
|
+
const Te = _o.decode(mt.render(O.downloadUrl, { item: K })), Ve = wt(Te, pe, !1);
|
|
9489
|
+
(Te ?? "") != "" && (Ve ?? !1) ? $o(Ve) : he.info(`${t.t("未设置下载链接")}`);
|
|
9475
9490
|
}
|
|
9476
9491
|
break;
|
|
9477
9492
|
}
|
|
@@ -9484,29 +9499,29 @@ const su = /* @__PURE__ */ ue({
|
|
|
9484
9499
|
}
|
|
9485
9500
|
function ae(O) {
|
|
9486
9501
|
var se, ee;
|
|
9487
|
-
|
|
9502
|
+
R.value = O, _.value = {
|
|
9488
9503
|
count: 15,
|
|
9489
9504
|
page: 0,
|
|
9490
9505
|
totalCount: 0,
|
|
9491
9506
|
pageCount: 0
|
|
9492
9507
|
}, M();
|
|
9493
|
-
let K =
|
|
9508
|
+
let K = Ze(O);
|
|
9494
9509
|
if (Object.keys(K).length)
|
|
9495
9510
|
for (const ke in K)
|
|
9496
9511
|
(((ee = (se = N.value) == null ? void 0 : se.searchBar.filters.find((pe) => pe.keyName == ke)) == null ? void 0 : ee.itemType) != "text_input" || K[ke] == "") && delete K[ke];
|
|
9497
9512
|
E.value = K;
|
|
9498
9513
|
}
|
|
9499
|
-
const me =
|
|
9514
|
+
const me = q([]);
|
|
9500
9515
|
function J(O) {
|
|
9501
9516
|
me.value = O;
|
|
9502
9517
|
}
|
|
9503
|
-
const
|
|
9518
|
+
const _e = q([]);
|
|
9504
9519
|
function Re(O) {
|
|
9505
|
-
|
|
9520
|
+
_e.value = O;
|
|
9506
9521
|
}
|
|
9507
|
-
const
|
|
9508
|
-
(K) => K.colKey == "row-select" || $e.value.indexOf(K.colKey) !== -1
|
|
9509
|
-
) :
|
|
9522
|
+
const Ce = q([]), ge = V(() => $e.value.length ? Ce.value.filter(
|
|
9523
|
+
(K, se) => K.colKey == "row-select" || $e.value.indexOf(K.colKey) !== -1 || se == 0 || se == Ce.value.length - 1
|
|
9524
|
+
) : Ce.value), Ie = q([]), $e = q([]), le = ua();
|
|
9510
9525
|
async function ce(O) {
|
|
9511
9526
|
const K = `${i.viewName}_${c.value}`;
|
|
9512
9527
|
await le.setColumnData(K, O) && ($e.value = O, he.success(t.t("设置成功")), d());
|
|
@@ -9517,19 +9532,19 @@ const su = /* @__PURE__ */ ue({
|
|
|
9517
9532
|
let ee = [];
|
|
9518
9533
|
try {
|
|
9519
9534
|
ee = Xl((K = i.board) == null ? void 0 : K.columns);
|
|
9520
|
-
} catch (
|
|
9521
|
-
console.error("生成tableColumn出错",
|
|
9535
|
+
} catch (Te) {
|
|
9536
|
+
console.error("生成tableColumn出错", Te);
|
|
9522
9537
|
}
|
|
9523
|
-
|
|
9538
|
+
Ce.value = ee, Ie.value = Zl(
|
|
9524
9539
|
(se = i.board) == null ? void 0 : se.columns
|
|
9525
9540
|
);
|
|
9526
9541
|
const ke = `${i.viewName}_${c.value}`, pe = le.getColumnData(ke);
|
|
9527
|
-
pe ? $e.value =
|
|
9528
|
-
Ie.value.map((
|
|
9542
|
+
pe ? $e.value = Ze(pe) : $e.value = Ze(
|
|
9543
|
+
Ie.value.map((Te) => Te.colKey)
|
|
9529
9544
|
);
|
|
9530
9545
|
}
|
|
9531
9546
|
}
|
|
9532
|
-
function
|
|
9547
|
+
function be(O) {
|
|
9533
9548
|
Object.assign(_.value, {
|
|
9534
9549
|
page: O.current - 1,
|
|
9535
9550
|
count: O.pageSize
|
|
@@ -9544,7 +9559,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9544
9559
|
viewName: i.viewName
|
|
9545
9560
|
})).state === 200 ? (he.success(`${t.t("提交成功")}`), G.value && (G.value.formOkButtonLoading = !1), !0) : (G.value && (G.value.formOkButtonLoading = !1), !1);
|
|
9546
9561
|
}
|
|
9547
|
-
function
|
|
9562
|
+
function j(O, K) {
|
|
9548
9563
|
if (O.itemType == "selector" || O.itemType == "time_selector" || O.itemType == "date_time_selector" || O.itemType == "tree_check_box" || O.itemType === "multi_tree_selector" || O.itemType === "tree_selector") {
|
|
9549
9564
|
const se = vn.confirm({
|
|
9550
9565
|
theme: "info",
|
|
@@ -9570,7 +9585,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9570
9585
|
} else
|
|
9571
9586
|
Ae(K, O.buttonId);
|
|
9572
9587
|
}
|
|
9573
|
-
async function
|
|
9588
|
+
async function Y(O, K) {
|
|
9574
9589
|
let se = {};
|
|
9575
9590
|
return Object.keys(I.value).length && Object.assign(se, I.value), (await ds({
|
|
9576
9591
|
viewName: i.viewName,
|
|
@@ -9597,7 +9612,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9597
9612
|
z(!1);
|
|
9598
9613
|
});
|
|
9599
9614
|
}
|
|
9600
|
-
async function
|
|
9615
|
+
async function we(O, K) {
|
|
9601
9616
|
await Ae(O, K) && ie();
|
|
9602
9617
|
}
|
|
9603
9618
|
function ie() {
|
|
@@ -9631,7 +9646,7 @@ const su = /* @__PURE__ */ ue({
|
|
|
9631
9646
|
board: O.board,
|
|
9632
9647
|
formData: y.value,
|
|
9633
9648
|
onConfirmForm: Ae,
|
|
9634
|
-
onConfirmAndClose:
|
|
9649
|
+
onConfirmAndClose: we,
|
|
9635
9650
|
onCloseDialog: ie
|
|
9636
9651
|
}, null, 8, ["viewName", "board", "formData"])) : X("", !0),
|
|
9637
9652
|
c.value === "table" ? (v(), $(lu, {
|
|
@@ -9644,10 +9659,10 @@ const su = /* @__PURE__ */ ue({
|
|
|
9644
9659
|
paginationProps: _.value,
|
|
9645
9660
|
headerFilterProps: E.value,
|
|
9646
9661
|
onTableButtonAction: H,
|
|
9647
|
-
onTableFormConfirm:
|
|
9662
|
+
onTableFormConfirm: j,
|
|
9648
9663
|
onReturnSelectedKey: J,
|
|
9649
9664
|
onReturnSelectedRow: Re,
|
|
9650
|
-
onReturnPaginationProps:
|
|
9665
|
+
onReturnPaginationProps: be
|
|
9651
9666
|
}, null, 8, ["viewName", "board", "tableColumns", "displayColumns", "tableData", "paginationProps", "headerFilterProps"])) : X("", !0),
|
|
9652
9667
|
c.value === "tab" ? (v(), $(ru, {
|
|
9653
9668
|
key: 3,
|
|
@@ -9675,17 +9690,17 @@ const su = /* @__PURE__ */ ue({
|
|
|
9675
9690
|
};
|
|
9676
9691
|
}
|
|
9677
9692
|
});
|
|
9678
|
-
const
|
|
9693
|
+
const Mn = qe(su), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9679
9694
|
__proto__: null,
|
|
9680
|
-
GBoard:
|
|
9681
|
-
default:
|
|
9695
|
+
GBoard: Mn,
|
|
9696
|
+
default: Mn
|
|
9682
9697
|
}, Symbol.toStringTag, { value: "Module" })), iu = /* @__PURE__ */ ue({
|
|
9683
9698
|
__name: "index",
|
|
9684
9699
|
props: {
|
|
9685
9700
|
config: {}
|
|
9686
9701
|
},
|
|
9687
9702
|
setup(n) {
|
|
9688
|
-
const e = ft(), t = st(), o =
|
|
9703
|
+
const e = ft(), t = st(), o = xe(), a = Ct(), l = ao(), r = n, u = q(""), i = V(() => o.isUserLogin), d = V(() => o.homeUrl);
|
|
9689
9704
|
Jt(async () => {
|
|
9690
9705
|
i.value || (await o.initUserConfig(r.config), await a.initTabMenu());
|
|
9691
9706
|
}), Ue(async () => {
|
|
@@ -9713,7 +9728,7 @@ const Cn = Ye(su), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9713
9728
|
const { viewName: S, ...L } = t.query;
|
|
9714
9729
|
return L;
|
|
9715
9730
|
}
|
|
9716
|
-
}), f =
|
|
9731
|
+
}), f = q(), p = V(() => {
|
|
9717
9732
|
var S;
|
|
9718
9733
|
return ((S = f.value) == null ? void 0 : S.viewName) ?? "";
|
|
9719
9734
|
});
|
|
@@ -9748,13 +9763,13 @@ const Cn = Ye(su), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9748
9763
|
console.log("getOneViewApi", M);
|
|
9749
9764
|
}
|
|
9750
9765
|
}
|
|
9751
|
-
const N = V(() => o.isGlobalLoaded),
|
|
9766
|
+
const N = V(() => o.isGlobalLoaded), R = V(() => {
|
|
9752
9767
|
var S;
|
|
9753
9768
|
return ((S = f.value) == null ? void 0 : S.boards.map((L) => L.boardType)) ?? [];
|
|
9754
9769
|
}), E = V(() => {
|
|
9755
9770
|
var S;
|
|
9756
9771
|
return {
|
|
9757
|
-
...(S =
|
|
9772
|
+
...(S = R.value) != null && S.includes("tab") ? {
|
|
9758
9773
|
title: u.value
|
|
9759
9774
|
} : {}
|
|
9760
9775
|
};
|
|
@@ -9765,7 +9780,7 @@ const Cn = Ye(su), Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9765
9780
|
return [
|
|
9766
9781
|
N.value ? (v(!0), W(de, { key: 0 }, Se((_ = f.value) == null ? void 0 : _.boards, (I) => {
|
|
9767
9782
|
var m, w;
|
|
9768
|
-
return v(), $(h(
|
|
9783
|
+
return v(), $(h(Mn), {
|
|
9769
9784
|
key: `${(m = f.value) == null ? void 0 : m.viewName}_${I.boardType}`,
|
|
9770
9785
|
board: I,
|
|
9771
9786
|
viewName: p.value,
|
|
@@ -10019,13 +10034,13 @@ var cu = {
|
|
|
10019
10034
|
* (c) 2023 tdesign
|
|
10020
10035
|
* @license MIT
|
|
10021
10036
|
*/
|
|
10022
|
-
function
|
|
10037
|
+
function _n(n) {
|
|
10023
10038
|
"@babel/helpers - typeof";
|
|
10024
|
-
return
|
|
10039
|
+
return _n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
10025
10040
|
return typeof e;
|
|
10026
10041
|
} : function(e) {
|
|
10027
10042
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10028
|
-
},
|
|
10043
|
+
}, _n(n);
|
|
10029
10044
|
}
|
|
10030
10045
|
/**
|
|
10031
10046
|
* tdesign v1.5.1
|
|
@@ -10037,7 +10052,7 @@ var Ha = { exports: {} };
|
|
|
10037
10052
|
(function(t, o) {
|
|
10038
10053
|
n.exports = o();
|
|
10039
10054
|
})(fo, function() {
|
|
10040
|
-
var t = 1e3, o = 6e4, a = 36e5, l = "millisecond", r = "second", u = "minute", i = "hour", d = "day", s = "week", c = "month", f = "quarter", p = "year", y = "date", N = "Invalid Date",
|
|
10055
|
+
var t = 1e3, o = 6e4, a = 36e5, l = "millisecond", r = "second", u = "minute", i = "hour", d = "day", s = "week", c = "month", f = "quarter", p = "year", y = "date", N = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = {
|
|
10041
10056
|
name: "en",
|
|
10042
10057
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
10043
10058
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -10102,7 +10117,7 @@ var Ha = { exports: {} };
|
|
|
10102
10117
|
}, U = function(A, T) {
|
|
10103
10118
|
if (w(A))
|
|
10104
10119
|
return A.clone();
|
|
10105
|
-
var B =
|
|
10120
|
+
var B = _n(T) == "object" ? T : {};
|
|
10106
10121
|
return B.date = A, B.args = arguments, new C(B);
|
|
10107
10122
|
}, P = _;
|
|
10108
10123
|
P.l = M, P.i = w, P.w = function(D, A) {
|
|
@@ -10128,7 +10143,7 @@ var Ha = { exports: {} };
|
|
|
10128
10143
|
if (g instanceof Date)
|
|
10129
10144
|
return new Date(g);
|
|
10130
10145
|
if (typeof g == "string" && !/Z$/i.test(g)) {
|
|
10131
|
-
var z = g.match(
|
|
10146
|
+
var z = g.match(R);
|
|
10132
10147
|
if (z) {
|
|
10133
10148
|
var G = z[2] - 1 || 0, H = (z[7] || "0").substring(0, 3);
|
|
10134
10149
|
return b ? new Date(Date.UTC(z[1], G, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, H)) : new Date(z[1], G, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, H);
|
|
@@ -10162,24 +10177,24 @@ var Ha = { exports: {} };
|
|
|
10162
10177
|
return b ? le : le.endOf(d);
|
|
10163
10178
|
}, H = function(Ie, $e) {
|
|
10164
10179
|
return P.w(g.toDate()[Ie].apply(g.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), g);
|
|
10165
|
-
}, ae = this.$W, me = this.$M, J = this.$D,
|
|
10180
|
+
}, ae = this.$W, me = this.$M, J = this.$D, _e = "set" + (this.$u ? "UTC" : "");
|
|
10166
10181
|
switch (z) {
|
|
10167
10182
|
case p:
|
|
10168
10183
|
return b ? G(1, 0) : G(31, 11);
|
|
10169
10184
|
case c:
|
|
10170
10185
|
return b ? G(1, me) : G(0, me + 1);
|
|
10171
10186
|
case s:
|
|
10172
|
-
var Re = this.$locale().weekStart || 0,
|
|
10173
|
-
return G(b ? J -
|
|
10187
|
+
var Re = this.$locale().weekStart || 0, Ce = (ae < Re ? ae + 7 : ae) - Re;
|
|
10188
|
+
return G(b ? J - Ce : J + (6 - Ce), me);
|
|
10174
10189
|
case d:
|
|
10175
10190
|
case y:
|
|
10176
|
-
return H(
|
|
10191
|
+
return H(_e + "Hours", 0);
|
|
10177
10192
|
case i:
|
|
10178
|
-
return H(
|
|
10193
|
+
return H(_e + "Minutes", 1);
|
|
10179
10194
|
case u:
|
|
10180
|
-
return H(
|
|
10195
|
+
return H(_e + "Seconds", 2);
|
|
10181
10196
|
case r:
|
|
10182
|
-
return H(
|
|
10197
|
+
return H(_e + "Milliseconds", 3);
|
|
10183
10198
|
default:
|
|
10184
10199
|
return this.clone();
|
|
10185
10200
|
}
|
|
@@ -10201,8 +10216,8 @@ var Ha = { exports: {} };
|
|
|
10201
10216
|
var g, b = this;
|
|
10202
10217
|
T = Number(T);
|
|
10203
10218
|
var z = P.p(B), G = function(J) {
|
|
10204
|
-
var
|
|
10205
|
-
return P.w(
|
|
10219
|
+
var _e = U(b);
|
|
10220
|
+
return P.w(_e.date(_e.date() + Math.round(J * T)), b);
|
|
10206
10221
|
};
|
|
10207
10222
|
if (z === c)
|
|
10208
10223
|
return this.set(c, this.$M + T);
|
|
@@ -10220,11 +10235,11 @@ var Ha = { exports: {} };
|
|
|
10220
10235
|
var B = this, g = this.$locale();
|
|
10221
10236
|
if (!this.isValid())
|
|
10222
10237
|
return g.invalidDate || N;
|
|
10223
|
-
var b = T || "YYYY-MM-DDTHH:mm:ssZ", z = P.z(this), G = this.$H, H = this.$m, ae = this.$M, me = g.weekdays, J = g.months,
|
|
10238
|
+
var b = T || "YYYY-MM-DDTHH:mm:ssZ", z = P.z(this), G = this.$H, H = this.$m, ae = this.$M, me = g.weekdays, J = g.months, _e = g.meridiem, Re = function($e, le, ce, ve) {
|
|
10224
10239
|
return $e && ($e[le] || $e(B, b)) || ce[le].slice(0, ve);
|
|
10225
|
-
},
|
|
10240
|
+
}, Ce = function($e) {
|
|
10226
10241
|
return P.s(G % 12 || 12, $e, "0");
|
|
10227
|
-
}, ge =
|
|
10242
|
+
}, ge = _e || function(Ie, $e, le) {
|
|
10228
10243
|
var ce = Ie < 12 ? "AM" : "PM";
|
|
10229
10244
|
return le ? ce.toLowerCase() : ce;
|
|
10230
10245
|
};
|
|
@@ -10260,9 +10275,9 @@ var Ha = { exports: {} };
|
|
|
10260
10275
|
case "HH":
|
|
10261
10276
|
return P.s(G, 2, "0");
|
|
10262
10277
|
case "h":
|
|
10263
|
-
return
|
|
10278
|
+
return Ce(1);
|
|
10264
10279
|
case "hh":
|
|
10265
|
-
return
|
|
10280
|
+
return Ce(2);
|
|
10266
10281
|
case "a":
|
|
10267
10282
|
return ge(G, H, !0);
|
|
10268
10283
|
case "A":
|
|
@@ -10361,7 +10376,7 @@ var du = { exports: {} };
|
|
|
10361
10376
|
n.exports = o(Ha.exports);
|
|
10362
10377
|
})(fo, function(t) {
|
|
10363
10378
|
function o(r) {
|
|
10364
|
-
return r &&
|
|
10379
|
+
return r && _n(r) == "object" && "default" in r ? r : {
|
|
10365
10380
|
default: r
|
|
10366
10381
|
};
|
|
10367
10382
|
}
|
|
@@ -10632,8 +10647,8 @@ const fu = { class: "gConfigProvider" }, pu = /* @__PURE__ */ ue({
|
|
|
10632
10647
|
localeConfig: {}
|
|
10633
10648
|
},
|
|
10634
10649
|
setup(n) {
|
|
10635
|
-
const { T: e, i18n: t } =
|
|
10636
|
-
ze(
|
|
10650
|
+
const { T: e, i18n: t } = Me();
|
|
10651
|
+
ze(Xn, null);
|
|
10637
10652
|
const o = n, a = V(() => ({ ...o.localeConfig })), l = V(() => ({ ...o.dateLocaleConfig })), r = V(() => [...o.layoutHeaderOperations.slice(0, 5)]), u = V(() => ({
|
|
10638
10653
|
enableDefaultOperations: !0,
|
|
10639
10654
|
...o.layoutHeaderConfig
|
|
@@ -10641,13 +10656,13 @@ const fu = { class: "gConfigProvider" }, pu = /* @__PURE__ */ ue({
|
|
|
10641
10656
|
enableHoverMenu: !0,
|
|
10642
10657
|
enableSideMenu: !0,
|
|
10643
10658
|
...o.sideMenuConfig
|
|
10644
|
-
})), d = V(() => t.global.locale.value), s =
|
|
10659
|
+
})), d = V(() => t.global.locale.value), s = q({});
|
|
10645
10660
|
return nl(() => {
|
|
10646
10661
|
s.value = {
|
|
10647
10662
|
...d.value === "zh-CN" ? mu : cu,
|
|
10648
10663
|
...o.globalConfig
|
|
10649
10664
|
};
|
|
10650
|
-
}), At(
|
|
10665
|
+
}), At(Xn, {
|
|
10651
10666
|
GLayoutHeaderOperationsRef: r,
|
|
10652
10667
|
GLayoutHeaderConfigRef: u,
|
|
10653
10668
|
LocaleConfigRef: a,
|
|
@@ -10662,9 +10677,9 @@ const fu = { class: "gConfigProvider" }, pu = /* @__PURE__ */ ue({
|
|
|
10662
10677
|
}, 8, ["globalConfig"])
|
|
10663
10678
|
]));
|
|
10664
10679
|
}
|
|
10665
|
-
}), hu =
|
|
10680
|
+
}), hu = qe(pu), vu = {
|
|
10666
10681
|
mounted(n, e) {
|
|
10667
|
-
const { value: t } = e, a =
|
|
10682
|
+
const { value: t } = e, a = xe().userPermission;
|
|
10668
10683
|
t && Array.isArray(t) && t.length > 0 && (a.some((r) => t.includes(r)) || n.parentNode && n.parentNode.removeChild(n));
|
|
10669
10684
|
}
|
|
10670
10685
|
}, Wo = {
|
|
@@ -10675,7 +10690,7 @@ const fu = { class: "gConfigProvider" }, pu = /* @__PURE__ */ ue({
|
|
|
10675
10690
|
n.directive(e, Wo[e]);
|
|
10676
10691
|
});
|
|
10677
10692
|
}
|
|
10678
|
-
}, yu = "@gonsin/gview", bu = "2.0.
|
|
10693
|
+
}, yu = "@gonsin/gview", bu = "2.0.95", wu = "dist/index.mjs", Tu = "dist/types/index.d.ts", ku = [
|
|
10679
10694
|
"dist",
|
|
10680
10695
|
"README.md",
|
|
10681
10696
|
"CHANGELOG.md"
|
|
@@ -10765,13 +10780,13 @@ const fu = { class: "gConfigProvider" }, pu = /* @__PURE__ */ ue({
|
|
|
10765
10780
|
saveMenus: "/restapi/menus"
|
|
10766
10781
|
};
|
|
10767
10782
|
function Iu(n) {
|
|
10768
|
-
return
|
|
10783
|
+
return Qe.put(po.saveMenus, n);
|
|
10769
10784
|
}
|
|
10770
10785
|
function Lu() {
|
|
10771
|
-
return
|
|
10786
|
+
return Qe.post(po.getMenus);
|
|
10772
10787
|
}
|
|
10773
10788
|
function Su() {
|
|
10774
|
-
return
|
|
10789
|
+
return Qe.post(po.getMenus, no.stringify({ currentMenu: !1 }));
|
|
10775
10790
|
}
|
|
10776
10791
|
const Du = [
|
|
10777
10792
|
{
|
|
@@ -11311,7 +11326,7 @@ const Du = [
|
|
|
11311
11326
|
}, Pu = /* @__PURE__ */ ue({
|
|
11312
11327
|
__name: "GMenuManage",
|
|
11313
11328
|
setup(n) {
|
|
11314
|
-
const { T: e } =
|
|
11329
|
+
const { T: e } = Me(), t = xe(), o = q(`${e.t("菜单管理")}`), a = [
|
|
11315
11330
|
{
|
|
11316
11331
|
title: e.t("排序"),
|
|
11317
11332
|
colKey: "drag",
|
|
@@ -11329,18 +11344,18 @@ const Du = [
|
|
|
11329
11344
|
colKey: "operations",
|
|
11330
11345
|
cell: "operations"
|
|
11331
11346
|
}
|
|
11332
|
-
], l = V(() => t.userEdificeKey), r =
|
|
11333
|
-
r.value = !r.value, r.value ?
|
|
11334
|
-
}, i =
|
|
11347
|
+
], l = V(() => t.userEdificeKey), r = q(!0), u = () => {
|
|
11348
|
+
r.value = !r.value, r.value ? R.value.expandAll() : R.value.foldAll();
|
|
11349
|
+
}, i = q(!1), d = q(""), s = q([]), c = q([]);
|
|
11335
11350
|
async function f() {
|
|
11336
|
-
const
|
|
11337
|
-
if (
|
|
11338
|
-
const
|
|
11339
|
-
s.value =
|
|
11351
|
+
const j = await Lu();
|
|
11352
|
+
if (j.state == 200) {
|
|
11353
|
+
const Y = wn(j.data, null, 1);
|
|
11354
|
+
s.value = Y, c.value = Y;
|
|
11340
11355
|
} else
|
|
11341
|
-
console.error("getMenusApi",
|
|
11356
|
+
console.error("getMenusApi", j);
|
|
11342
11357
|
}
|
|
11343
|
-
const p =
|
|
11358
|
+
const p = q({
|
|
11344
11359
|
edificeKey: "",
|
|
11345
11360
|
parent: null,
|
|
11346
11361
|
name: "",
|
|
@@ -11368,7 +11383,7 @@ const Du = [
|
|
|
11368
11383
|
trigger: "blur"
|
|
11369
11384
|
},
|
|
11370
11385
|
{
|
|
11371
|
-
validator: (
|
|
11386
|
+
validator: (j) => T(j, "parent"),
|
|
11372
11387
|
trigger: "blur",
|
|
11373
11388
|
type: "error",
|
|
11374
11389
|
message: `${e.t("输入的菜单标识已存在")}`
|
|
@@ -11376,23 +11391,23 @@ const Du = [
|
|
|
11376
11391
|
],
|
|
11377
11392
|
children: [
|
|
11378
11393
|
{
|
|
11379
|
-
validator: (
|
|
11394
|
+
validator: (j) => j.every((Y) => !(Y.title.trim() === "" || Y.name.trim() === "")),
|
|
11380
11395
|
message: `${e.t("分组或菜单项存在内容为空")}`,
|
|
11381
11396
|
trigger: "blur",
|
|
11382
11397
|
type: "error"
|
|
11383
11398
|
},
|
|
11384
11399
|
{
|
|
11385
|
-
validator: (
|
|
11386
|
-
`${e.t("%s 与存在的菜单名称标识重复了")}`.replace("%s", `${
|
|
11400
|
+
validator: (j) => j.every((Y) => T(Y.name, "children") ? !0 : (he.error(
|
|
11401
|
+
`${e.t("%s 与存在的菜单名称标识重复了")}`.replace("%s", `${Y.name}`)
|
|
11387
11402
|
), !1)),
|
|
11388
11403
|
message: `${e.t("输入的菜单标识存在重复项")}`,
|
|
11389
11404
|
trigger: "blur",
|
|
11390
11405
|
type: "error"
|
|
11391
11406
|
}
|
|
11392
11407
|
]
|
|
11393
|
-
}, N =
|
|
11394
|
-
var
|
|
11395
|
-
return (
|
|
11408
|
+
}, N = q(), R = V(() => N.value.tTableRef), E = q(), S = V(() => E.value.tFormRef), L = V(() => {
|
|
11409
|
+
var j;
|
|
11410
|
+
return (j = R.value) == null ? void 0 : j.getTreeNode();
|
|
11396
11411
|
}), _ = V(() => {
|
|
11397
11412
|
switch (d.value) {
|
|
11398
11413
|
case "addGroup":
|
|
@@ -11407,78 +11422,78 @@ const Du = [
|
|
|
11407
11422
|
return "";
|
|
11408
11423
|
}
|
|
11409
11424
|
}), I = V(() => L.value ? Yn(L.value) : []), m = V(
|
|
11410
|
-
() => I.value.filter((
|
|
11411
|
-
label:
|
|
11412
|
-
value:
|
|
11425
|
+
() => I.value.filter((j) => !j.url).map((j) => ({
|
|
11426
|
+
label: j.title,
|
|
11427
|
+
value: j.name
|
|
11413
11428
|
}))
|
|
11414
11429
|
), w = st(), M = Ct();
|
|
11415
11430
|
function U() {
|
|
11416
|
-
const { fullPath:
|
|
11431
|
+
const { fullPath: j, query: Y } = w, oe = decodeURIComponent(j);
|
|
11417
11432
|
M.appendTabMenuItem({
|
|
11418
11433
|
title: o.value,
|
|
11419
11434
|
path: oe,
|
|
11420
|
-
query:
|
|
11435
|
+
query: Y
|
|
11421
11436
|
});
|
|
11422
11437
|
}
|
|
11423
|
-
const P =
|
|
11424
|
-
function C(
|
|
11425
|
-
return
|
|
11438
|
+
const P = q([]);
|
|
11439
|
+
function C(j) {
|
|
11440
|
+
return j && j.length ? j.filter((Y) => Y.url && Y.url !== "") : [];
|
|
11426
11441
|
}
|
|
11427
|
-
const x = V(() => P.value.map((
|
|
11428
|
-
label: `${
|
|
11429
|
-
value:
|
|
11442
|
+
const x = V(() => P.value.map((j) => ({
|
|
11443
|
+
label: `${j.title}-${j.url}`,
|
|
11444
|
+
value: j.url
|
|
11430
11445
|
})));
|
|
11431
|
-
function D(
|
|
11432
|
-
return P.value.length ? P.value.some((
|
|
11446
|
+
function D(j) {
|
|
11447
|
+
return P.value.length ? P.value.some((Y) => Y.url === j.url) : !1;
|
|
11433
11448
|
}
|
|
11434
11449
|
async function A() {
|
|
11435
|
-
const
|
|
11436
|
-
|
|
11450
|
+
const j = await Su();
|
|
11451
|
+
j.state == 200 ? P.value = C(j.data) : console.error(`getInnerMenuOptionList ${j.message}`);
|
|
11437
11452
|
}
|
|
11438
11453
|
Ue(() => {
|
|
11439
11454
|
f(), A(), U();
|
|
11440
11455
|
});
|
|
11441
|
-
function T(
|
|
11456
|
+
function T(j, Y) {
|
|
11442
11457
|
var oe, ye;
|
|
11443
11458
|
if (I.value && I.value.length) {
|
|
11444
|
-
const
|
|
11459
|
+
const we = I.value.map((ie) => {
|
|
11445
11460
|
if (d.value == "addGroup")
|
|
11446
11461
|
return ie.name;
|
|
11447
11462
|
if (ie.parent != p.value.name)
|
|
11448
11463
|
return ie.name;
|
|
11449
11464
|
});
|
|
11450
|
-
if ((d.value == "addGroup" ||
|
|
11465
|
+
if ((d.value == "addGroup" || Y == "children") && we.includes(j))
|
|
11451
11466
|
return !1;
|
|
11452
11467
|
}
|
|
11453
|
-
if (
|
|
11468
|
+
if (Y == "parent") {
|
|
11454
11469
|
if (d.value == "addGroup" && p.value.children && (oe = p.value.children) != null && oe.length)
|
|
11455
|
-
return p.value.children.every((
|
|
11456
|
-
} else if (
|
|
11457
|
-
if (
|
|
11470
|
+
return p.value.children.every((we) => we.name !== j);
|
|
11471
|
+
} else if (Y == "children") {
|
|
11472
|
+
if (j === p.value.name)
|
|
11458
11473
|
return !1;
|
|
11459
|
-
const
|
|
11460
|
-
(O, K) =>
|
|
11474
|
+
const we = (ye = p.value.children) == null ? void 0 : ye.map((O) => O.name), ie = we == null ? void 0 : we.filter(
|
|
11475
|
+
(O, K) => we.indexOf(O) !== we.lastIndexOf(O) && we.indexOf(O) === K
|
|
11461
11476
|
);
|
|
11462
11477
|
if (ie != null && ie.length)
|
|
11463
11478
|
return !1;
|
|
11464
11479
|
}
|
|
11465
11480
|
return !0;
|
|
11466
11481
|
}
|
|
11467
|
-
function B(
|
|
11468
|
-
return
|
|
11482
|
+
function B(j) {
|
|
11483
|
+
return j && j.length ? j.filter((Y) => !Y.isGroup) : [];
|
|
11469
11484
|
}
|
|
11470
|
-
function g(
|
|
11471
|
-
return
|
|
11485
|
+
function g(j) {
|
|
11486
|
+
return j && j.length ? j.filter((Y) => Y.isGroup) : [];
|
|
11472
11487
|
}
|
|
11473
|
-
function b(
|
|
11474
|
-
var
|
|
11488
|
+
function b(j = L.value) {
|
|
11489
|
+
var Y;
|
|
11475
11490
|
try {
|
|
11476
|
-
if (
|
|
11477
|
-
const oe =
|
|
11478
|
-
(
|
|
11479
|
-
const
|
|
11480
|
-
|
|
11481
|
-
(!ie.parent || ie.parent && ie.parent.id && !
|
|
11491
|
+
if (R.value) {
|
|
11492
|
+
const oe = R.value.getTreeExpandedRow("unique");
|
|
11493
|
+
(Y = R.value) == null || Y.resetData(j);
|
|
11494
|
+
const we = R.value.getTreeExpandedRow("all").filter((ie) => !oe.some((K) => K === ie.id));
|
|
11495
|
+
we && we.forEach((ie) => {
|
|
11496
|
+
(!ie.parent || ie.parent && ie.parent.id && !we.some((O) => O.id === ie.parent.id)) && R.value.toggleExpandData(ie);
|
|
11482
11497
|
});
|
|
11483
11498
|
}
|
|
11484
11499
|
} catch (oe) {
|
|
@@ -11502,18 +11517,18 @@ const Du = [
|
|
|
11502
11517
|
children: []
|
|
11503
11518
|
});
|
|
11504
11519
|
}
|
|
11505
|
-
function H(
|
|
11520
|
+
function H(j) {
|
|
11506
11521
|
if (p.value.children) {
|
|
11507
|
-
const
|
|
11508
|
-
|
|
11522
|
+
const Y = p.value.children.indexOf(j);
|
|
11523
|
+
Y != -1 && p.value.children.splice(Y, 1);
|
|
11509
11524
|
}
|
|
11510
11525
|
}
|
|
11511
11526
|
function ae() {
|
|
11512
11527
|
if ((p.value.level == 1 || p.value.level == 2) && p.value.children) {
|
|
11513
|
-
const
|
|
11528
|
+
const j = p.value.level + 1;
|
|
11514
11529
|
p.value.children.push({
|
|
11515
11530
|
edificeKey: l.value,
|
|
11516
|
-
level:
|
|
11531
|
+
level: j,
|
|
11517
11532
|
icon: null,
|
|
11518
11533
|
title: "",
|
|
11519
11534
|
translateTitle: "",
|
|
@@ -11525,20 +11540,20 @@ const Du = [
|
|
|
11525
11540
|
});
|
|
11526
11541
|
}
|
|
11527
11542
|
}
|
|
11528
|
-
function me(
|
|
11529
|
-
p.value =
|
|
11543
|
+
function me(j) {
|
|
11544
|
+
p.value = Ze(j), j.isGroup ? d.value = "editGroup" : (d.value = "editItem", p.value.isInner = D(j)), i.value = !0;
|
|
11530
11545
|
}
|
|
11531
|
-
function J(
|
|
11532
|
-
p.value =
|
|
11546
|
+
function J(j) {
|
|
11547
|
+
p.value = Ze(j), i.value = !0, d.value = "moveItemTo";
|
|
11533
11548
|
}
|
|
11534
|
-
function
|
|
11549
|
+
function _e() {
|
|
11535
11550
|
i.value = !1, setTimeout(() => {
|
|
11536
11551
|
Re();
|
|
11537
11552
|
}, 100);
|
|
11538
11553
|
}
|
|
11539
11554
|
function Re() {
|
|
11540
|
-
var
|
|
11541
|
-
(
|
|
11555
|
+
var j;
|
|
11556
|
+
(j = S.value) == null || j.reset(), p.value = {
|
|
11542
11557
|
edificeKey: l.value,
|
|
11543
11558
|
parent: null,
|
|
11544
11559
|
name: "",
|
|
@@ -11551,70 +11566,70 @@ const Du = [
|
|
|
11551
11566
|
children: []
|
|
11552
11567
|
};
|
|
11553
11568
|
}
|
|
11554
|
-
function
|
|
11555
|
-
var
|
|
11556
|
-
(
|
|
11557
|
-
var oe, ye,
|
|
11558
|
-
if (!Object.keys(
|
|
11569
|
+
function Ce() {
|
|
11570
|
+
var j;
|
|
11571
|
+
(j = S.value) == null || j.validate().then((Y) => {
|
|
11572
|
+
var oe, ye, we, ie, O, K, se;
|
|
11573
|
+
if (!Object.keys(Y).length)
|
|
11559
11574
|
d.value == "addGroup" ? (p.value.edificeKey = l.value, p.value.children && ((oe = p.value.children) != null && oe.length) && p.value.children.forEach((ee) => {
|
|
11560
11575
|
ee.parent == "" && (ee.parent = p.value.name);
|
|
11561
|
-
}), (ye =
|
|
11576
|
+
}), (ye = R.value) == null || ye.appendTo("", p.value), he.success(`${e.t("保存新增组成功!")}`)) : d.value == "editGroup" || d.value == "editItem" ? ((we = R.value) == null || we.setData(p.value.name, p.value), p.value.isGroup ? ((O = (ie = p.value) == null ? void 0 : ie.children) == null || O.forEach((ee) => {
|
|
11562
11577
|
var ke;
|
|
11563
|
-
(ke =
|
|
11578
|
+
(ke = R.value) == null || ke.setData(ee.name, ee);
|
|
11564
11579
|
}), he.success(`${e.t("编辑组成功!")}`)) : (ge(
|
|
11565
11580
|
p.value.name,
|
|
11566
11581
|
p.value.parent
|
|
11567
11582
|
), he.success(`${e.t("编辑菜单成功!")}`))) : d.value == "moveItemTo" && (ge(
|
|
11568
11583
|
p.value.name,
|
|
11569
11584
|
p.value.parent
|
|
11570
|
-
), he.success(`${e.t("转移组成功!")}`)), b(),
|
|
11585
|
+
), he.success(`${e.t("转移组成功!")}`)), b(), _e();
|
|
11571
11586
|
else {
|
|
11572
|
-
const ee = (se = (K = Object.values(
|
|
11587
|
+
const ee = (se = (K = Object.values(Y)[0]) == null ? void 0 : K.filter(
|
|
11573
11588
|
(ke) => ke.result === !1
|
|
11574
11589
|
)[0]) == null ? void 0 : se.message;
|
|
11575
11590
|
he.error(`${ee}`);
|
|
11576
11591
|
}
|
|
11577
11592
|
});
|
|
11578
11593
|
}
|
|
11579
|
-
function ge(
|
|
11580
|
-
if (
|
|
11581
|
-
const oe = I.value.find((ye) => ye.name ==
|
|
11594
|
+
function ge(j, Y) {
|
|
11595
|
+
if (R.value) {
|
|
11596
|
+
const oe = I.value.find((ye) => ye.name == j);
|
|
11582
11597
|
if (oe) {
|
|
11583
11598
|
const { parent: ye } = oe;
|
|
11584
|
-
|
|
11599
|
+
Y !== ye && (p.value.parent = Y, R.value.remove(j), R.value.appendTo(Y, p.value));
|
|
11585
11600
|
}
|
|
11586
11601
|
}
|
|
11587
11602
|
}
|
|
11588
|
-
function Ie(
|
|
11603
|
+
function Ie(j) {
|
|
11589
11604
|
try {
|
|
11590
|
-
const
|
|
11605
|
+
const Y = vn.confirm({
|
|
11591
11606
|
theme: "info",
|
|
11592
11607
|
header: `${e.t("撤销组")}`,
|
|
11593
|
-
body: `${e.t("确定要撤销 %s 吗?")}`.replace("%s", `${
|
|
11608
|
+
body: `${e.t("确定要撤销 %s 吗?")}`.replace("%s", `${j.title}`),
|
|
11594
11609
|
className: yn,
|
|
11595
11610
|
onConfirm: () => {
|
|
11596
|
-
var ye,
|
|
11611
|
+
var ye, we, ie, O;
|
|
11597
11612
|
let oe = [];
|
|
11598
|
-
if (
|
|
11599
|
-
(ye =
|
|
11613
|
+
if (j.level == 1)
|
|
11614
|
+
(ye = j.children) == null || ye.forEach((K) => {
|
|
11600
11615
|
K.level = 1, K.parent = null, oe.push(K);
|
|
11601
|
-
}), (
|
|
11616
|
+
}), (we = R.value) == null || we.remove(j.name), oe.length && oe.forEach((K) => {
|
|
11602
11617
|
var se;
|
|
11603
|
-
(se =
|
|
11618
|
+
(se = R.value) == null || se.appendTo("", K);
|
|
11604
11619
|
});
|
|
11605
|
-
else if (
|
|
11606
|
-
const { parent: K } =
|
|
11607
|
-
(ie =
|
|
11620
|
+
else if (j.level == 2) {
|
|
11621
|
+
const { parent: K } = j;
|
|
11622
|
+
(ie = j.children) == null || ie.forEach((se) => {
|
|
11608
11623
|
se.level = 2, se.parent = K, oe.push(se);
|
|
11609
|
-
}), (O =
|
|
11624
|
+
}), (O = R.value) == null || O.remove(j.name), b(), oe.forEach((se) => {
|
|
11610
11625
|
var ee;
|
|
11611
|
-
(ee =
|
|
11626
|
+
(ee = R.value) == null || ee.appendTo(K, se);
|
|
11612
11627
|
});
|
|
11613
11628
|
}
|
|
11614
|
-
|
|
11629
|
+
Y.destroy(), he.success(`${e.t("撤销菜单组成功")}`);
|
|
11615
11630
|
},
|
|
11616
11631
|
onCancel: () => {
|
|
11617
|
-
|
|
11632
|
+
Y.destroy(), he.info("已取消撤销菜单组操作");
|
|
11618
11633
|
},
|
|
11619
11634
|
confirmBtn: {
|
|
11620
11635
|
content: `${e.t("确定")}`,
|
|
@@ -11627,30 +11642,30 @@ const Du = [
|
|
|
11627
11642
|
theme: "default"
|
|
11628
11643
|
}
|
|
11629
11644
|
});
|
|
11630
|
-
} catch (
|
|
11631
|
-
console.error(
|
|
11645
|
+
} catch (Y) {
|
|
11646
|
+
console.error(Y);
|
|
11632
11647
|
}
|
|
11633
11648
|
b();
|
|
11634
11649
|
}
|
|
11635
11650
|
async function $e() {
|
|
11636
|
-
var
|
|
11651
|
+
var j;
|
|
11637
11652
|
try {
|
|
11638
|
-
(
|
|
11639
|
-
} catch (
|
|
11640
|
-
he.error(`${e.t("撤销菜单方案出错")}`), console.error(`handleResetMenuTable ${
|
|
11653
|
+
(j = R.value) == null || j.resetData(s.value), he.success(`${e.t("撤销菜单方案成功!")}`);
|
|
11654
|
+
} catch (Y) {
|
|
11655
|
+
he.error(`${e.t("撤销菜单方案出错")}`), console.error(`handleResetMenuTable ${Y}`);
|
|
11641
11656
|
}
|
|
11642
11657
|
}
|
|
11643
11658
|
async function le() {
|
|
11644
|
-
const
|
|
11659
|
+
const j = Yn(L.value);
|
|
11645
11660
|
try {
|
|
11646
|
-
const
|
|
11647
|
-
|
|
11648
|
-
} catch (
|
|
11649
|
-
he.error(
|
|
11661
|
+
const Y = await Iu({ menus: [...j] });
|
|
11662
|
+
Y.state == 200 && (t.setSideMenuConfig(L.value), c.value = wn(Y.data, null, 1), he.success(`${e.t("保存菜单方案成功!")}`));
|
|
11663
|
+
} catch (Y) {
|
|
11664
|
+
he.error(Y.message);
|
|
11650
11665
|
}
|
|
11651
11666
|
}
|
|
11652
|
-
function ce(
|
|
11653
|
-
const { current:
|
|
11667
|
+
function ce(j) {
|
|
11668
|
+
const { current: Y, target: oe, currentIndex: ye, targetIndex: we } = j, ie = Y.level, O = Y.parent, K = oe.level, se = oe.parent;
|
|
11654
11669
|
if (ie == K) {
|
|
11655
11670
|
if (O == se)
|
|
11656
11671
|
return !0;
|
|
@@ -11659,43 +11674,43 @@ const Du = [
|
|
|
11659
11674
|
he.info(`${e.t("不同层级的菜单项,请使用转移至功能转移菜单")}`);
|
|
11660
11675
|
return b(), !1;
|
|
11661
11676
|
}
|
|
11662
|
-
function ve(
|
|
11663
|
-
|
|
11677
|
+
function ve(j) {
|
|
11678
|
+
j.code && he.error(`${e.t("不同层级的菜单项,不允许调整顺序")}`);
|
|
11664
11679
|
}
|
|
11665
|
-
function
|
|
11680
|
+
function be(j, Y) {
|
|
11666
11681
|
var ye;
|
|
11667
|
-
const oe = (ye =
|
|
11682
|
+
const oe = (ye = R.value) == null ? void 0 : ye.getData(j.name);
|
|
11668
11683
|
if (oe) {
|
|
11669
|
-
const { parent:
|
|
11670
|
-
if (
|
|
11671
|
-
const { children: ie } =
|
|
11672
|
-
ie && (Ae(ie,
|
|
11684
|
+
const { parent: we } = oe;
|
|
11685
|
+
if (we) {
|
|
11686
|
+
const { children: ie } = we.row, O = ie == null ? void 0 : ie.findIndex((K) => K.name == j.name);
|
|
11687
|
+
ie && (Ae(ie, Y, O), b());
|
|
11673
11688
|
} else {
|
|
11674
|
-
const ie =
|
|
11675
|
-
Ae(ie,
|
|
11689
|
+
const ie = Ze(L.value), O = ie.findIndex((K) => K.name == j.name);
|
|
11690
|
+
Ae(ie, Y, O), b(ie);
|
|
11676
11691
|
}
|
|
11677
11692
|
}
|
|
11678
11693
|
}
|
|
11679
|
-
function Ae(
|
|
11680
|
-
switch (
|
|
11694
|
+
function Ae(j, Y, oe) {
|
|
11695
|
+
switch (Y) {
|
|
11681
11696
|
case "up": {
|
|
11682
|
-
oe != 0 ? [
|
|
11683
|
-
|
|
11684
|
-
|
|
11697
|
+
oe != 0 ? [j[oe - 1], j[oe]] = [
|
|
11698
|
+
j[oe],
|
|
11699
|
+
j[oe - 1]
|
|
11685
11700
|
] : he.info("该菜单项已经在该组的第一个了!");
|
|
11686
11701
|
break;
|
|
11687
11702
|
}
|
|
11688
11703
|
case "down": {
|
|
11689
|
-
oe !=
|
|
11690
|
-
|
|
11691
|
-
|
|
11704
|
+
oe != j.length - 1 ? [j[oe + 1], j[oe]] = [
|
|
11705
|
+
j[oe],
|
|
11706
|
+
j[oe + 1]
|
|
11692
11707
|
] : he.info(`${e.t("该菜单项已经在该组的最后一个了!")}`);
|
|
11693
11708
|
break;
|
|
11694
11709
|
}
|
|
11695
11710
|
}
|
|
11696
11711
|
}
|
|
11697
|
-
return (
|
|
11698
|
-
const oe = Q("t-button"), ye = Q("t-icon"),
|
|
11712
|
+
return (j, Y) => {
|
|
11713
|
+
const oe = Q("t-button"), ye = Q("t-icon"), we = Q("t-input"), ie = Q("t-form-item"), O = Q("t-option"), K = Q("t-select"), se = Q("t-input-group");
|
|
11699
11714
|
return v(), $(h(ma), { title: o.value }, {
|
|
11700
11715
|
default: k(() => [
|
|
11701
11716
|
F(h(Hr), null, {
|
|
@@ -11817,7 +11832,7 @@ const Du = [
|
|
|
11817
11832
|
F(oe, {
|
|
11818
11833
|
variant: "text",
|
|
11819
11834
|
theme: "primary",
|
|
11820
|
-
onClick: (ke) =>
|
|
11835
|
+
onClick: (ke) => be(ee, "up")
|
|
11821
11836
|
}, {
|
|
11822
11837
|
default: k(() => [
|
|
11823
11838
|
re(te(h(e).t("上移")), 1)
|
|
@@ -11827,7 +11842,7 @@ const Du = [
|
|
|
11827
11842
|
F(oe, {
|
|
11828
11843
|
variant: "text",
|
|
11829
11844
|
theme: "primary",
|
|
11830
|
-
onClick: (ke) =>
|
|
11845
|
+
onClick: (ke) => be(ee, "down")
|
|
11831
11846
|
}, {
|
|
11832
11847
|
default: k(() => [
|
|
11833
11848
|
re(te(h(e).t("下移")), 1)
|
|
@@ -11852,7 +11867,7 @@ const Du = [
|
|
|
11852
11867
|
F(h(pa), {
|
|
11853
11868
|
commonDialogProps: {
|
|
11854
11869
|
visible: i.value,
|
|
11855
|
-
onClose:
|
|
11870
|
+
onClose: _e,
|
|
11856
11871
|
header: _.value,
|
|
11857
11872
|
footer: !1,
|
|
11858
11873
|
width: "650px"
|
|
@@ -11868,18 +11883,18 @@ const Du = [
|
|
|
11868
11883
|
labelAlign: "right",
|
|
11869
11884
|
labelWidth: "150px"
|
|
11870
11885
|
}
|
|
11871
|
-
},
|
|
11886
|
+
}, Yt({
|
|
11872
11887
|
footer: k(() => [
|
|
11873
11888
|
F(oe, {
|
|
11874
11889
|
theme: "default",
|
|
11875
|
-
onClick:
|
|
11890
|
+
onClick: _e
|
|
11876
11891
|
}, {
|
|
11877
11892
|
default: k(() => [
|
|
11878
11893
|
re(te(h(e).t("取消")), 1)
|
|
11879
11894
|
]),
|
|
11880
11895
|
_: 1
|
|
11881
11896
|
}),
|
|
11882
|
-
F(oe, { onClick:
|
|
11897
|
+
F(oe, { onClick: Ce }, {
|
|
11883
11898
|
default: k(() => [
|
|
11884
11899
|
re(te(h(e).t("确定")), 1)
|
|
11885
11900
|
]),
|
|
@@ -11897,10 +11912,10 @@ const Du = [
|
|
|
11897
11912
|
requiredMark: !0
|
|
11898
11913
|
}, {
|
|
11899
11914
|
default: k(() => [
|
|
11900
|
-
F(
|
|
11915
|
+
F(we, {
|
|
11901
11916
|
style: { width: "360px" },
|
|
11902
11917
|
modelValue: p.value.title,
|
|
11903
|
-
"onUpdate:modelValue":
|
|
11918
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (ee) => p.value.title = ee),
|
|
11904
11919
|
placeholder: h(e).t("请输入组名称")
|
|
11905
11920
|
}, null, 8, ["modelValue", "placeholder"])
|
|
11906
11921
|
]),
|
|
@@ -11912,10 +11927,10 @@ const Du = [
|
|
|
11912
11927
|
requiredMark: !0
|
|
11913
11928
|
}, {
|
|
11914
11929
|
default: k(() => [
|
|
11915
|
-
F(
|
|
11930
|
+
F(we, {
|
|
11916
11931
|
style: { width: "360px" },
|
|
11917
11932
|
modelValue: p.value.name,
|
|
11918
|
-
"onUpdate:modelValue":
|
|
11933
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (ee) => p.value.name = ee),
|
|
11919
11934
|
placeholder: h(e).t("输入该菜单的唯一标识,设置后不能修改"),
|
|
11920
11935
|
disabled: d.value == "editGroup" || d.value == "editItem"
|
|
11921
11936
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
@@ -11931,7 +11946,7 @@ const Du = [
|
|
|
11931
11946
|
F(K, {
|
|
11932
11947
|
style: { width: "360px" },
|
|
11933
11948
|
modelValue: p.value.icon,
|
|
11934
|
-
"onUpdate:modelValue":
|
|
11949
|
+
"onUpdate:modelValue": Y[2] || (Y[2] = (ee) => p.value.icon = ee),
|
|
11935
11950
|
placeholder: h(e).t("请选择图标标识"),
|
|
11936
11951
|
popupProps: { overlayInnerStyle: { width: "326px" } },
|
|
11937
11952
|
clearable: !0
|
|
@@ -11977,7 +11992,7 @@ const Du = [
|
|
|
11977
11992
|
F(K, {
|
|
11978
11993
|
options: m.value,
|
|
11979
11994
|
modelValue: p.value.parent,
|
|
11980
|
-
"onUpdate:modelValue":
|
|
11995
|
+
"onUpdate:modelValue": Y[3] || (Y[3] = (ee) => p.value.parent = ee)
|
|
11981
11996
|
}, null, 8, ["options", "modelValue"])
|
|
11982
11997
|
]),
|
|
11983
11998
|
_: 1
|
|
@@ -12008,7 +12023,7 @@ const Du = [
|
|
|
12008
12023
|
default: k(() => [
|
|
12009
12024
|
F(se, null, {
|
|
12010
12025
|
default: k(() => [
|
|
12011
|
-
F(
|
|
12026
|
+
F(we, {
|
|
12012
12027
|
placeholder: h(e).t("请输入分组名称"),
|
|
12013
12028
|
style: { width: "180px" },
|
|
12014
12029
|
value: ee.title,
|
|
@@ -12018,7 +12033,7 @@ const Du = [
|
|
|
12018
12033
|
pe
|
|
12019
12034
|
)
|
|
12020
12035
|
}, null, 8, ["placeholder", "value", "onChange"]),
|
|
12021
|
-
F(
|
|
12036
|
+
F(we, {
|
|
12022
12037
|
placeholder: h(e).t("请输入分组标识"),
|
|
12023
12038
|
style: { width: "180px" },
|
|
12024
12039
|
value: ee.name,
|
|
@@ -12042,7 +12057,7 @@ const Du = [
|
|
|
12042
12057
|
key: 0,
|
|
12043
12058
|
variant: "outline",
|
|
12044
12059
|
theme: "default",
|
|
12045
|
-
onClick:
|
|
12060
|
+
onClick: Ot(G, ["prevent"])
|
|
12046
12061
|
}, {
|
|
12047
12062
|
default: k(() => [
|
|
12048
12063
|
re("+ ")
|
|
@@ -12081,7 +12096,7 @@ const Du = [
|
|
|
12081
12096
|
default: k(() => [
|
|
12082
12097
|
F(se, null, {
|
|
12083
12098
|
default: k(() => [
|
|
12084
|
-
F(
|
|
12099
|
+
F(we, {
|
|
12085
12100
|
placeholder: h(e).t("请输入子菜单名称"),
|
|
12086
12101
|
style: { width: "180px" },
|
|
12087
12102
|
value: ee.title,
|
|
@@ -12091,7 +12106,7 @@ const Du = [
|
|
|
12091
12106
|
pe
|
|
12092
12107
|
)
|
|
12093
12108
|
}, null, 8, ["placeholder", "value", "onChange"]),
|
|
12094
|
-
F(
|
|
12109
|
+
F(we, {
|
|
12095
12110
|
placeholder: h(e).t("请输入子菜单标识"),
|
|
12096
12111
|
style: { width: "180px" },
|
|
12097
12112
|
value: ee.name,
|
|
@@ -12115,7 +12130,7 @@ const Du = [
|
|
|
12115
12130
|
key: 0,
|
|
12116
12131
|
variant: "outline",
|
|
12117
12132
|
theme: "default",
|
|
12118
|
-
onClick:
|
|
12133
|
+
onClick: Ot(ae, ["prevent"])
|
|
12119
12134
|
}, {
|
|
12120
12135
|
default: k(() => [
|
|
12121
12136
|
re("+ ")
|
|
@@ -12135,7 +12150,7 @@ const Du = [
|
|
|
12135
12150
|
default: k(() => [
|
|
12136
12151
|
F(K, {
|
|
12137
12152
|
modelValue: p.value.isInner,
|
|
12138
|
-
"onUpdate:modelValue":
|
|
12153
|
+
"onUpdate:modelValue": Y[4] || (Y[4] = (ee) => p.value.isInner = ee)
|
|
12139
12154
|
}, {
|
|
12140
12155
|
default: k(() => [
|
|
12141
12156
|
F(O, {
|
|
@@ -12169,7 +12184,7 @@ const Du = [
|
|
|
12169
12184
|
default: k(() => [
|
|
12170
12185
|
F(K, {
|
|
12171
12186
|
modelValue: p.value.url,
|
|
12172
|
-
"onUpdate:modelValue":
|
|
12187
|
+
"onUpdate:modelValue": Y[5] || (Y[5] = (ee) => p.value.url = ee),
|
|
12173
12188
|
options: x.value
|
|
12174
12189
|
}, null, 8, ["modelValue", "options"])
|
|
12175
12190
|
]),
|
|
@@ -12180,9 +12195,9 @@ const Du = [
|
|
|
12180
12195
|
label: h(e).t("菜单路径")
|
|
12181
12196
|
}, {
|
|
12182
12197
|
default: k(() => [
|
|
12183
|
-
F(
|
|
12198
|
+
F(we, {
|
|
12184
12199
|
modelValue: p.value.url,
|
|
12185
|
-
"onUpdate:modelValue":
|
|
12200
|
+
"onUpdate:modelValue": Y[6] || (Y[6] = (ee) => p.value.url = ee)
|
|
12186
12201
|
}, null, 8, ["modelValue"])
|
|
12187
12202
|
]),
|
|
12188
12203
|
_: 1
|
|
@@ -12203,7 +12218,7 @@ const Du = [
|
|
|
12203
12218
|
F(K, {
|
|
12204
12219
|
options: m.value,
|
|
12205
12220
|
modelValue: p.value.parent,
|
|
12206
|
-
"onUpdate:modelValue":
|
|
12221
|
+
"onUpdate:modelValue": Y[7] || (Y[7] = (ee) => p.value.parent = ee),
|
|
12207
12222
|
autosize: ""
|
|
12208
12223
|
}, null, 8, ["options", "modelValue"])
|
|
12209
12224
|
]),
|
|
@@ -12222,7 +12237,7 @@ const Du = [
|
|
|
12222
12237
|
};
|
|
12223
12238
|
}
|
|
12224
12239
|
});
|
|
12225
|
-
const Ac =
|
|
12240
|
+
const Ac = qe(Pu), xu = /* @__PURE__ */ ue({
|
|
12226
12241
|
__name: "GLoginTitle",
|
|
12227
12242
|
props: {
|
|
12228
12243
|
title: { default: "公信会务管理系统" },
|
|
@@ -12244,7 +12259,7 @@ const Ac = Ye(Pu), xu = /* @__PURE__ */ ue({
|
|
|
12244
12259
|
}), Vu = /* @__PURE__ */ ue({
|
|
12245
12260
|
__name: "GLoginForm",
|
|
12246
12261
|
setup(n) {
|
|
12247
|
-
const { T: e } =
|
|
12262
|
+
const { T: e } = Me(), t = `${_t}__form`;
|
|
12248
12263
|
return (o, a) => (v(), W("div", {
|
|
12249
12264
|
class: Z(`${t}`)
|
|
12250
12265
|
}, [
|
|
@@ -12338,26 +12353,26 @@ const Ac = Ye(Pu), xu = /* @__PURE__ */ ue({
|
|
|
12338
12353
|
], 2));
|
|
12339
12354
|
}
|
|
12340
12355
|
});
|
|
12341
|
-
const Fc =
|
|
12342
|
-
function
|
|
12356
|
+
const Fc = qe(Ku), Wu = Ka.name, qu = Ka.version;
|
|
12357
|
+
function Yu(n, e) {
|
|
12343
12358
|
console.info(
|
|
12344
|
-
`%c ${Wu} %c ${
|
|
12359
|
+
`%c ${Wu} %c ${qu} `,
|
|
12345
12360
|
"padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #d82128; font-weight: bold;",
|
|
12346
12361
|
"padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #606060; "
|
|
12347
12362
|
), n.component("GView", iu), n.component("GConfigProvider", hu), n.use(gu);
|
|
12348
12363
|
try {
|
|
12349
|
-
e && (e != null && e.router) &&
|
|
12364
|
+
e && (e != null && e.router) && Qe.initRouter(e.router);
|
|
12350
12365
|
} catch (t) {
|
|
12351
12366
|
console.error("初始化GView", t);
|
|
12352
12367
|
}
|
|
12353
12368
|
}
|
|
12354
12369
|
function $c(n) {
|
|
12355
|
-
|
|
12370
|
+
xe(n), Ct(n), lo(n), ao(n);
|
|
12356
12371
|
}
|
|
12357
|
-
const { i18n: Bc } =
|
|
12372
|
+
const { i18n: Bc } = Me({
|
|
12358
12373
|
project: "venus"
|
|
12359
12374
|
}), Pc = {
|
|
12360
|
-
install:
|
|
12375
|
+
install: Yu
|
|
12361
12376
|
};
|
|
12362
12377
|
export {
|
|
12363
12378
|
oa as COLOR_TOKEN,
|
|
@@ -12374,22 +12389,22 @@ export {
|
|
|
12374
12389
|
Fc as GLogin,
|
|
12375
12390
|
Ac as GMenuManage,
|
|
12376
12391
|
Nc as GSettingDialog,
|
|
12377
|
-
|
|
12378
|
-
|
|
12392
|
+
Zn as GUploader,
|
|
12393
|
+
On as INIT_WS_MODEL,
|
|
12379
12394
|
Lo as LANG_CONFIG,
|
|
12380
12395
|
nn as LOCAL_CONFIG,
|
|
12381
12396
|
hc as LOCAL_DATA_ID,
|
|
12382
|
-
|
|
12397
|
+
xn as LOCAL_INIT_TAB_MENU_LIST,
|
|
12383
12398
|
pc as LOCAL_MENU,
|
|
12384
12399
|
Xt as LOCAL_SESSION_ID,
|
|
12385
12400
|
on as LOCAL_SIDE_MENU_CONFIG,
|
|
12386
|
-
|
|
12401
|
+
Vn as LOCAL_TAB_MENU,
|
|
12387
12402
|
Io as LOCAL_THEME_CONFIG,
|
|
12388
12403
|
Al as LOCAL_USER,
|
|
12389
12404
|
Rc as NProgress,
|
|
12390
12405
|
yc as PROJECT_PREFIX,
|
|
12391
12406
|
Dc as RequestConfig,
|
|
12392
|
-
|
|
12407
|
+
nr as RequestHttp,
|
|
12393
12408
|
ln as SESSION_COLUMN_DATA,
|
|
12394
12409
|
an as SESSION_FORM_DATA_CACHE,
|
|
12395
12410
|
No as SESSION_USER_PERMISSION,
|
|
@@ -12400,44 +12415,44 @@ export {
|
|
|
12400
12415
|
xl as WS_RESET_TIMEOUT,
|
|
12401
12416
|
Bl as WS_SERVICE_URL,
|
|
12402
12417
|
Ul as boardClass,
|
|
12403
|
-
|
|
12418
|
+
jt as checkPlaceholderIfHidden,
|
|
12404
12419
|
Vl as commonDialogClass,
|
|
12405
12420
|
rn as commonFormClass,
|
|
12406
12421
|
sn as commonHeaderClass,
|
|
12407
12422
|
Ol as commonTableClass,
|
|
12408
|
-
|
|
12423
|
+
ia as deepCompareObjects,
|
|
12409
12424
|
Pc as default,
|
|
12410
12425
|
bc as dialogClass,
|
|
12411
12426
|
yn as dialogPluginClass,
|
|
12412
12427
|
$o as downloadFile,
|
|
12413
|
-
|
|
12414
|
-
|
|
12428
|
+
Qn as evalContext,
|
|
12429
|
+
or as filterTreeValues,
|
|
12415
12430
|
Yn as flattenMenuData,
|
|
12416
12431
|
Rl as formClass,
|
|
12417
12432
|
Eo as formItemClass,
|
|
12418
12433
|
_t as gLoginClass,
|
|
12419
|
-
|
|
12434
|
+
wn as generateMenuTree,
|
|
12420
12435
|
aa as getBrandColor,
|
|
12421
12436
|
ta as getHomeUrl,
|
|
12422
12437
|
Kt as getUrlQuery,
|
|
12423
12438
|
wc as headerClass,
|
|
12424
12439
|
Jl as highlightSearchResult,
|
|
12425
|
-
|
|
12440
|
+
Qe as http,
|
|
12426
12441
|
Bc as i18n,
|
|
12427
12442
|
Ge as initEmptyFormItems,
|
|
12428
|
-
|
|
12443
|
+
Ln as initFormModel,
|
|
12429
12444
|
Xl as initTableColumns,
|
|
12430
12445
|
Zl as initTableDisplayColumns,
|
|
12431
|
-
|
|
12446
|
+
sa as initTreeSelectorData,
|
|
12432
12447
|
pt as is,
|
|
12433
12448
|
kt as isArray,
|
|
12434
12449
|
Cc as isAsyncFunction,
|
|
12435
12450
|
Ql as isBoolean,
|
|
12436
12451
|
_c as isClient,
|
|
12437
12452
|
Tc as isDate,
|
|
12438
|
-
|
|
12453
|
+
ql as isDef,
|
|
12439
12454
|
Lc as isElement,
|
|
12440
|
-
|
|
12455
|
+
Tn as isFormVoid,
|
|
12441
12456
|
Dt as isFunction,
|
|
12442
12457
|
lt as isNull,
|
|
12443
12458
|
Ao as isNullAndUnDef,
|
|
@@ -12445,30 +12460,30 @@ export {
|
|
|
12445
12460
|
kc as isNumber,
|
|
12446
12461
|
oo as isObject,
|
|
12447
12462
|
en as isOuterUrl,
|
|
12448
|
-
|
|
12463
|
+
Yl as isPromise,
|
|
12449
12464
|
er as isResourceUrl,
|
|
12450
12465
|
Sc as isServer,
|
|
12451
12466
|
Mc as isString,
|
|
12452
12467
|
la as isUnDef,
|
|
12453
12468
|
Ic as isWindow,
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12469
|
+
et as layoutClass,
|
|
12470
|
+
tr as loadNanoId,
|
|
12471
|
+
Je as localStorageUtils,
|
|
12457
12472
|
Zt as nanoid,
|
|
12458
12473
|
wt as resolveUrl,
|
|
12459
12474
|
Be as sessionStorageUtils,
|
|
12460
12475
|
$c as setupStore,
|
|
12461
12476
|
jl as tabClass,
|
|
12462
|
-
|
|
12477
|
+
xt as tableClass,
|
|
12463
12478
|
un as uploaderClass,
|
|
12464
12479
|
ea as urlToPath,
|
|
12465
|
-
|
|
12480
|
+
Sn as useCacheStore,
|
|
12466
12481
|
ua as useColumnStore,
|
|
12467
12482
|
Oc as useI18n,
|
|
12468
12483
|
lo as usePropsStore,
|
|
12469
|
-
|
|
12484
|
+
xe as useSettingStore,
|
|
12470
12485
|
ao as useSocketStore,
|
|
12471
12486
|
Ct as useTabMenuStore,
|
|
12472
12487
|
Kl as v,
|
|
12473
|
-
|
|
12488
|
+
qe as withInstall
|
|
12474
12489
|
};
|