@gonsin/gview 2.0.9 → 2.0.10
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.
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var fo = Object.defineProperty;
|
|
2
2
|
var ho = (e, n, t) => n in e ? fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var yt = (e, n, t) => (ho(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import { defineComponent as te, ref as Q, computed as B, resolveComponent as j, openBlock as g, createBlock as S, normalizeClass as Z, unref as m, withCtx as M, createElementBlock as Y, Fragment as ge, renderList as
|
|
4
|
+
import { defineComponent as te, ref as Q, computed as B, resolveComponent as j, openBlock as g, createBlock as S, normalizeClass as Z, unref as m, withCtx as M, createElementBlock as Y, Fragment as ge, renderList as Te, createVNode as _, createTextVNode as X, createCommentVNode as $, toDisplayString as ye, nextTick as po, createElementVNode as ae, normalizeStyle as Nt, renderSlot as Oe, isRef as ht, onMounted as nt, mergeProps as qt, createSlots as Lt, normalizeProps as Sn, guardReactiveProps as _n, watch as be, onBeforeUnmount as et, onBeforeMount as gt, shallowRef as go, defineAsyncComponent as vo, Transition as yo, withModifiers as sn } from "vue";
|
|
5
5
|
import { useRouter as ot, useRoute as rt } from "vue-router";
|
|
6
6
|
import { defineStore as St } from "pinia";
|
|
7
|
-
import { MessagePlugin as oe, DialogPlugin as
|
|
7
|
+
import { MessagePlugin as oe, DialogPlugin as Tt, Message as bo } from "tdesign-vue-next";
|
|
8
8
|
import wo from "axios";
|
|
9
9
|
import { customAlphabet as Mo } from "nanoid";
|
|
10
|
-
import
|
|
10
|
+
import kt from "nprogress";
|
|
11
11
|
import { get as ee, set as Ge, cloneDeep as mt } from "lodash-es";
|
|
12
12
|
import Ye from "dayjs";
|
|
13
|
-
import { Toolbar as
|
|
13
|
+
import { Toolbar as Co, Editor as To } from "@wangeditor/editor-for-vue";
|
|
14
14
|
import "@wangeditor/editor";
|
|
15
15
|
import Ze from "mustache";
|
|
16
|
-
import
|
|
17
|
-
const ft = "config", un = "themeConfig",
|
|
16
|
+
import ko from "he";
|
|
17
|
+
const ft = "config", un = "themeConfig", Io = "user", _i = "menu", cn = "initTabMenuList", dn = "tabMenu", Bt = "sideMenuConfig", xi = "token", Di = "tokenExpiredTime", Vi = "dataId", mn = "sessionId", No = {
|
|
18
18
|
brandTheme: "default",
|
|
19
19
|
// 主题色
|
|
20
20
|
displayMode: "light"
|
|
@@ -105,7 +105,7 @@ class An {
|
|
|
105
105
|
const ct = new An("session"), We = new An("local"), Pe = St("setting", {
|
|
106
106
|
state: () => ({
|
|
107
107
|
// 登录标志
|
|
108
|
-
isUserLogin: !!ct.getItem(
|
|
108
|
+
isUserLogin: !!ct.getItem(Io) || !1,
|
|
109
109
|
// 加载标志
|
|
110
110
|
isGlobalLoaded: !0,
|
|
111
111
|
// 侧边栏是否显示
|
|
@@ -114,20 +114,17 @@ const ct = new An("session"), We = new An("local"), Pe = St("setting", {
|
|
|
114
114
|
isSettingPanelShow: !1,
|
|
115
115
|
// 主题配置
|
|
116
116
|
themeConfig: We.getItem(un) || {
|
|
117
|
-
...
|
|
117
|
+
...No
|
|
118
118
|
},
|
|
119
119
|
// 侧边菜单配置
|
|
120
120
|
sideMenuTree: We.getItem(Bt) || [],
|
|
121
121
|
// 用户传入GView的信息与配置
|
|
122
122
|
userConfig: We.getItem(ft) || {
|
|
123
123
|
userInfo: {
|
|
124
|
-
realName: ""
|
|
124
|
+
realName: "",
|
|
125
|
+
token: ""
|
|
125
126
|
},
|
|
126
127
|
userMenu: [],
|
|
127
|
-
userToken: {
|
|
128
|
-
token: "",
|
|
129
|
-
tokenExpiredTime: ""
|
|
130
|
-
},
|
|
131
128
|
homeUrl: "",
|
|
132
129
|
uploadApi: ""
|
|
133
130
|
}
|
|
@@ -135,8 +132,7 @@ const ct = new An("session"), We = new An("local"), Pe = St("setting", {
|
|
|
135
132
|
getters: {
|
|
136
133
|
userRealName: (e) => e.userConfig.userInfo.realName,
|
|
137
134
|
userEdificeKey: (e) => e.userConfig.userInfo.edificeKey,
|
|
138
|
-
token: (e) => e.userConfig.
|
|
139
|
-
tokenExpiredTime: (e) => e.userConfig.userToken.tokenExpiredTime,
|
|
135
|
+
token: (e) => e.userConfig.userInfo.token,
|
|
140
136
|
uploadApi: (e) => e.userConfig.uploadApi,
|
|
141
137
|
homeUrl: (e) => (e.userConfig.homeUrl ?? "") != "" ? e.userConfig.homeUrl : Vn(e.sideMenuTree),
|
|
142
138
|
displayMode: (e) => e.themeConfig.displayMode === "auto" ? window.matchMedia("(prefers-color-scheme:dark)").matches ? "dark" : "light" : e.themeConfig.displayMode
|
|
@@ -413,45 +409,45 @@ const Vo = /* @__PURE__ */ te({
|
|
|
413
409
|
__name: "GLayoutHeaderTab",
|
|
414
410
|
setup(e) {
|
|
415
411
|
const n = ot(), t = rt(), o = Q(""), a = _t(), l = Pe(), i = B(() => a.tabMenuList), s = B(() => l.homeUrl);
|
|
416
|
-
function r(
|
|
417
|
-
h.trigger === "document" && (o.value = null),
|
|
412
|
+
function r(C, h, k) {
|
|
413
|
+
h.trigger === "document" && (o.value = null), C && (o.value = k);
|
|
418
414
|
}
|
|
419
|
-
function c(
|
|
420
|
-
|
|
415
|
+
function c(C) {
|
|
416
|
+
C === "/home" ? n.push({ path: s.value, query: gn(s.value) }) : n.push({ path: C, query: gn(C) });
|
|
421
417
|
}
|
|
422
|
-
function u({ value:
|
|
423
|
-
const { tabMenuList:
|
|
424
|
-
if (
|
|
425
|
-
const x =
|
|
426
|
-
a.subtractCurrentTabMenuItem({ path:
|
|
418
|
+
function u({ value: C, index: h }) {
|
|
419
|
+
const { tabMenuList: k } = a;
|
|
420
|
+
if (k.length > 2) {
|
|
421
|
+
const x = k[h + 1] || k[h - 1];
|
|
422
|
+
a.subtractCurrentTabMenuItem({ path: C, itemIdx: h });
|
|
427
423
|
const v = decodeURIComponent(t.fullPath);
|
|
428
|
-
|
|
424
|
+
C === v && n.push({
|
|
429
425
|
path: x.path,
|
|
430
426
|
query: x.query
|
|
431
427
|
});
|
|
432
428
|
}
|
|
433
429
|
}
|
|
434
|
-
function d(
|
|
430
|
+
function d(C, h) {
|
|
435
431
|
po(() => {
|
|
436
432
|
n.push({
|
|
437
|
-
path:
|
|
438
|
-
query:
|
|
433
|
+
path: C.path,
|
|
434
|
+
query: C.query
|
|
439
435
|
});
|
|
440
436
|
}), l.toggleGlobalReload(), o.value = null;
|
|
441
437
|
}
|
|
442
|
-
function p(
|
|
443
|
-
a.subtractTabMenuItemAhead({ path:
|
|
438
|
+
function p(C, h) {
|
|
439
|
+
a.subtractTabMenuItemAhead({ path: C, itemIdx: h }), E("ahead", h);
|
|
444
440
|
}
|
|
445
|
-
function
|
|
446
|
-
a.subtractTabMenuItemBehind({ path:
|
|
441
|
+
function T(C, h) {
|
|
442
|
+
a.subtractTabMenuItemBehind({ path: C, itemIdx: h }), E("behind", h);
|
|
447
443
|
}
|
|
448
|
-
function
|
|
449
|
-
i.value.length > 2 && (a.subtractTabMenuItemOther({ path:
|
|
444
|
+
function N(C, h) {
|
|
445
|
+
i.value.length > 2 && (a.subtractTabMenuItemOther({ path: C, itemIdx: h }), E("other", h));
|
|
450
446
|
}
|
|
451
|
-
function E(
|
|
452
|
-
const
|
|
453
|
-
if (
|
|
454
|
-
const y =
|
|
447
|
+
function E(C, h) {
|
|
448
|
+
const k = t.fullPath, { tabMenuList: x } = a, v = x.findIndex((y) => y.path === k);
|
|
449
|
+
if (C === "other" && v !== h || C === "ahead" && v < h || C === "behind" && v === -1) {
|
|
450
|
+
const y = C === "behind" ? x.length - 1 : 1, f = x[y];
|
|
455
451
|
n.push({
|
|
456
452
|
path: f.path,
|
|
457
453
|
query: f.query
|
|
@@ -459,17 +455,17 @@ const Vo = /* @__PURE__ */ te({
|
|
|
459
455
|
}
|
|
460
456
|
o.value = null;
|
|
461
457
|
}
|
|
462
|
-
return (
|
|
463
|
-
const
|
|
458
|
+
return (C, h) => {
|
|
459
|
+
const k = j("t-icon"), x = j("t-dropdown-item"), v = j("t-dropdown-menu"), b = j("t-dropdown"), y = j("t-tab-panel"), f = j("t-tabs");
|
|
464
460
|
return g(), S(f, {
|
|
465
461
|
class: Z(`${m(J)}__header-tabs`),
|
|
466
462
|
size: "large",
|
|
467
|
-
value: decodeURIComponent(
|
|
463
|
+
value: decodeURIComponent(C.$route.fullPath),
|
|
468
464
|
onChange: c,
|
|
469
465
|
onRemove: u
|
|
470
466
|
}, {
|
|
471
467
|
default: M(() => [
|
|
472
|
-
(g(!0), Y(ge, null,
|
|
468
|
+
(g(!0), Y(ge, null, Te(m(i), (w, P) => (g(), S(y, {
|
|
473
469
|
key: w.path,
|
|
474
470
|
value: w.path,
|
|
475
471
|
removable: !w.isHome
|
|
@@ -478,7 +474,7 @@ const Vo = /* @__PURE__ */ te({
|
|
|
478
474
|
_(b, {
|
|
479
475
|
trigger: "context-menu",
|
|
480
476
|
"popup-props": {
|
|
481
|
-
onVisibleChange: (R,
|
|
477
|
+
onVisibleChange: (R, I) => r(R, I, w.path),
|
|
482
478
|
visible: o.value != "" ? o.value === w.path : !1
|
|
483
479
|
}
|
|
484
480
|
}, {
|
|
@@ -490,7 +486,7 @@ const Vo = /* @__PURE__ */ te({
|
|
|
490
486
|
onClick: () => c(w.path)
|
|
491
487
|
}, {
|
|
492
488
|
default: M(() => [
|
|
493
|
-
_(
|
|
489
|
+
_(k, { name: "home" }),
|
|
494
490
|
X("前往首页 ")
|
|
495
491
|
]),
|
|
496
492
|
_: 2
|
|
@@ -500,7 +496,7 @@ const Vo = /* @__PURE__ */ te({
|
|
|
500
496
|
onClick: () => d(w)
|
|
501
497
|
}, {
|
|
502
498
|
default: M(() => [
|
|
503
|
-
_(
|
|
499
|
+
_(k, { name: "refresh" }),
|
|
504
500
|
X("刷新 ")
|
|
505
501
|
]),
|
|
506
502
|
_: 2
|
|
@@ -510,27 +506,27 @@ const Vo = /* @__PURE__ */ te({
|
|
|
510
506
|
onClick: () => p(w.path, P)
|
|
511
507
|
}, {
|
|
512
508
|
default: M(() => [
|
|
513
|
-
_(
|
|
509
|
+
_(k, { name: "arrow-left" }),
|
|
514
510
|
X("关闭左侧 ")
|
|
515
511
|
]),
|
|
516
512
|
_: 2
|
|
517
513
|
}, 1032, ["onClick"])) : $("", !0),
|
|
518
514
|
P > 0 && P < m(i).length - 1 ? (g(), S(x, {
|
|
519
515
|
key: 3,
|
|
520
|
-
onClick: () =>
|
|
516
|
+
onClick: () => T(w.path, P)
|
|
521
517
|
}, {
|
|
522
518
|
default: M(() => [
|
|
523
|
-
_(
|
|
519
|
+
_(k, { name: "arrow-right " }),
|
|
524
520
|
X("关闭右侧 ")
|
|
525
521
|
]),
|
|
526
522
|
_: 2
|
|
527
523
|
}, 1032, ["onClick"])) : $("", !0),
|
|
528
524
|
P > 0 && m(i).length > 2 ? (g(), S(x, {
|
|
529
525
|
key: 4,
|
|
530
|
-
onClick: () =>
|
|
526
|
+
onClick: () => N(w.path, P)
|
|
531
527
|
}, {
|
|
532
528
|
default: M(() => [
|
|
533
|
-
_(
|
|
529
|
+
_(k, { name: "close-circle" }),
|
|
534
530
|
X("关闭其他 ")
|
|
535
531
|
]),
|
|
536
532
|
_: 2
|
|
@@ -567,19 +563,19 @@ const Ao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
567
563
|
t.userLogout(), n.push({ name: "login" });
|
|
568
564
|
}
|
|
569
565
|
return (r, c) => {
|
|
570
|
-
const u = j("t-icon"), d = j("t-button"), p = j("t-dropdown-item"),
|
|
566
|
+
const u = j("t-icon"), d = j("t-button"), p = j("t-dropdown-item"), T = j("t-dropdown-menu"), N = j("t-dropdown"), E = j("t-tooltip"), C = j("t-head-menu"), h = j("t-header");
|
|
571
567
|
return g(), S(h, {
|
|
572
568
|
class: Z(`${m(J)}__header`)
|
|
573
569
|
}, {
|
|
574
570
|
default: M(() => [
|
|
575
|
-
_(
|
|
571
|
+
_(C, { theme: m(a) }, {
|
|
576
572
|
logo: M(() => [
|
|
577
573
|
ae("div", {
|
|
578
574
|
class: Z(`${m(J)}__header-logo-container`)
|
|
579
575
|
}, [
|
|
580
576
|
ae("div", {
|
|
581
577
|
class: Z(`${m(J)}__header—logo`),
|
|
582
|
-
style:
|
|
578
|
+
style: Nt({ backgroundImage: `url(${m(Ao)})` })
|
|
583
579
|
}, null, 6)
|
|
584
580
|
], 2),
|
|
585
581
|
ae("div", {
|
|
@@ -605,9 +601,9 @@ const Ao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
605
601
|
ae("div", {
|
|
606
602
|
class: Z(`${m(J)}__header-operations-container`)
|
|
607
603
|
}, [
|
|
608
|
-
_(
|
|
604
|
+
_(N, { trigger: "click" }, {
|
|
609
605
|
dropdown: M(() => [
|
|
610
|
-
_(
|
|
606
|
+
_(T, null, {
|
|
611
607
|
default: M(() => [
|
|
612
608
|
_(p, { onClick: s }, {
|
|
613
609
|
default: M(() => [
|
|
@@ -914,7 +910,7 @@ const $o = /* @__PURE__ */ te({
|
|
|
914
910
|
};
|
|
915
911
|
return (a, l) => {
|
|
916
912
|
const i = j("t-icon"), s = j("t-menu-item"), r = j("GLayoutSideMenuContent", !0), c = j("t-submenu");
|
|
917
|
-
return g(!0), Y(ge, null,
|
|
913
|
+
return g(!0), Y(ge, null, Te(e.sideMenuTree, (u, d) => (g(), Y("div", {
|
|
918
914
|
class: Z(`${m(J)}__side-menu-content`),
|
|
919
915
|
key: d
|
|
920
916
|
}, [
|
|
@@ -1002,27 +998,27 @@ const vt = (e, n) => {
|
|
|
1002
998
|
n.push({ name: "menuManage" }), o.toggleSideMenuCollapse();
|
|
1003
999
|
}
|
|
1004
1000
|
return (u, d) => {
|
|
1005
|
-
const p = j("t-icon"),
|
|
1001
|
+
const p = j("t-icon"), T = j("t-button"), N = j("t-menu"), E = j("t-drawer");
|
|
1006
1002
|
return g(), S(E, {
|
|
1007
1003
|
class: Z(`${m(J)}__drawer`),
|
|
1008
1004
|
size: "232px",
|
|
1009
1005
|
placement: "left",
|
|
1010
1006
|
visible: m(i),
|
|
1011
|
-
"onUpdate:visible": d[0] || (d[0] = (
|
|
1007
|
+
"onUpdate:visible": d[0] || (d[0] = (C) => ht(i) ? i.value = C : null),
|
|
1012
1008
|
showOverlay: !0,
|
|
1013
1009
|
header: !1,
|
|
1014
1010
|
footer: !1,
|
|
1015
1011
|
showInAttachedElement: !0
|
|
1016
1012
|
}, {
|
|
1017
1013
|
default: M(() => [
|
|
1018
|
-
_(
|
|
1014
|
+
_(N, {
|
|
1019
1015
|
width: "210px",
|
|
1020
1016
|
theme: m(l),
|
|
1021
1017
|
value: m(s),
|
|
1022
1018
|
defaultExpanded: m(r)
|
|
1023
1019
|
}, {
|
|
1024
1020
|
operations: M(() => [
|
|
1025
|
-
_(
|
|
1021
|
+
_(T, {
|
|
1026
1022
|
variant: "text",
|
|
1027
1023
|
theme: "primary",
|
|
1028
1024
|
size: "large",
|
|
@@ -1060,7 +1056,7 @@ const Wo = /* @__PURE__ */ te({
|
|
|
1060
1056
|
background: Fo(n.value, Oo)["--td-brand-color"]
|
|
1061
1057
|
}));
|
|
1062
1058
|
return (o, a) => (g(), Y("div", {
|
|
1063
|
-
style:
|
|
1059
|
+
style: Nt(m(t)),
|
|
1064
1060
|
class: Z(`${m(J)}__color-container`)
|
|
1065
1061
|
}, null, 6));
|
|
1066
1062
|
}
|
|
@@ -1097,7 +1093,7 @@ const Ho = /* @__PURE__ */ te({
|
|
|
1097
1093
|
return g(), S(p, {
|
|
1098
1094
|
class: Z(`${m(J)}__setting-panel`),
|
|
1099
1095
|
visible: m(l),
|
|
1100
|
-
"onUpdate:visible": r[2] || (r[2] = (
|
|
1096
|
+
"onUpdate:visible": r[2] || (r[2] = (T) => ht(l) ? l.value = T : null),
|
|
1101
1097
|
footer: !1
|
|
1102
1098
|
}, {
|
|
1103
1099
|
header: M(() => [
|
|
@@ -1113,18 +1109,18 @@ const Ho = /* @__PURE__ */ te({
|
|
|
1113
1109
|
}, "主题色", 2),
|
|
1114
1110
|
_(d, {
|
|
1115
1111
|
modelValue: m(a).brandTheme,
|
|
1116
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1112
|
+
"onUpdate:modelValue": r[0] || (r[0] = (T) => m(a).brandTheme = T),
|
|
1117
1113
|
onChange: i
|
|
1118
1114
|
}, {
|
|
1119
1115
|
default: M(() => [
|
|
1120
|
-
(g(!0), Y(ge, null,
|
|
1116
|
+
(g(!0), Y(ge, null, Te(t.slice(0, t.length - 1), (T, N) => (g(), Y("div", { key: N }, [
|
|
1121
1117
|
(g(), S(u, {
|
|
1122
|
-
key:
|
|
1123
|
-
value:
|
|
1118
|
+
key: N,
|
|
1119
|
+
value: T,
|
|
1124
1120
|
class: Z(`${m(J)}__setting-container--color-group`)
|
|
1125
1121
|
}, {
|
|
1126
1122
|
default: M(() => [
|
|
1127
|
-
_(Wo, { value:
|
|
1123
|
+
_(Wo, { value: T }, null, 8, ["value"])
|
|
1128
1124
|
]),
|
|
1129
1125
|
_: 2
|
|
1130
1126
|
}, 1032, ["value", "class"]))
|
|
@@ -1137,18 +1133,18 @@ const Ho = /* @__PURE__ */ te({
|
|
|
1137
1133
|
}, "主题模式", 2),
|
|
1138
1134
|
_(d, {
|
|
1139
1135
|
modelValue: m(a).displayMode,
|
|
1140
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1136
|
+
"onUpdate:modelValue": r[1] || (r[1] = (T) => m(a).displayMode = T),
|
|
1141
1137
|
variant: "default-filled",
|
|
1142
1138
|
onChange: i
|
|
1143
1139
|
}, {
|
|
1144
1140
|
default: M(() => [
|
|
1145
|
-
(g(), Y(ge, null,
|
|
1141
|
+
(g(), Y(ge, null, Te(o, (T, N) => ae("div", { key: N }, [
|
|
1146
1142
|
(g(), S(u, {
|
|
1147
|
-
key:
|
|
1148
|
-
value:
|
|
1143
|
+
key: N,
|
|
1144
|
+
value: T.type
|
|
1149
1145
|
}, {
|
|
1150
1146
|
default: M(() => [
|
|
1151
|
-
X(ye(
|
|
1147
|
+
X(ye(T.text), 1)
|
|
1152
1148
|
]),
|
|
1153
1149
|
_: 2
|
|
1154
1150
|
}, 1032, ["value"]))
|
|
@@ -1236,7 +1232,7 @@ const Bn = /* @__PURE__ */ te({
|
|
|
1236
1232
|
return g(), S(o, qt({
|
|
1237
1233
|
class: `${m(J)}__common-dialog`
|
|
1238
1234
|
}, e.commonDialogProps), Lt({ _: 2 }, [
|
|
1239
|
-
|
|
1235
|
+
Te(n.$slots, (a, l) => ({
|
|
1240
1236
|
name: l,
|
|
1241
1237
|
fn: M((i) => [
|
|
1242
1238
|
Oe(n.$slots, l, Sn(_n({ ...i })))
|
|
@@ -1342,7 +1338,7 @@ const jn = at(Xo), Zo = /* @__PURE__ */ te({
|
|
|
1342
1338
|
tableLayout: "auto",
|
|
1343
1339
|
maxHeight: "calc(100vh - 281px)"
|
|
1344
1340
|
}), Lt({ _: 2 }, [
|
|
1345
|
-
|
|
1341
|
+
Te(o.$slots, (i, s) => ({
|
|
1346
1342
|
name: s,
|
|
1347
1343
|
fn: M((r) => [
|
|
1348
1344
|
Oe(o.$slots, s, Sn(_n({ ...r })))
|
|
@@ -1374,7 +1370,7 @@ function ta() {
|
|
|
1374
1370
|
return sessionStorage.setItem(mn, n), n;
|
|
1375
1371
|
}
|
|
1376
1372
|
}
|
|
1377
|
-
|
|
1373
|
+
kt.configure({
|
|
1378
1374
|
easing: "ease",
|
|
1379
1375
|
// 动画方式
|
|
1380
1376
|
speed: 600,
|
|
@@ -1395,10 +1391,7 @@ class oa {
|
|
|
1395
1391
|
this.sessionId = ta, this.service = wo.create(n), this.service.interceptors.request.use(
|
|
1396
1392
|
(t) => {
|
|
1397
1393
|
var l, i, s;
|
|
1398
|
-
const o = (
|
|
1399
|
-
token: "",
|
|
1400
|
-
tokenExpiredTime: ""
|
|
1401
|
-
}, a = ((s = (i = JSON.parse(localStorage.getItem(ft))) == null ? void 0 : i.userInfo) == null ? void 0 : s.language) || "zh-CN";
|
|
1394
|
+
const o = (l = JSON.parse(localStorage.getItem(ft))) == null ? void 0 : l.userInfo, a = ((s = (i = JSON.parse(localStorage.getItem(ft))) == null ? void 0 : i.userInfo) == null ? void 0 : s.language) || "zh-CN";
|
|
1402
1395
|
if (o) {
|
|
1403
1396
|
const { token: r, tokenExpiredTime: c } = o;
|
|
1404
1397
|
t.headers = {
|
|
@@ -1407,7 +1400,7 @@ class oa {
|
|
|
1407
1400
|
lang: a
|
|
1408
1401
|
};
|
|
1409
1402
|
}
|
|
1410
|
-
return
|
|
1403
|
+
return kt.start(), {
|
|
1411
1404
|
...t
|
|
1412
1405
|
};
|
|
1413
1406
|
},
|
|
@@ -1425,9 +1418,9 @@ class oa {
|
|
|
1425
1418
|
}
|
|
1426
1419
|
});
|
|
1427
1420
|
}
|
|
1428
|
-
return
|
|
1421
|
+
return kt.done(), o;
|
|
1429
1422
|
},
|
|
1430
|
-
async (t) => (
|
|
1423
|
+
async (t) => (kt.done(), Promise.reject(t))
|
|
1431
1424
|
);
|
|
1432
1425
|
}
|
|
1433
1426
|
// * 常用请求方法封装
|
|
@@ -1513,7 +1506,7 @@ const qe = new oa(Jo), st = {
|
|
|
1513
1506
|
};
|
|
1514
1507
|
}
|
|
1515
1508
|
});
|
|
1516
|
-
function
|
|
1509
|
+
function Ie(e) {
|
|
1517
1510
|
switch (e) {
|
|
1518
1511
|
case "check_box":
|
|
1519
1512
|
case "switch":
|
|
@@ -1537,7 +1530,7 @@ function Jt(e, n) {
|
|
|
1537
1530
|
t.keyName && On(ee(e, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && Ge(
|
|
1538
1531
|
e,
|
|
1539
1532
|
t.keyName,
|
|
1540
|
-
|
|
1533
|
+
Ie(t.itemType)
|
|
1541
1534
|
);
|
|
1542
1535
|
}), mt(e, {});
|
|
1543
1536
|
{
|
|
@@ -1546,7 +1539,7 @@ function Jt(e, n) {
|
|
|
1546
1539
|
xe(o.keyName) || Ge(
|
|
1547
1540
|
t,
|
|
1548
1541
|
o.keyName,
|
|
1549
|
-
|
|
1542
|
+
Ie(o.itemType)
|
|
1550
1543
|
);
|
|
1551
1544
|
}), mt(t, {});
|
|
1552
1545
|
}
|
|
@@ -1557,19 +1550,19 @@ function $n(e) {
|
|
|
1557
1550
|
const u = [];
|
|
1558
1551
|
return c.forEach((d) => {
|
|
1559
1552
|
if (d[i] == r) {
|
|
1560
|
-
const p = s(d[t], n),
|
|
1553
|
+
const p = s(d[t], n), T = {
|
|
1561
1554
|
key: d[t],
|
|
1562
1555
|
label: d[a],
|
|
1563
1556
|
value: d[o],
|
|
1564
1557
|
children: []
|
|
1565
1558
|
};
|
|
1566
|
-
p.length && (
|
|
1559
|
+
p.length && (T.children = p), u.push(T);
|
|
1567
1560
|
}
|
|
1568
1561
|
}), u;
|
|
1569
1562
|
};
|
|
1570
1563
|
return s(l, n);
|
|
1571
1564
|
}
|
|
1572
|
-
const
|
|
1565
|
+
const It = /* @__PURE__ */ te({
|
|
1573
1566
|
__name: "GFormInput",
|
|
1574
1567
|
props: {
|
|
1575
1568
|
inputType: null,
|
|
@@ -1602,7 +1595,7 @@ const Nt = /* @__PURE__ */ te({
|
|
|
1602
1595
|
t.originValue && t.originValue != r && n("blur:modelValue", r);
|
|
1603
1596
|
}
|
|
1604
1597
|
return et(() => {
|
|
1605
|
-
i(
|
|
1598
|
+
i(Ie(o.value));
|
|
1606
1599
|
}), (r, c) => {
|
|
1607
1600
|
const u = j("t-input");
|
|
1608
1601
|
return g(), S(u, {
|
|
@@ -1777,17 +1770,17 @@ const en = /* @__PURE__ */ te({
|
|
|
1777
1770
|
return be(
|
|
1778
1771
|
() => t.disabled,
|
|
1779
1772
|
() => {
|
|
1780
|
-
t.disabled || r(
|
|
1773
|
+
t.disabled || r(Ie(o.value));
|
|
1781
1774
|
}
|
|
1782
1775
|
), et(() => {
|
|
1783
|
-
r(
|
|
1776
|
+
r(Ie(o.value));
|
|
1784
1777
|
}), (u, d) => {
|
|
1785
|
-
var
|
|
1778
|
+
var T;
|
|
1786
1779
|
const p = j("t-select");
|
|
1787
1780
|
return g(), S(p, {
|
|
1788
1781
|
modelValue: s.value,
|
|
1789
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1790
|
-
placeholder: `请选择${(
|
|
1782
|
+
"onUpdate:modelValue": d[0] || (d[0] = (N) => s.value = N),
|
|
1783
|
+
placeholder: `请选择${(T = e.formItem) == null ? void 0 : T.name}`,
|
|
1791
1784
|
options: m(i),
|
|
1792
1785
|
multiple: e.multiple,
|
|
1793
1786
|
"min-collapsed-num": 2,
|
|
@@ -1831,18 +1824,18 @@ const en = /* @__PURE__ */ te({
|
|
|
1831
1824
|
return be(
|
|
1832
1825
|
() => t.disabled,
|
|
1833
1826
|
() => {
|
|
1834
|
-
t.disabled && n("update:modelValue",
|
|
1827
|
+
t.disabled && n("update:modelValue", Ie(o.value));
|
|
1835
1828
|
}
|
|
1836
1829
|
), (s, r) => {
|
|
1837
|
-
var d, p,
|
|
1830
|
+
var d, p, T, N, E, C, h;
|
|
1838
1831
|
const c = j("t-date-picker"), u = j("t-time-picker");
|
|
1839
1832
|
return g(), Y(ge, null, [
|
|
1840
1833
|
((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((p = e.formItem) == null ? void 0 : p.itemType) === "date_time_selector" ? (g(), S(c, {
|
|
1841
1834
|
key: 0,
|
|
1842
|
-
"enable-time-picker": ((
|
|
1843
|
-
placeholder: (
|
|
1835
|
+
"enable-time-picker": ((T = e.formItem) == null ? void 0 : T.itemType) === "date_time_selector",
|
|
1836
|
+
placeholder: (N = e.formItem) == null ? void 0 : N.placeholder,
|
|
1844
1837
|
modelValue: m(a),
|
|
1845
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1838
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => ht(a) ? a.value = k : null),
|
|
1846
1839
|
format: e.formItem.format || "YYYY-MM-DD HH:mm:ss",
|
|
1847
1840
|
valueType: "time-stamp",
|
|
1848
1841
|
disabled: e.disabled,
|
|
@@ -1852,9 +1845,9 @@ const en = /* @__PURE__ */ te({
|
|
|
1852
1845
|
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : $("", !0),
|
|
1853
1846
|
((E = e.formItem) == null ? void 0 : E.itemType) === "time_selector" ? (g(), S(u, {
|
|
1854
1847
|
key: 1,
|
|
1855
|
-
placeholder: (
|
|
1848
|
+
placeholder: (C = e.formItem) == null ? void 0 : C.placeholder,
|
|
1856
1849
|
modelValue: m(a),
|
|
1857
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1850
|
+
"onUpdate:modelValue": r[1] || (r[1] = (k) => ht(a) ? a.value = k : null),
|
|
1858
1851
|
onChange: l,
|
|
1859
1852
|
onBlur: i,
|
|
1860
1853
|
format: ((h = e.formItem) == null ? void 0 : h.format) || "HH:mm:ss",
|
|
@@ -1894,7 +1887,7 @@ const en = /* @__PURE__ */ te({
|
|
|
1894
1887
|
const d = j("t-button");
|
|
1895
1888
|
return g(), S(m(jn), null, Lt({
|
|
1896
1889
|
"left-operations": M(() => [
|
|
1897
|
-
(g(!0), Y(ge, null,
|
|
1890
|
+
(g(!0), Y(ge, null, Te(m(o), (p) => (g(), Y(ge, {
|
|
1898
1891
|
key: p.buttonId
|
|
1899
1892
|
}, [
|
|
1900
1893
|
p.action == "UPLOAD_FILE" ? (g(), S(sa, {
|
|
@@ -1904,7 +1897,7 @@ const en = /* @__PURE__ */ te({
|
|
|
1904
1897
|
}, null, 8, ["formItem", "viewName"])) : (g(), S(d, {
|
|
1905
1898
|
key: 1,
|
|
1906
1899
|
theme: "primary",
|
|
1907
|
-
onClick: (
|
|
1900
|
+
onClick: (T) => a(p)
|
|
1908
1901
|
}, {
|
|
1909
1902
|
default: M(() => [
|
|
1910
1903
|
X(ye(p.name), 1)
|
|
@@ -1918,13 +1911,13 @@ const en = /* @__PURE__ */ te({
|
|
|
1918
1911
|
m(l) ? {
|
|
1919
1912
|
name: "right-operations",
|
|
1920
1913
|
fn: M(() => [
|
|
1921
|
-
(g(!0), Y(ge, null,
|
|
1914
|
+
(g(!0), Y(ge, null, Te(m(l), (p, T) => (g(), Y("div", { key: T }, [
|
|
1922
1915
|
p.itemType === "text_input" ? (g(), Y("div", ma, [
|
|
1923
|
-
_(
|
|
1916
|
+
_(It, {
|
|
1924
1917
|
formItem: p,
|
|
1925
1918
|
modelValue: m(ee)(m(i), p.keyName),
|
|
1926
1919
|
placeholder: p.placeholder,
|
|
1927
|
-
"onUpdate:modelValue": (
|
|
1920
|
+
"onUpdate:modelValue": (N) => p.keyName && r(p.keyName, N)
|
|
1928
1921
|
}, null, 8, ["formItem", "modelValue", "placeholder", "onUpdate:modelValue"])
|
|
1929
1922
|
])) : $("", !0),
|
|
1930
1923
|
p.itemType === "selector" ? (g(), Y("div", fa, [
|
|
@@ -1932,7 +1925,7 @@ const en = /* @__PURE__ */ te({
|
|
|
1932
1925
|
modelValue: m(ee)(m(i), p.keyName),
|
|
1933
1926
|
formItem: p,
|
|
1934
1927
|
viewName: e.viewName,
|
|
1935
|
-
"onUpdate:modelValue": (
|
|
1928
|
+
"onUpdate:modelValue": (N) => p.keyName && r(p.keyName, N)
|
|
1936
1929
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1937
1930
|
])) : $("", !0),
|
|
1938
1931
|
p.itemType === "date_selector" || p.itemType === "time_selector" || p.itemType === "date_time_selector" ? (g(), Y("div", ha, [
|
|
@@ -1940,7 +1933,7 @@ const en = /* @__PURE__ */ te({
|
|
|
1940
1933
|
modelValue: m(ee)(m(i), p.keyName),
|
|
1941
1934
|
formItem: p,
|
|
1942
1935
|
viewName: e.viewName,
|
|
1943
|
-
"onUpdate:modelValue": (
|
|
1936
|
+
"onUpdate:modelValue": (N) => p.keyName && r(p.keyName, N)
|
|
1944
1937
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1945
1938
|
])) : $("", !0)
|
|
1946
1939
|
]))), 128))
|
|
@@ -2025,10 +2018,10 @@ const en = /* @__PURE__ */ te({
|
|
|
2025
2018
|
return be(
|
|
2026
2019
|
() => t.disabled,
|
|
2027
2020
|
() => {
|
|
2028
|
-
t.disabled && n("update:modelValue",
|
|
2021
|
+
t.disabled && n("update:modelValue", Ie(o.value));
|
|
2029
2022
|
}
|
|
2030
2023
|
), gt(() => {
|
|
2031
|
-
n("update:modelValue",
|
|
2024
|
+
n("update:modelValue", Ie(o.value));
|
|
2032
2025
|
}), (i, s) => {
|
|
2033
2026
|
const r = j("t-switch");
|
|
2034
2027
|
return g(), S(r, {
|
|
@@ -2081,25 +2074,25 @@ const en = /* @__PURE__ */ te({
|
|
|
2081
2074
|
return be(
|
|
2082
2075
|
() => t.disabled,
|
|
2083
2076
|
() => {
|
|
2084
|
-
t.disabled && n("update:modelValue",
|
|
2077
|
+
t.disabled && n("update:modelValue", Ie(o.value));
|
|
2085
2078
|
}
|
|
2086
2079
|
), gt(() => {
|
|
2087
|
-
n("update:modelValue",
|
|
2080
|
+
n("update:modelValue", Ie(o.value));
|
|
2088
2081
|
}), (c, u) => {
|
|
2089
2082
|
const d = j("t-radio"), p = j("t-radio-group");
|
|
2090
2083
|
return g(), S(p, {
|
|
2091
2084
|
modelValue: s.value,
|
|
2092
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2085
|
+
"onUpdate:modelValue": u[0] || (u[0] = (T) => s.value = T),
|
|
2093
2086
|
onChange: r,
|
|
2094
2087
|
disabled: e.disabled
|
|
2095
2088
|
}, {
|
|
2096
2089
|
default: M(() => [
|
|
2097
|
-
(g(!0), Y(ge, null,
|
|
2098
|
-
key:
|
|
2099
|
-
value:
|
|
2090
|
+
(g(!0), Y(ge, null, Te(m(i), (T) => (g(), S(d, {
|
|
2091
|
+
key: T.key,
|
|
2092
|
+
value: T.value
|
|
2100
2093
|
}, {
|
|
2101
2094
|
default: M(() => [
|
|
2102
|
-
X(ye(
|
|
2095
|
+
X(ye(T.label), 1)
|
|
2103
2096
|
]),
|
|
2104
2097
|
_: 2
|
|
2105
2098
|
}, 1032, ["value"]))), 128))
|
|
@@ -2155,18 +2148,18 @@ const en = /* @__PURE__ */ te({
|
|
|
2155
2148
|
return be(
|
|
2156
2149
|
() => t.disabled,
|
|
2157
2150
|
() => {
|
|
2158
|
-
t.disabled || r(
|
|
2151
|
+
t.disabled || r(Ie(a.value));
|
|
2159
2152
|
}
|
|
2160
2153
|
), et(() => {
|
|
2161
|
-
r(
|
|
2154
|
+
r(Ie(a.value));
|
|
2162
2155
|
}), (u, d) => {
|
|
2163
|
-
var
|
|
2156
|
+
var T;
|
|
2164
2157
|
const p = j("t-tree-select");
|
|
2165
2158
|
return g(), S(p, {
|
|
2166
2159
|
modelValue: o.value,
|
|
2167
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2160
|
+
"onUpdate:modelValue": d[0] || (d[0] = (N) => o.value = N),
|
|
2168
2161
|
data: m(s),
|
|
2169
|
-
placeholder: (
|
|
2162
|
+
placeholder: (T = e.formItem) == null ? void 0 : T.placeholder,
|
|
2170
2163
|
multiple: e.multiple,
|
|
2171
2164
|
"min-collapsed-num": 3,
|
|
2172
2165
|
treeProps: { valueMode: "all" },
|
|
@@ -2223,15 +2216,15 @@ const en = /* @__PURE__ */ te({
|
|
|
2223
2216
|
return be(
|
|
2224
2217
|
() => t.disabled,
|
|
2225
2218
|
() => {
|
|
2226
|
-
t.disabled || r(
|
|
2219
|
+
t.disabled || r(Ie(o.value));
|
|
2227
2220
|
}
|
|
2228
2221
|
), et(() => {
|
|
2229
|
-
r(
|
|
2222
|
+
r(Ie(o.value));
|
|
2230
2223
|
}), (u, d) => {
|
|
2231
2224
|
const p = j("t-cascader");
|
|
2232
2225
|
return g(), S(p, {
|
|
2233
2226
|
modelValue: s.value,
|
|
2234
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2227
|
+
"onUpdate:modelValue": d[0] || (d[0] = (T) => s.value = T),
|
|
2235
2228
|
options: m(i),
|
|
2236
2229
|
multiple: e.multiple,
|
|
2237
2230
|
disabled: e.disabled,
|
|
@@ -2267,7 +2260,7 @@ const en = /* @__PURE__ */ te({
|
|
|
2267
2260
|
oe.error(`上传失败:${c}`);
|
|
2268
2261
|
}
|
|
2269
2262
|
return (c, u) => {
|
|
2270
|
-
var p,
|
|
2263
|
+
var p, T, N;
|
|
2271
2264
|
const d = j("t-upload");
|
|
2272
2265
|
return g(), S(d, {
|
|
2273
2266
|
ref: "uploadRef",
|
|
@@ -2276,8 +2269,8 @@ const en = /* @__PURE__ */ te({
|
|
|
2276
2269
|
tips: e.formItem.placeholder || "请选择上传文件",
|
|
2277
2270
|
action: m(l),
|
|
2278
2271
|
accept: (p = e.formItem) == null ? void 0 : p.accept,
|
|
2279
|
-
max: (
|
|
2280
|
-
size: (
|
|
2272
|
+
max: (T = e.formItem) == null ? void 0 : T.limit,
|
|
2273
|
+
size: (N = e.formItem) == null ? void 0 : N.maxSize,
|
|
2281
2274
|
disabled: e.disabled,
|
|
2282
2275
|
"is-batch-upload": !0,
|
|
2283
2276
|
onRemove: s,
|
|
@@ -2299,25 +2292,25 @@ var ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2299
2292
|
(function(t, o) {
|
|
2300
2293
|
e.exports = o();
|
|
2301
2294
|
})(ga, function() {
|
|
2302
|
-
var t, o, a = 1e3, l = 6e4, i = 36e5, s = 864e5, r = /\[([^\]]+)]|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, c = 31536e6, u = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, p = { years: c, months: u, days: s, hours: i, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 },
|
|
2295
|
+
var t, o, a = 1e3, l = 6e4, i = 36e5, s = 864e5, r = /\[([^\]]+)]|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, c = 31536e6, u = 2592e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, p = { years: c, months: u, days: s, hours: i, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, T = function(b) {
|
|
2303
2296
|
return b instanceof v;
|
|
2304
|
-
},
|
|
2297
|
+
}, N = function(b, y, f) {
|
|
2305
2298
|
return new v(b, f, y.$l);
|
|
2306
2299
|
}, E = function(b) {
|
|
2307
2300
|
return o.p(b) + "s";
|
|
2308
|
-
},
|
|
2301
|
+
}, C = function(b) {
|
|
2309
2302
|
return b < 0;
|
|
2310
2303
|
}, h = function(b) {
|
|
2311
|
-
return
|
|
2312
|
-
},
|
|
2304
|
+
return C(b) ? Math.ceil(b) : Math.floor(b);
|
|
2305
|
+
}, k = function(b) {
|
|
2313
2306
|
return Math.abs(b);
|
|
2314
2307
|
}, x = function(b, y) {
|
|
2315
|
-
return b ?
|
|
2308
|
+
return b ? C(b) ? { negative: !0, format: "" + k(b) + y } : { negative: !1, format: "" + b + y } : { negative: !1, format: "" };
|
|
2316
2309
|
}, v = function() {
|
|
2317
2310
|
function b(f, w, P) {
|
|
2318
2311
|
var R = this;
|
|
2319
2312
|
if (this.$d = {}, this.$l = P, f === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), w)
|
|
2320
|
-
return
|
|
2313
|
+
return N(f * p[E(w)], this);
|
|
2321
2314
|
if (typeof f == "number")
|
|
2322
2315
|
return this.$ms = f, this.parseFromMilliseconds(), this;
|
|
2323
2316
|
if (typeof f == "object")
|
|
@@ -2325,9 +2318,9 @@ var ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2325
2318
|
R.$d[E(U)] = f[U];
|
|
2326
2319
|
}), this.calMilliseconds(), this;
|
|
2327
2320
|
if (typeof f == "string") {
|
|
2328
|
-
var
|
|
2329
|
-
if (
|
|
2330
|
-
var H =
|
|
2321
|
+
var I = f.match(d);
|
|
2322
|
+
if (I) {
|
|
2323
|
+
var H = I.slice(2).map(function(U) {
|
|
2331
2324
|
return U != null ? Number(U) : 0;
|
|
2332
2325
|
});
|
|
2333
2326
|
return this.$d.years = H[0], this.$d.months = H[1], this.$d.weeks = H[2], this.$d.days = H[3], this.$d.hours = H[4], this.$d.minutes = H[5], this.$d.seconds = H[6], this.calMilliseconds(), this;
|
|
@@ -2347,16 +2340,16 @@ var ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2347
2340
|
}, y.toISOString = function() {
|
|
2348
2341
|
var f = x(this.$d.years, "Y"), w = x(this.$d.months, "M"), P = +this.$d.days || 0;
|
|
2349
2342
|
this.$d.weeks && (P += 7 * this.$d.weeks);
|
|
2350
|
-
var R = x(P, "D"),
|
|
2343
|
+
var R = x(P, "D"), I = x(this.$d.hours, "H"), H = x(this.$d.minutes, "M"), U = this.$d.seconds || 0;
|
|
2351
2344
|
this.$d.milliseconds && (U += this.$d.milliseconds / 1e3);
|
|
2352
|
-
var le = x(U, "S"), O = f.negative || w.negative || R.negative ||
|
|
2345
|
+
var le = x(U, "S"), O = f.negative || w.negative || R.negative || I.negative || H.negative || le.negative, De = I.format || H.format || le.format ? "T" : "", re = (O ? "-" : "") + "P" + f.format + w.format + R.format + De + I.format + H.format + le.format;
|
|
2353
2346
|
return re === "P" || re === "-P" ? "P0D" : re;
|
|
2354
2347
|
}, y.toJSON = function() {
|
|
2355
2348
|
return this.toISOString();
|
|
2356
2349
|
}, y.format = function(f) {
|
|
2357
2350
|
var w = f || "YYYY-MM-DDTHH:mm:ss", P = { Y: this.$d.years, YY: o.s(this.$d.years, 2, "0"), YYYY: o.s(this.$d.years, 4, "0"), M: this.$d.months, MM: o.s(this.$d.months, 2, "0"), D: this.$d.days, DD: o.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: o.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: o.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: o.s(this.$d.seconds, 2, "0"), SSS: o.s(this.$d.milliseconds, 3, "0") };
|
|
2358
|
-
return w.replace(r, function(R,
|
|
2359
|
-
return
|
|
2351
|
+
return w.replace(r, function(R, I) {
|
|
2352
|
+
return I || String(P[R]);
|
|
2360
2353
|
});
|
|
2361
2354
|
}, y.as = function(f) {
|
|
2362
2355
|
return this.$ms / p[E(f)];
|
|
@@ -2365,14 +2358,14 @@ var ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2365
2358
|
return P === "milliseconds" ? w %= 1e3 : w = P === "weeks" ? h(w / p[P]) : this.$d[P], w === 0 ? 0 : w;
|
|
2366
2359
|
}, y.add = function(f, w, P) {
|
|
2367
2360
|
var R;
|
|
2368
|
-
return R = w ? f * p[E(w)] :
|
|
2361
|
+
return R = w ? f * p[E(w)] : T(f) ? f.$ms : N(f, this).$ms, N(this.$ms + R * (P ? -1 : 1), this);
|
|
2369
2362
|
}, y.subtract = function(f, w) {
|
|
2370
2363
|
return this.add(f, w, !0);
|
|
2371
2364
|
}, y.locale = function(f) {
|
|
2372
2365
|
var w = this.clone();
|
|
2373
2366
|
return w.$l = f, w;
|
|
2374
2367
|
}, y.clone = function() {
|
|
2375
|
-
return
|
|
2368
|
+
return N(this.$ms, this);
|
|
2376
2369
|
}, y.humanize = function(f) {
|
|
2377
2370
|
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!f);
|
|
2378
2371
|
}, y.milliseconds = function() {
|
|
@@ -2410,15 +2403,15 @@ var ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2410
2403
|
}, b;
|
|
2411
2404
|
}();
|
|
2412
2405
|
return function(b, y, f) {
|
|
2413
|
-
t = f, o = f().$utils(), f.duration = function(R,
|
|
2406
|
+
t = f, o = f().$utils(), f.duration = function(R, I) {
|
|
2414
2407
|
var H = f.locale();
|
|
2415
|
-
return
|
|
2416
|
-
}, f.isDuration =
|
|
2408
|
+
return N(R, { $l: H }, I);
|
|
2409
|
+
}, f.isDuration = T;
|
|
2417
2410
|
var w = y.prototype.add, P = y.prototype.subtract;
|
|
2418
|
-
y.prototype.add = function(R,
|
|
2419
|
-
return
|
|
2420
|
-
}, y.prototype.subtract = function(R,
|
|
2421
|
-
return
|
|
2411
|
+
y.prototype.add = function(R, I) {
|
|
2412
|
+
return T(R) && (R = R.asMilliseconds()), w.bind(this)(R, I);
|
|
2413
|
+
}, y.prototype.subtract = function(R, I) {
|
|
2414
|
+
return T(R) && (R = R.asMilliseconds()), P.bind(this)(R, I);
|
|
2422
2415
|
};
|
|
2423
2416
|
};
|
|
2424
2417
|
});
|
|
@@ -2455,17 +2448,17 @@ const ya = Wt, ba = /* @__PURE__ */ te({
|
|
|
2455
2448
|
n("update:modelValue", p);
|
|
2456
2449
|
}
|
|
2457
2450
|
function i(s) {
|
|
2458
|
-
const { value: r } = s, c = r.split(":"), [u, d, p] = c,
|
|
2451
|
+
const { value: r } = s, c = r.split(":"), [u, d, p] = c, T = Ye.duration({
|
|
2459
2452
|
hours: u,
|
|
2460
2453
|
minutes: d,
|
|
2461
2454
|
seconds: p
|
|
2462
2455
|
}).asMilliseconds();
|
|
2463
|
-
t.originValue !=
|
|
2456
|
+
t.originValue != T && n("blur:modelValue", T);
|
|
2464
2457
|
}
|
|
2465
2458
|
return be(
|
|
2466
2459
|
() => t.disabled,
|
|
2467
2460
|
() => {
|
|
2468
|
-
t.disabled && n("update:modelValue",
|
|
2461
|
+
t.disabled && n("update:modelValue", Ie(o.value));
|
|
2469
2462
|
}
|
|
2470
2463
|
), (s, r) => {
|
|
2471
2464
|
var u;
|
|
@@ -2495,8 +2488,8 @@ const wa = /* @__PURE__ */ te({
|
|
|
2495
2488
|
setup(e, { emit: n }) {
|
|
2496
2489
|
const t = e;
|
|
2497
2490
|
B(() => {
|
|
2498
|
-
var
|
|
2499
|
-
return (
|
|
2491
|
+
var C;
|
|
2492
|
+
return (C = t.formItem) == null ? void 0 : C.itemType;
|
|
2500
2493
|
});
|
|
2501
2494
|
const o = Q(t.modelValue);
|
|
2502
2495
|
be(
|
|
@@ -2518,53 +2511,53 @@ const wa = /* @__PURE__ */ te({
|
|
|
2518
2511
|
placeholder: "请输入内容..."
|
|
2519
2512
|
};
|
|
2520
2513
|
et(() => {
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2514
|
+
const C = l.value;
|
|
2515
|
+
C != null && C.destroy();
|
|
2523
2516
|
});
|
|
2524
|
-
const r = (
|
|
2525
|
-
l.value =
|
|
2526
|
-
}, c = (
|
|
2527
|
-
n("update:modelValue",
|
|
2528
|
-
}, u = (
|
|
2529
|
-
}, d = Q(!1), p = (
|
|
2517
|
+
const r = (C) => {
|
|
2518
|
+
l.value = C;
|
|
2519
|
+
}, c = (C) => {
|
|
2520
|
+
n("update:modelValue", C.getHtml());
|
|
2521
|
+
}, u = (C) => {
|
|
2522
|
+
}, d = Q(!1), p = (C) => {
|
|
2530
2523
|
d.value = !0;
|
|
2531
|
-
},
|
|
2532
|
-
d.value = !1, t.originValue && t.originValue !=
|
|
2533
|
-
},
|
|
2534
|
-
const
|
|
2535
|
-
|
|
2524
|
+
}, T = (C) => {
|
|
2525
|
+
d.value = !1, t.originValue && t.originValue != C.getHtml() && n("blur:modelValue", C.getHtml());
|
|
2526
|
+
}, N = () => {
|
|
2527
|
+
const C = l.value;
|
|
2528
|
+
C != null && C.disable();
|
|
2536
2529
|
}, E = () => {
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2530
|
+
const C = l.value;
|
|
2531
|
+
C != null && C.enable();
|
|
2539
2532
|
};
|
|
2540
2533
|
return be(
|
|
2541
2534
|
() => t.disabled,
|
|
2542
2535
|
() => {
|
|
2543
|
-
t.disabled ?
|
|
2536
|
+
t.disabled ? N() : E();
|
|
2544
2537
|
}
|
|
2545
2538
|
), et(() => {
|
|
2546
2539
|
n("update:modelValue", "");
|
|
2547
|
-
}), (
|
|
2540
|
+
}), (C, h) => (g(), Y("div", {
|
|
2548
2541
|
class: Z(["editor", `${d.value ? "editor--focused" : ""}`])
|
|
2549
2542
|
}, [
|
|
2550
|
-
_(m(
|
|
2543
|
+
_(m(Co), {
|
|
2551
2544
|
class: "editor__toolbar",
|
|
2552
2545
|
editor: m(l),
|
|
2553
2546
|
defaultConfig: i,
|
|
2554
2547
|
mode: a.value
|
|
2555
2548
|
}, null, 8, ["editor", "mode"]),
|
|
2556
|
-
_(m(
|
|
2549
|
+
_(m(To), {
|
|
2557
2550
|
class: "editor__main",
|
|
2558
2551
|
style: { height: "300px" },
|
|
2559
2552
|
defaultConfig: s,
|
|
2560
2553
|
mode: a.value,
|
|
2561
2554
|
modelValue: o.value,
|
|
2562
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2555
|
+
"onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
|
|
2563
2556
|
onOnCreated: r,
|
|
2564
2557
|
onOnChange: c,
|
|
2565
2558
|
onOnDestroyed: u,
|
|
2566
2559
|
onOnFocus: p,
|
|
2567
|
-
onOnBlur:
|
|
2560
|
+
onOnBlur: T
|
|
2568
2561
|
}, null, 8, ["mode", "modelValue"])
|
|
2569
2562
|
], 2));
|
|
2570
2563
|
}
|
|
@@ -2599,7 +2592,7 @@ function Xn(e = {}) {
|
|
|
2599
2592
|
handleItemDisableIf: t
|
|
2600
2593
|
};
|
|
2601
2594
|
}
|
|
2602
|
-
const
|
|
2595
|
+
const Ca = /* @__PURE__ */ te({
|
|
2603
2596
|
__name: "GFormTagInput",
|
|
2604
2597
|
props: {
|
|
2605
2598
|
inputType: null,
|
|
@@ -2641,9 +2634,9 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2641
2634
|
n("blur:modelValue", a.value);
|
|
2642
2635
|
}
|
|
2643
2636
|
return et(() => {
|
|
2644
|
-
l(
|
|
2637
|
+
l(Ie(o.value));
|
|
2645
2638
|
}), (u, d) => {
|
|
2646
|
-
const p = j("t-button"),
|
|
2639
|
+
const p = j("t-button"), T = j("t-input"), N = j("t-input-group"), E = j("t-space");
|
|
2647
2640
|
return g(), S(E, null, {
|
|
2648
2641
|
default: M(() => [
|
|
2649
2642
|
e.modelValue.length == 0 ? (g(), S(p, {
|
|
@@ -2660,19 +2653,19 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2660
2653
|
direction: "vertical"
|
|
2661
2654
|
}, {
|
|
2662
2655
|
default: M(() => [
|
|
2663
|
-
(g(!0), Y(ge, null,
|
|
2656
|
+
(g(!0), Y(ge, null, Te(e.modelValue, (C, h) => (g(), S(N, { key: h }, {
|
|
2664
2657
|
default: M(() => [
|
|
2665
|
-
_(
|
|
2658
|
+
_(T, {
|
|
2666
2659
|
style: { width: "200px" },
|
|
2667
|
-
value:
|
|
2668
|
-
onChange: (
|
|
2660
|
+
value: C,
|
|
2661
|
+
onChange: (k) => s(k, h),
|
|
2669
2662
|
onBlur: c,
|
|
2670
2663
|
clearable: ""
|
|
2671
2664
|
}, null, 8, ["value", "onChange"]),
|
|
2672
2665
|
_(p, {
|
|
2673
2666
|
variant: "outline",
|
|
2674
2667
|
theme: "default",
|
|
2675
|
-
onClick: (
|
|
2668
|
+
onClick: (k) => r(h)
|
|
2676
2669
|
}, {
|
|
2677
2670
|
default: M(() => [
|
|
2678
2671
|
X("- ")
|
|
@@ -2701,7 +2694,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2701
2694
|
});
|
|
2702
2695
|
};
|
|
2703
2696
|
}
|
|
2704
|
-
}),
|
|
2697
|
+
}), Ta = ["id"], ka = /* @__PURE__ */ te({
|
|
2705
2698
|
__name: "GFormItem",
|
|
2706
2699
|
props: {
|
|
2707
2700
|
formItem: null,
|
|
@@ -2711,15 +2704,15 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2711
2704
|
emits: ["after-update-value"],
|
|
2712
2705
|
setup(e, { expose: n, emit: t }) {
|
|
2713
2706
|
const o = e, a = B(() => o.formModel), { handleItemShowIf: l, handleItemDisableIf: i } = Xn({ formModel: a });
|
|
2714
|
-
function s(
|
|
2715
|
-
t("after-update-value",
|
|
2707
|
+
function s(T, N) {
|
|
2708
|
+
t("after-update-value", T, N);
|
|
2716
2709
|
}
|
|
2717
2710
|
const r = B(() => o.formItem.disableIf ? i(o.formItem.disableIf, o.formItem) : !1), c = Q(!0);
|
|
2718
2711
|
function u() {
|
|
2719
2712
|
return r.value;
|
|
2720
2713
|
}
|
|
2721
|
-
function d(
|
|
2722
|
-
c.value =
|
|
2714
|
+
function d(T) {
|
|
2715
|
+
c.value = T;
|
|
2723
2716
|
}
|
|
2724
2717
|
const p = B(
|
|
2725
2718
|
() => o.formItem.keyName ? o.formItem.keyName : o.formItem.name
|
|
@@ -2729,8 +2722,8 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2729
2722
|
formItemId: p.value,
|
|
2730
2723
|
getDisableFlag: u,
|
|
2731
2724
|
setBlockShowFlag: d
|
|
2732
|
-
}), (
|
|
2733
|
-
const E = j("t-divider"),
|
|
2725
|
+
}), (T, N) => {
|
|
2726
|
+
const E = j("t-divider"), C = j("t-form-item");
|
|
2734
2727
|
return g(), Y("div", {
|
|
2735
2728
|
ref: "formItemRef",
|
|
2736
2729
|
class: Z(`${m(J)}__form-item`),
|
|
@@ -2745,7 +2738,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2745
2738
|
X(ye(e.formItem.name), 1)
|
|
2746
2739
|
]),
|
|
2747
2740
|
_: 1
|
|
2748
|
-
})) : e.formItem.itemType !== "hidden" && m(l)(e.formItem.showIf, e.formItem) ? (g(), S(
|
|
2741
|
+
})) : e.formItem.itemType !== "hidden" && m(l)(e.formItem.showIf, e.formItem) ? (g(), S(C, {
|
|
2749
2742
|
key: 1,
|
|
2750
2743
|
ref: `item_${e.formItem.keyName}`,
|
|
2751
2744
|
id: e.formItem.keyName,
|
|
@@ -2754,35 +2747,35 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2754
2747
|
name: e.formItem.inputType != "RE_PASSWORD" ? e.formItem.keyName : "rePassword"
|
|
2755
2748
|
}, {
|
|
2756
2749
|
default: M(() => {
|
|
2757
|
-
var h,
|
|
2750
|
+
var h, k, x;
|
|
2758
2751
|
return [
|
|
2759
2752
|
e.formItem.itemType === "label" ? (g(), S(Gn, {
|
|
2760
2753
|
key: 0,
|
|
2761
2754
|
modelValue: m(ee)(m(a), e.formItem.keyName)
|
|
2762
2755
|
}, null, 8, ["modelValue"])) : $("", !0),
|
|
2763
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (g(), S(
|
|
2756
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (g(), S(It, {
|
|
2764
2757
|
key: 1,
|
|
2765
2758
|
formItem: e.formItem,
|
|
2766
|
-
inputType: (
|
|
2759
|
+
inputType: (k = (h = e.formItem) == null ? void 0 : h.inputType) == null ? void 0 : k.toLowerCase(),
|
|
2767
2760
|
modelValue: m(ee)(m(a), e.formItem.keyName),
|
|
2768
2761
|
placeholder: e.formItem.placeholder,
|
|
2769
2762
|
disabled: m(r),
|
|
2770
|
-
"onUpdate:modelValue":
|
|
2763
|
+
"onUpdate:modelValue": N[0] || (N[0] = (v) => s(e.formItem.keyName, v))
|
|
2771
2764
|
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : $("", !0),
|
|
2772
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (g(), S(
|
|
2765
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (g(), S(It, {
|
|
2773
2766
|
key: 2,
|
|
2774
2767
|
formItem: e.formItem,
|
|
2775
2768
|
inputType: e.formItem.inputType.toLowerCase(),
|
|
2776
2769
|
modelValue: m(ee)(m(a), "rePassword"),
|
|
2777
2770
|
placeholder: e.formItem.placeholder,
|
|
2778
2771
|
disabled: m(r),
|
|
2779
|
-
"onUpdate:modelValue":
|
|
2772
|
+
"onUpdate:modelValue": N[1] || (N[1] = (v) => s("rePassword", v))
|
|
2780
2773
|
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : $("", !0),
|
|
2781
2774
|
e.formItem.itemType === "check_box" ? (g(), S(Kn, {
|
|
2782
2775
|
key: 3,
|
|
2783
2776
|
modelValue: m(ee)(m(a), e.formItem.keyName, !1),
|
|
2784
2777
|
disabled: m(r),
|
|
2785
|
-
"onUpdate:modelValue":
|
|
2778
|
+
"onUpdate:modelValue": N[2] || (N[2] = (v) => s(e.formItem.keyName, v))
|
|
2786
2779
|
}, null, 8, ["modelValue", "disabled"])) : $("", !0),
|
|
2787
2780
|
e.formItem.itemType === "switch" ? (g(), S(Wn, {
|
|
2788
2781
|
key: 4,
|
|
@@ -2790,7 +2783,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2790
2783
|
viewName: e.viewName,
|
|
2791
2784
|
modelValue: m(ee)(m(a), e.formItem.keyName, !1),
|
|
2792
2785
|
disabled: m(r),
|
|
2793
|
-
"onUpdate:modelValue":
|
|
2786
|
+
"onUpdate:modelValue": N[3] || (N[3] = (v) => s(e.formItem.keyName, v))
|
|
2794
2787
|
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : $("", !0),
|
|
2795
2788
|
e.formItem.itemType === "radio" ? (g(), S(Hn, {
|
|
2796
2789
|
key: 5,
|
|
@@ -2798,7 +2791,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2798
2791
|
formItem: e.formItem,
|
|
2799
2792
|
viewName: e.viewName,
|
|
2800
2793
|
disabled: m(r),
|
|
2801
|
-
"onUpdate:modelValue":
|
|
2794
|
+
"onUpdate:modelValue": N[4] || (N[4] = (v) => s(e.formItem.keyName, v))
|
|
2802
2795
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
|
|
2803
2796
|
e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (g(), S(en, {
|
|
2804
2797
|
key: e.formItem.listData.dataId,
|
|
@@ -2807,7 +2800,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2807
2800
|
viewName: e.viewName,
|
|
2808
2801
|
multiple: e.formItem.itemType === "multi_selector",
|
|
2809
2802
|
disabled: m(r),
|
|
2810
|
-
"onUpdate:modelValue":
|
|
2803
|
+
"onUpdate:modelValue": N[5] || (N[5] = (v) => s(e.formItem.keyName, v))
|
|
2811
2804
|
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : $("", !0),
|
|
2812
2805
|
e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (g(), S(tn, {
|
|
2813
2806
|
key: 7,
|
|
@@ -2815,7 +2808,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2815
2808
|
formItem: e.formItem,
|
|
2816
2809
|
viewName: e.viewName,
|
|
2817
2810
|
disabled: m(r),
|
|
2818
|
-
"onUpdate:modelValue":
|
|
2811
|
+
"onUpdate:modelValue": N[6] || (N[6] = (v) => s(e.formItem.keyName, v))
|
|
2819
2812
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
|
|
2820
2813
|
e.formItem.itemType == "delay_selector" ? (g(), S(ba, {
|
|
2821
2814
|
key: 8,
|
|
@@ -2823,7 +2816,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2823
2816
|
formItem: e.formItem,
|
|
2824
2817
|
viewName: e.viewName,
|
|
2825
2818
|
disabled: m(r),
|
|
2826
|
-
"onUpdate:modelValue":
|
|
2819
|
+
"onUpdate:modelValue": N[7] || (N[7] = (v) => s(e.formItem.keyName, v))
|
|
2827
2820
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
|
|
2828
2821
|
e.formItem.itemType === "tree_check_box" ? (g(), S(Qn, {
|
|
2829
2822
|
key: 9,
|
|
@@ -2831,7 +2824,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2831
2824
|
formItem: e.formItem,
|
|
2832
2825
|
viewName: e.viewName,
|
|
2833
2826
|
disabled: m(r),
|
|
2834
|
-
"onUpdate:modelValue":
|
|
2827
|
+
"onUpdate:modelValue": N[8] || (N[8] = (v) => s(e.formItem.keyName, v))
|
|
2835
2828
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
|
|
2836
2829
|
e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (g(), S(qn, {
|
|
2837
2830
|
key: 10,
|
|
@@ -2840,7 +2833,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2840
2833
|
viewName: e.viewName,
|
|
2841
2834
|
multiple: e.formItem.itemType === "multi_tree_selector",
|
|
2842
2835
|
disabled: m(r),
|
|
2843
|
-
"onUpdate:modelValue":
|
|
2836
|
+
"onUpdate:modelValue": N[9] || (N[9] = (v) => s(e.formItem.keyName, v))
|
|
2844
2837
|
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : $("", !0),
|
|
2845
2838
|
e.formItem.itemType === "file" ? (g(), S(Yn, {
|
|
2846
2839
|
key: 11,
|
|
@@ -2849,16 +2842,16 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2849
2842
|
viewName: e.viewName,
|
|
2850
2843
|
disabled: m(r),
|
|
2851
2844
|
fileName: m(ee)(m(a), e.formItem.filenameKeyName) || ((x = m(ee)(m(a), e.formItem.keyName)) == null ? void 0 : x.split("/").slice(-1)[0]),
|
|
2852
|
-
"onUpdate:fileName":
|
|
2853
|
-
"onUpdate:modelValue":
|
|
2845
|
+
"onUpdate:fileName": N[10] || (N[10] = (v) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, v)),
|
|
2846
|
+
"onUpdate:modelValue": N[11] || (N[11] = (v) => s(e.formItem.keyName, v))
|
|
2854
2847
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) : $("", !0),
|
|
2855
|
-
e.formItem.itemType === "tag" ? (g(), S(
|
|
2848
|
+
e.formItem.itemType === "tag" ? (g(), S(Ca, {
|
|
2856
2849
|
key: 12,
|
|
2857
2850
|
modelValue: m(ee)(m(a), e.formItem.keyName),
|
|
2858
2851
|
formItem: e.formItem,
|
|
2859
2852
|
viewName: e.viewName,
|
|
2860
2853
|
disabled: m(r),
|
|
2861
|
-
"onUpdate:modelValue":
|
|
2854
|
+
"onUpdate:modelValue": N[12] || (N[12] = (v) => s(e.formItem.keyName, v))
|
|
2862
2855
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0),
|
|
2863
2856
|
e.formItem.itemType === "rich_text" ? (g(), S(Ma, {
|
|
2864
2857
|
key: 13,
|
|
@@ -2866,17 +2859,17 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2866
2859
|
formItem: e.formItem,
|
|
2867
2860
|
viewName: e.viewName,
|
|
2868
2861
|
disabled: m(r),
|
|
2869
|
-
"onUpdate:modelValue":
|
|
2862
|
+
"onUpdate:modelValue": N[13] || (N[13] = (v) => s(e.formItem.keyName, v))
|
|
2870
2863
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : $("", !0)
|
|
2871
2864
|
];
|
|
2872
2865
|
}),
|
|
2873
2866
|
_: 1
|
|
2874
2867
|
}, 8, ["id", "requiredMark", "label", "name"])) : $("", !0)
|
|
2875
2868
|
], 64)) : $("", !0)
|
|
2876
|
-
], 10,
|
|
2869
|
+
], 10, Ta);
|
|
2877
2870
|
};
|
|
2878
2871
|
}
|
|
2879
|
-
}),
|
|
2872
|
+
}), Ia = ["id"], Na = /* @__PURE__ */ te({
|
|
2880
2873
|
__name: "GFormBlock",
|
|
2881
2874
|
props: {
|
|
2882
2875
|
name: null,
|
|
@@ -2912,7 +2905,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2912
2905
|
id: o.value,
|
|
2913
2906
|
ref_key: "blockRef",
|
|
2914
2907
|
ref: l
|
|
2915
|
-
}, null, 8,
|
|
2908
|
+
}, null, 8, Ia));
|
|
2916
2909
|
}
|
|
2917
2910
|
}), La = /* @__PURE__ */ te({
|
|
2918
2911
|
__name: "index",
|
|
@@ -2972,7 +2965,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2972
2965
|
})), b == null ? void 0 : b.reduce((y, f) => (f.rules.length && (y[f.keyName] = f.rules), y), {});
|
|
2973
2966
|
}
|
|
2974
2967
|
const d = Q(), p = Q();
|
|
2975
|
-
function
|
|
2968
|
+
function T(b, y, f) {
|
|
2976
2969
|
d.value && d.value.forEach((w) => {
|
|
2977
2970
|
w.formItemId && y.includes(w.formItemId) && w.$el.classList.contains(b) && w.setBlockShowFlag(f);
|
|
2978
2971
|
});
|
|
@@ -2980,17 +2973,17 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2980
2973
|
nt(async () => {
|
|
2981
2974
|
r.value = await u();
|
|
2982
2975
|
});
|
|
2983
|
-
function
|
|
2976
|
+
function N(b, y) {
|
|
2984
2977
|
Ge(a.value, b, y), s.value && E([b]);
|
|
2985
2978
|
}
|
|
2986
2979
|
async function E(b = []) {
|
|
2987
2980
|
var w;
|
|
2988
|
-
const y =
|
|
2981
|
+
const y = C();
|
|
2989
2982
|
return (b.length ? b.some((P) => y.includes(P)) : !0) ? (w = s.value) == null ? void 0 : w.validate({
|
|
2990
2983
|
fields: b.length ? b : y
|
|
2991
2984
|
}) : Promise.resolve({});
|
|
2992
2985
|
}
|
|
2993
|
-
const
|
|
2986
|
+
const C = () => {
|
|
2994
2987
|
var b;
|
|
2995
2988
|
return (b = d == null ? void 0 : d.value) == null ? void 0 : b.flatMap((y) => {
|
|
2996
2989
|
const { formItem: f } = y;
|
|
@@ -2999,7 +2992,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
2999
2992
|
}, h = B(() => {
|
|
3000
2993
|
var b;
|
|
3001
2994
|
return (b = t.board) == null ? void 0 : b.okButton;
|
|
3002
|
-
}),
|
|
2995
|
+
}), k = B(() => {
|
|
3003
2996
|
var b;
|
|
3004
2997
|
return (b = t.board) == null ? void 0 : b.cancelButton;
|
|
3005
2998
|
});
|
|
@@ -3058,10 +3051,10 @@ const Ta = /* @__PURE__ */ te({
|
|
|
3058
3051
|
}
|
|
3059
3052
|
}, {
|
|
3060
3053
|
body: M(() => [
|
|
3061
|
-
(g(!0), Y(ge, null,
|
|
3054
|
+
(g(!0), Y(ge, null, Te(m(o), (w) => (g(), Y(ge, {
|
|
3062
3055
|
key: `${w.name}_${w.keyName}`
|
|
3063
3056
|
}, [
|
|
3064
|
-
w.itemType === "block_start" || w.itemType === "block_end" ? (g(), S(
|
|
3057
|
+
w.itemType === "block_start" || w.itemType === "block_end" ? (g(), S(Na, {
|
|
3065
3058
|
key: 0,
|
|
3066
3059
|
ref_for: !0,
|
|
3067
3060
|
ref_key: "formBlockRef",
|
|
@@ -3069,8 +3062,8 @@ const Ta = /* @__PURE__ */ te({
|
|
|
3069
3062
|
name: w.name,
|
|
3070
3063
|
blockType: w.itemType,
|
|
3071
3064
|
showIf: m(l)(w.showIf),
|
|
3072
|
-
onBlockShowIfChange:
|
|
3073
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (g(), S(
|
|
3065
|
+
onBlockShowIfChange: T
|
|
3066
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (g(), S(ka, {
|
|
3074
3067
|
key: 1,
|
|
3075
3068
|
ref_for: !0,
|
|
3076
3069
|
ref_key: "formItemRef",
|
|
@@ -3078,22 +3071,22 @@ const Ta = /* @__PURE__ */ te({
|
|
|
3078
3071
|
formModel: a.value,
|
|
3079
3072
|
formItem: w,
|
|
3080
3073
|
viewName: e.viewName,
|
|
3081
|
-
onAfterUpdateValue:
|
|
3074
|
+
onAfterUpdateValue: N
|
|
3082
3075
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
3083
3076
|
], 64))), 128))
|
|
3084
3077
|
]),
|
|
3085
3078
|
footer: M(() => {
|
|
3086
3079
|
var w, P;
|
|
3087
3080
|
return [
|
|
3088
|
-
m(
|
|
3081
|
+
m(k) && ((w = m(k)) == null ? void 0 : w.name) !== "" ? (g(), S(f, {
|
|
3089
3082
|
key: 0,
|
|
3090
3083
|
theme: "default",
|
|
3091
|
-
onClick: y[0] || (y[0] = (R) => m(
|
|
3084
|
+
onClick: y[0] || (y[0] = (R) => m(k) && v(m(k)))
|
|
3092
3085
|
}, {
|
|
3093
3086
|
default: M(() => {
|
|
3094
3087
|
var R;
|
|
3095
3088
|
return [
|
|
3096
|
-
X(ye((R = m(
|
|
3089
|
+
X(ye((R = m(k)) == null ? void 0 : R.name), 1)
|
|
3097
3090
|
];
|
|
3098
3091
|
}),
|
|
3099
3092
|
_: 1
|
|
@@ -3139,7 +3132,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
3139
3132
|
return (s, r) => (g(), Y("div", {
|
|
3140
3133
|
class: Z(`${m(J)}__table-form`)
|
|
3141
3134
|
}, [
|
|
3142
|
-
(g(!0), Y(ge, null,
|
|
3135
|
+
(g(!0), Y(ge, null, Te(m(o), (c) => {
|
|
3143
3136
|
var u;
|
|
3144
3137
|
return g(), Y("div", {
|
|
3145
3138
|
key: c.keyName
|
|
@@ -3148,7 +3141,7 @@ const Ta = /* @__PURE__ */ te({
|
|
|
3148
3141
|
key: 0,
|
|
3149
3142
|
modelValue: m(ee)(m(a), e.col.colKey)
|
|
3150
3143
|
}, null, 8, ["modelValue"])) : $("", !0),
|
|
3151
|
-
c.itemType == "text_input" ? (g(), S(
|
|
3144
|
+
c.itemType == "text_input" ? (g(), S(It, {
|
|
3152
3145
|
key: 1,
|
|
3153
3146
|
formItem: c,
|
|
3154
3147
|
viewName: e.viewName,
|
|
@@ -3348,15 +3341,15 @@ var Je = {
|
|
|
3348
3341
|
l > c && (n.charCodeAt(o + d) === 47 ? u = d : d === 0 && (u = 0));
|
|
3349
3342
|
break;
|
|
3350
3343
|
}
|
|
3351
|
-
var p = n.charCodeAt(o + d),
|
|
3352
|
-
if (p !==
|
|
3344
|
+
var p = n.charCodeAt(o + d), T = t.charCodeAt(i + d);
|
|
3345
|
+
if (p !== T)
|
|
3353
3346
|
break;
|
|
3354
3347
|
p === 47 && (u = d);
|
|
3355
3348
|
}
|
|
3356
|
-
var
|
|
3349
|
+
var N = "";
|
|
3357
3350
|
for (d = o + u + 1; d <= a; ++d)
|
|
3358
|
-
(d === a || n.charCodeAt(d) === 47) && (
|
|
3359
|
-
return
|
|
3351
|
+
(d === a || n.charCodeAt(d) === 47) && (N.length === 0 ? N += ".." : N += "/..");
|
|
3352
|
+
return N.length > 0 ? N + t.slice(i + u) : (i += u, t.charCodeAt(i) === 47 && ++i, t.slice(i));
|
|
3360
3353
|
},
|
|
3361
3354
|
_makeLong: function(n) {
|
|
3362
3355
|
return n;
|
|
@@ -3483,20 +3476,20 @@ function Aa(e, {
|
|
|
3483
3476
|
matte: i,
|
|
3484
3477
|
density: s,
|
|
3485
3478
|
outline: r,
|
|
3486
|
-
archive:
|
|
3479
|
+
archive: T
|
|
3487
3480
|
} = {}) {
|
|
3488
|
-
var { fromMime: u, toMime: d, expected: p } = new Va(),
|
|
3489
|
-
if (!
|
|
3481
|
+
var { fromMime: u, toMime: d, expected: p } = new Va(), T = T || "canvas", N = E || t.replace(/@\d+x$/i, "") || Da(n), E = u(d(N) || N), C = d(E), h = e.length;
|
|
3482
|
+
if (!N)
|
|
3490
3483
|
throw new Error(
|
|
3491
3484
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
3492
3485
|
);
|
|
3493
3486
|
if (!E)
|
|
3494
|
-
throw new Error(`Unsupported file format "${
|
|
3487
|
+
throw new Error(`Unsupported file format "${N}" (expected ${p})`);
|
|
3495
3488
|
if (!h)
|
|
3496
3489
|
throw new RangeError(
|
|
3497
3490
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
3498
3491
|
);
|
|
3499
|
-
let
|
|
3492
|
+
let k, x, v = n.replace(/{(\d*)}/g, (y, f) => (x = !0, f = parseInt(f, 10), k = isFinite(f) ? f : isFinite(k) ? k : -1, "{}")), b = a > 0 ? a - 1 : a < 0 ? h + a : void 0;
|
|
3500
3493
|
if (isFinite(b) && b < 0 || b >= h)
|
|
3501
3494
|
throw new RangeError(
|
|
3502
3495
|
h == 1 ? `Canvas only has a ‘page 1’ (${b} is out of bounds)` : `Canvas has pages 1–${h} (${b} is out of bounds)`
|
|
@@ -3508,7 +3501,7 @@ function Aa(e, {
|
|
|
3508
3501
|
"The quality option must be an number in the 0.0–1.0 range"
|
|
3509
3502
|
);
|
|
3510
3503
|
if (s === void 0) {
|
|
3511
|
-
let y = (t || Jn(n,
|
|
3504
|
+
let y = (t || Jn(n, N)).match(/@(\d+)x$/i);
|
|
3512
3505
|
s = y ? parseInt(y[1], 10) : 1;
|
|
3513
3506
|
} else if (typeof s != "number" || !Number.isInteger(s) || s < 1)
|
|
3514
3507
|
throw new TypeError("The density option must be a non-negative integer");
|
|
@@ -3516,14 +3509,14 @@ function Aa(e, {
|
|
|
3516
3509
|
filename: n,
|
|
3517
3510
|
pattern: v,
|
|
3518
3511
|
format: E,
|
|
3519
|
-
mime:
|
|
3512
|
+
mime: C,
|
|
3520
3513
|
pages: e,
|
|
3521
|
-
padding:
|
|
3514
|
+
padding: k,
|
|
3522
3515
|
quality: l,
|
|
3523
3516
|
matte: i,
|
|
3524
3517
|
density: s,
|
|
3525
3518
|
outline: r,
|
|
3526
|
-
archive:
|
|
3519
|
+
archive: T
|
|
3527
3520
|
};
|
|
3528
3521
|
}
|
|
3529
3522
|
class Vt {
|
|
@@ -3666,27 +3659,27 @@ let za = class {
|
|
|
3666
3659
|
},
|
|
3667
3660
|
saveAs(s, r) {
|
|
3668
3661
|
r = typeof r == "number" ? { quality: r } : r;
|
|
3669
|
-
let c = $t(this.pages, { filename: s, ...r }), { pattern: u, padding: d, mime: p, quality:
|
|
3670
|
-
return d == null ? Ua(h[0], p,
|
|
3662
|
+
let c = $t(this.pages, { filename: s, ...r }), { pattern: u, padding: d, mime: p, quality: T, matte: N, density: E, archive: C } = c, h = zt(c.pages, E);
|
|
3663
|
+
return d == null ? Ua(h[0], p, T, N, s) : ja(
|
|
3671
3664
|
h,
|
|
3672
3665
|
p,
|
|
3673
|
-
k,
|
|
3674
|
-
I,
|
|
3675
3666
|
T,
|
|
3667
|
+
N,
|
|
3668
|
+
C,
|
|
3676
3669
|
u,
|
|
3677
3670
|
d
|
|
3678
3671
|
);
|
|
3679
3672
|
},
|
|
3680
3673
|
toBuffer(s = "png", r = {}) {
|
|
3681
3674
|
r = typeof r == "number" ? { quality: r } : r;
|
|
3682
|
-
let c = $t(this.pages, { extension: s, ...r }), { mime: u, quality: d, matte: p, pages:
|
|
3675
|
+
let c = $t(this.pages, { extension: s, ...r }), { mime: u, quality: d, matte: p, pages: T, density: N } = c, E = zt(T, N, p)[0];
|
|
3683
3676
|
return Rt(E, u, d, p);
|
|
3684
3677
|
},
|
|
3685
3678
|
[bn]: o.toDataURL.bind(o),
|
|
3686
3679
|
toDataURL(s = "png", r = {}) {
|
|
3687
3680
|
r = typeof r == "number" ? { quality: r } : r;
|
|
3688
|
-
let c = $t(this.pages, { extension: s, ...r }), { mime: u, quality: d, matte: p, pages:
|
|
3689
|
-
return Promise.resolve(
|
|
3681
|
+
let c = $t(this.pages, { extension: s, ...r }), { mime: u, quality: d, matte: p, pages: T, density: N } = c, E = zt(T, N, p)[0], C = E[E === o ? bn : "toDataURL"](u, d);
|
|
3682
|
+
return Promise.resolve(C);
|
|
3690
3683
|
}
|
|
3691
3684
|
});
|
|
3692
3685
|
}
|
|
@@ -3913,36 +3906,36 @@ const tl = tt(
|
|
|
3913
3906
|
return t;
|
|
3914
3907
|
}, sl = (e, n, t) => {
|
|
3915
3908
|
const l = t;
|
|
3916
|
-
var i, s, r, c, u, d, p, b,
|
|
3917
|
-
const
|
|
3918
|
-
for (E = e, s = 1 << E, u = s + 1, i = s + 2, p = -1, c = E + 1, r = (1 << c) - 1,
|
|
3919
|
-
h[
|
|
3909
|
+
var i, s, r, c, u, d, p, b, T, N, v, E, y, f, P, w;
|
|
3910
|
+
const C = new Array(t), h = new Array(4096), k = new Array(4096), x = new Array(4096 + 1);
|
|
3911
|
+
for (E = e, s = 1 << E, u = s + 1, i = s + 2, p = -1, c = E + 1, r = (1 << c) - 1, T = 0; T < s; T++)
|
|
3912
|
+
h[T] = 0, k[T] = T;
|
|
3920
3913
|
var v, b, y, f, w, P;
|
|
3921
|
-
for (v = b = y = f = w = P = 0,
|
|
3914
|
+
for (v = b = y = f = w = P = 0, N = 0; N < l; ) {
|
|
3922
3915
|
if (f === 0) {
|
|
3923
3916
|
if (b < c) {
|
|
3924
3917
|
v += n[P] << b, b += 8, P++;
|
|
3925
3918
|
continue;
|
|
3926
3919
|
}
|
|
3927
|
-
if (
|
|
3920
|
+
if (T = v & r, v >>= c, b -= c, T > i || T == u)
|
|
3928
3921
|
break;
|
|
3929
|
-
if (
|
|
3922
|
+
if (T == s) {
|
|
3930
3923
|
c = E + 1, r = (1 << c) - 1, i = s + 2, p = -1;
|
|
3931
3924
|
continue;
|
|
3932
3925
|
}
|
|
3933
3926
|
if (p == -1) {
|
|
3934
|
-
x[f++] =
|
|
3927
|
+
x[f++] = k[T], p = T, y = T;
|
|
3935
3928
|
continue;
|
|
3936
3929
|
}
|
|
3937
|
-
for (d =
|
|
3938
|
-
x[f++] =
|
|
3939
|
-
y =
|
|
3930
|
+
for (d = T, T == i && (x[f++] = y, T = p); T > s; )
|
|
3931
|
+
x[f++] = k[T], T = h[T];
|
|
3932
|
+
y = k[T] & 255, x[f++] = y, i < 4096 && (h[i] = p, k[i] = y, i++, !(i & r) && i < 4096 && (c++, r += i)), p = d;
|
|
3940
3933
|
}
|
|
3941
|
-
f--,
|
|
3934
|
+
f--, C[w++] = x[f], N++;
|
|
3942
3935
|
}
|
|
3943
|
-
for (
|
|
3944
|
-
|
|
3945
|
-
return
|
|
3936
|
+
for (N = w; N < l; N++)
|
|
3937
|
+
C[N] = 0;
|
|
3938
|
+
return C;
|
|
3946
3939
|
}, ul = (e) => {
|
|
3947
3940
|
const n = new Uint8Array(e);
|
|
3948
3941
|
return dt(Ja(n), il);
|
|
@@ -4167,12 +4160,12 @@ class Qe {
|
|
|
4167
4160
|
let o = 0, a = 0, l = 0;
|
|
4168
4161
|
const i = new Array(t.length), s = new Array(t.length);
|
|
4169
4162
|
for (var r = 0; r < t.length; r++) {
|
|
4170
|
-
const
|
|
4171
|
-
a = Math.max(a,
|
|
4163
|
+
const T = t[r].dataCount, N = t[r].totalCount - T;
|
|
4164
|
+
a = Math.max(a, T), l = Math.max(l, N), i[r] = new Array(T);
|
|
4172
4165
|
for (var c = 0; c < i[r].length; c++)
|
|
4173
4166
|
i[r][c] = 255 & n.buffer[c + o];
|
|
4174
|
-
o +=
|
|
4175
|
-
const E = ue.getErrorCorrectPolynomial(
|
|
4167
|
+
o += T;
|
|
4168
|
+
const E = ue.getErrorCorrectPolynomial(N), h = new it(i[r], E.getLength() - 1).mod(E);
|
|
4176
4169
|
s[r] = new Array(E.getLength() - 1);
|
|
4177
4170
|
for (var c = 0; c < s[r].length; c++) {
|
|
4178
4171
|
const x = c + h.getLength() - s[r].length;
|
|
@@ -4689,79 +4682,79 @@ const Fe = [
|
|
|
4689
4682
|
[2809, 2213, 1579, 1219],
|
|
4690
4683
|
[2953, 2331, 1663, 1273]
|
|
4691
4684
|
];
|
|
4692
|
-
var vl = 100,
|
|
4693
|
-
function
|
|
4685
|
+
var vl = 100, Ce = 256, wn = Ce - 1, He = 4, lo = 16, an = 1 << lo, io = 10, ln = 10, yl = an >> ln, bl = an << io - ln, wl = Ce >> 3, Qt = 6, Ml = 1 << Qt, Cl = wl * Ml, Tl = 30, ro = 10, bt = 1 << ro, so = 8, Mn = 1 << so, kl = ro + so, lt = 1 << kl, Cn = 499, Tn = 491, kn = 487, uo = 503, Il = 3 * uo;
|
|
4686
|
+
function Nl(e, n) {
|
|
4694
4687
|
var t, o, a, l, i;
|
|
4695
4688
|
function s() {
|
|
4696
|
-
t = [], o = new Int32Array(256), a = new Int32Array(
|
|
4697
|
-
var h,
|
|
4698
|
-
for (h = 0; h <
|
|
4699
|
-
|
|
4689
|
+
t = [], o = new Int32Array(256), a = new Int32Array(Ce), l = new Int32Array(Ce), i = new Int32Array(Ce >> 3);
|
|
4690
|
+
var h, k;
|
|
4691
|
+
for (h = 0; h < Ce; h++)
|
|
4692
|
+
k = (h << He + 8) / Ce, t[h] = new Float64Array([k, k, k, 0]), l[h] = an / Ce, a[h] = 0;
|
|
4700
4693
|
}
|
|
4701
4694
|
function r() {
|
|
4702
|
-
for (var h = 0; h <
|
|
4695
|
+
for (var h = 0; h < Ce; h++)
|
|
4703
4696
|
t[h][0] >>= He, t[h][1] >>= He, t[h][2] >>= He, t[h][3] = h;
|
|
4704
4697
|
}
|
|
4705
|
-
function c(h,
|
|
4706
|
-
t[
|
|
4698
|
+
function c(h, k, x, v, b) {
|
|
4699
|
+
t[k][0] -= h * (t[k][0] - x) / bt, t[k][1] -= h * (t[k][1] - v) / bt, t[k][2] -= h * (t[k][2] - b) / bt;
|
|
4707
4700
|
}
|
|
4708
|
-
function u(h,
|
|
4709
|
-
for (var y = Math.abs(
|
|
4710
|
-
H = i[R++], w < f && (
|
|
4701
|
+
function u(h, k, x, v, b) {
|
|
4702
|
+
for (var y = Math.abs(k - h), f = Math.min(k + h, Ce), w = k + 1, P = k - 1, R = 1, I, H; w < f || P > y; )
|
|
4703
|
+
H = i[R++], w < f && (I = t[w++], I[0] -= H * (I[0] - x) / lt, I[1] -= H * (I[1] - v) / lt, I[2] -= H * (I[2] - b) / lt), P > y && (I = t[P--], I[0] -= H * (I[0] - x) / lt, I[1] -= H * (I[1] - v) / lt, I[2] -= H * (I[2] - b) / lt);
|
|
4711
4704
|
}
|
|
4712
|
-
function d(h,
|
|
4713
|
-
var v = 2147483647, b = v, y = -1, f = y, w, P, R,
|
|
4714
|
-
for (w = 0; w <
|
|
4715
|
-
P = t[w], R = Math.abs(P[0] - h) + Math.abs(P[1] -
|
|
4705
|
+
function d(h, k, x) {
|
|
4706
|
+
var v = 2147483647, b = v, y = -1, f = y, w, P, R, I, H;
|
|
4707
|
+
for (w = 0; w < Ce; w++)
|
|
4708
|
+
P = t[w], R = Math.abs(P[0] - h) + Math.abs(P[1] - k) + Math.abs(P[2] - x), R < v && (v = R, y = w), I = R - (a[w] >> lo - He), I < b && (b = I, f = w), H = l[w] >> ln, l[w] -= H, a[w] += H << io;
|
|
4716
4709
|
return l[y] += yl, a[y] -= bl, f;
|
|
4717
4710
|
}
|
|
4718
4711
|
function p() {
|
|
4719
|
-
var h,
|
|
4720
|
-
for (h = 0; h <
|
|
4721
|
-
for (x = t[h], b = h, y = x[1],
|
|
4722
|
-
v = t[
|
|
4723
|
-
if (v = t[b], h != b && (
|
|
4724
|
-
for (o[f] = w + h >> 1,
|
|
4725
|
-
o[
|
|
4712
|
+
var h, k, x, v, b, y, f = 0, w = 0;
|
|
4713
|
+
for (h = 0; h < Ce; h++) {
|
|
4714
|
+
for (x = t[h], b = h, y = x[1], k = h + 1; k < Ce; k++)
|
|
4715
|
+
v = t[k], v[1] < y && (b = k, y = v[1]);
|
|
4716
|
+
if (v = t[b], h != b && (k = v[0], v[0] = x[0], x[0] = k, k = v[1], v[1] = x[1], x[1] = k, k = v[2], v[2] = x[2], x[2] = k, k = v[3], v[3] = x[3], x[3] = k), y != f) {
|
|
4717
|
+
for (o[f] = w + h >> 1, k = f + 1; k < y; k++)
|
|
4718
|
+
o[k] = h;
|
|
4726
4719
|
f = y, w = h;
|
|
4727
4720
|
}
|
|
4728
4721
|
}
|
|
4729
|
-
for (o[f] = w + wn >> 1,
|
|
4730
|
-
o[
|
|
4722
|
+
for (o[f] = w + wn >> 1, k = f + 1; k < 256; k++)
|
|
4723
|
+
o[k] = wn;
|
|
4731
4724
|
}
|
|
4732
|
-
function
|
|
4733
|
-
for (var v, b, y, f = 1e3, w = -1, P = o[
|
|
4734
|
-
P <
|
|
4725
|
+
function T(h, k, x) {
|
|
4726
|
+
for (var v, b, y, f = 1e3, w = -1, P = o[k], R = P - 1; P < Ce || R >= 0; )
|
|
4727
|
+
P < Ce && (b = t[P], y = b[1] - k, y >= f ? P = Ce : (P++, y < 0 && (y = -y), v = b[0] - h, v < 0 && (v = -v), y += v, y < f && (v = b[2] - x, v < 0 && (v = -v), y += v, y < f && (f = y, w = b[3])))), R >= 0 && (b = t[R], y = k - b[1], y >= f ? R = -1 : (R--, y < 0 && (y = -y), v = b[0] - h, v < 0 && (v = -v), y += v, y < f && (v = b[2] - x, v < 0 && (v = -v), y += v, y < f && (f = y, w = b[3]))));
|
|
4735
4728
|
return w;
|
|
4736
4729
|
}
|
|
4737
|
-
function
|
|
4738
|
-
var h,
|
|
4730
|
+
function N() {
|
|
4731
|
+
var h, k = e.length, x = 30 + (n - 1) / 3, v = k / (3 * n), b = ~~(v / vl), y = bt, f = Cl, w = f >> Qt;
|
|
4739
4732
|
for (w <= 1 && (w = 0), h = 0; h < w; h++)
|
|
4740
4733
|
i[h] = y * ((w * w - h * h) * Mn / (w * w));
|
|
4741
4734
|
var P;
|
|
4742
|
-
|
|
4743
|
-
var R,
|
|
4735
|
+
k < Il ? (n = 1, P = 3) : k % Cn !== 0 ? P = 3 * Cn : k % Tn !== 0 ? P = 3 * Tn : k % kn !== 0 ? P = 3 * kn : P = 3 * uo;
|
|
4736
|
+
var R, I, H, U, le = 0;
|
|
4744
4737
|
for (h = 0; h < v; )
|
|
4745
|
-
if (R = (e[le] & 255) << He,
|
|
4746
|
-
for (y -= y / x, f -= f /
|
|
4738
|
+
if (R = (e[le] & 255) << He, I = (e[le + 1] & 255) << He, H = (e[le + 2] & 255) << He, U = d(R, I, H), c(y, U, R, I, H), w !== 0 && u(w, U, R, I, H), le += P, le >= k && (le -= k), h++, b === 0 && (b = 1), h % b === 0)
|
|
4739
|
+
for (y -= y / x, f -= f / Tl, w = f >> Qt, w <= 1 && (w = 0), U = 0; U < w; U++)
|
|
4747
4740
|
i[U] = y * ((w * w - U * U) * Mn / (w * w));
|
|
4748
4741
|
}
|
|
4749
4742
|
function E() {
|
|
4750
|
-
s(),
|
|
4743
|
+
s(), N(), r(), p();
|
|
4751
4744
|
}
|
|
4752
4745
|
this.buildColormap = E;
|
|
4753
|
-
function
|
|
4754
|
-
for (var h = [],
|
|
4755
|
-
|
|
4756
|
-
for (var v = 0, b = 0; b <
|
|
4757
|
-
var y =
|
|
4746
|
+
function C() {
|
|
4747
|
+
for (var h = [], k = [], x = 0; x < Ce; x++)
|
|
4748
|
+
k[t[x][3]] = x;
|
|
4749
|
+
for (var v = 0, b = 0; b < Ce; b++) {
|
|
4750
|
+
var y = k[b];
|
|
4758
4751
|
h[v++] = t[y][0], h[v++] = t[y][1], h[v++] = t[y][2];
|
|
4759
4752
|
}
|
|
4760
4753
|
return h;
|
|
4761
4754
|
}
|
|
4762
|
-
this.getColormap =
|
|
4755
|
+
this.getColormap = C, this.lookupRGB = T;
|
|
4763
4756
|
}
|
|
4764
|
-
var
|
|
4757
|
+
var In = -1, wt = 12, ut = 5003, Ll = [
|
|
4765
4758
|
0,
|
|
4766
4759
|
1,
|
|
4767
4760
|
3,
|
|
@@ -4781,42 +4774,42 @@ var Nn = -1, wt = 12, ut = 5003, Ll = [
|
|
|
4781
4774
|
65535
|
|
4782
4775
|
];
|
|
4783
4776
|
function Sl(e, n, t, o) {
|
|
4784
|
-
var a = Math.max(2, o), l = new Uint8Array(256), i = new Int32Array(ut), s = new Int32Array(ut), r, c = 0, u, d = 0, p,
|
|
4777
|
+
var a = Math.max(2, o), l = new Uint8Array(256), i = new Int32Array(ut), s = new Int32Array(ut), r, c = 0, u, d = 0, p, T = !1, N, E, C, h, k, x;
|
|
4785
4778
|
function v(U, le) {
|
|
4786
4779
|
l[u++] = U, u >= 254 && P(le);
|
|
4787
4780
|
}
|
|
4788
4781
|
function b(U) {
|
|
4789
|
-
y(ut), d = E + 2,
|
|
4782
|
+
y(ut), d = E + 2, T = !0, H(E, U);
|
|
4790
4783
|
}
|
|
4791
4784
|
function y(U) {
|
|
4792
4785
|
for (var le = 0; le < U; ++le)
|
|
4793
4786
|
i[le] = -1;
|
|
4794
4787
|
}
|
|
4795
4788
|
function f(U, le) {
|
|
4796
|
-
var O, De, re,
|
|
4797
|
-
for (
|
|
4798
|
-
++
|
|
4799
|
-
|
|
4789
|
+
var O, De, re, Ne, Le, fe, ke;
|
|
4790
|
+
for (N = U, T = !1, x = N, p = R(x), E = 1 << U - 1, C = E + 1, d = E + 2, u = 0, Ne = I(), ke = 0, O = ut; O < 65536; O *= 2)
|
|
4791
|
+
++ke;
|
|
4792
|
+
ke = 8 - ke, fe = ut, y(fe), H(E, le);
|
|
4800
4793
|
e:
|
|
4801
|
-
for (; (De =
|
|
4802
|
-
if (O = (De << wt) +
|
|
4803
|
-
|
|
4794
|
+
for (; (De = I()) != In; ) {
|
|
4795
|
+
if (O = (De << wt) + Ne, re = De << ke ^ Ne, i[re] === O) {
|
|
4796
|
+
Ne = s[re];
|
|
4804
4797
|
continue;
|
|
4805
4798
|
} else if (i[re] >= 0) {
|
|
4806
4799
|
Le = fe - re, re === 0 && (Le = 1);
|
|
4807
4800
|
do
|
|
4808
4801
|
if ((re -= Le) < 0 && (re += fe), i[re] === O) {
|
|
4809
|
-
|
|
4802
|
+
Ne = s[re];
|
|
4810
4803
|
continue e;
|
|
4811
4804
|
}
|
|
4812
4805
|
while (i[re] >= 0);
|
|
4813
4806
|
}
|
|
4814
|
-
H(
|
|
4807
|
+
H(Ne, le), Ne = De, d < 1 << wt ? (s[re] = d++, i[re] = O) : b(le);
|
|
4815
4808
|
}
|
|
4816
|
-
H(
|
|
4809
|
+
H(Ne, le), H(C, le);
|
|
4817
4810
|
}
|
|
4818
4811
|
function w(U) {
|
|
4819
|
-
U.writeByte(a), h = e * n,
|
|
4812
|
+
U.writeByte(a), h = e * n, k = 0, f(a + 1, U), U.writeByte(0);
|
|
4820
4813
|
}
|
|
4821
4814
|
function P(U) {
|
|
4822
4815
|
u > 0 && (U.writeByte(u), U.writeBytes(l, 0, u), u = 0);
|
|
@@ -4824,17 +4817,17 @@ function Sl(e, n, t, o) {
|
|
|
4824
4817
|
function R(U) {
|
|
4825
4818
|
return (1 << U) - 1;
|
|
4826
4819
|
}
|
|
4827
|
-
function
|
|
4820
|
+
function I() {
|
|
4828
4821
|
if (h === 0)
|
|
4829
|
-
return
|
|
4822
|
+
return In;
|
|
4830
4823
|
--h;
|
|
4831
|
-
var U = t[
|
|
4824
|
+
var U = t[k++];
|
|
4832
4825
|
return U & 255;
|
|
4833
4826
|
}
|
|
4834
4827
|
function H(U, le) {
|
|
4835
4828
|
for (r &= Ll[c], c > 0 ? r |= U << c : r = U, c += x; c >= 8; )
|
|
4836
4829
|
v(r & 255, le), r >>= 8, c -= 8;
|
|
4837
|
-
if ((d > p ||
|
|
4830
|
+
if ((d > p || T) && (T ? (p = R(x = N), T = !1) : (++x, x == wt ? p = 1 << wt : p = R(x))), U == C) {
|
|
4838
4831
|
for (; c > 0; )
|
|
4839
4832
|
v(r & 255, le), r >>= 8, c -= 8;
|
|
4840
4833
|
P(le);
|
|
@@ -4920,7 +4913,7 @@ de.prototype.writeHeader = function() {
|
|
|
4920
4913
|
this.out.writeUTFBytes("GIF89a");
|
|
4921
4914
|
};
|
|
4922
4915
|
de.prototype.analyzePixels = function() {
|
|
4923
|
-
this.colorTab || (this.neuQuant = new
|
|
4916
|
+
this.colorTab || (this.neuQuant = new Nl(this.pixels, this.sample), this.neuQuant.buildColormap(), this.colorTab = this.neuQuant.getColormap()), this.dither ? this.ditherPixels(this.dither.replace("-serpentine", ""), this.dither.match(/-serpentine/) !== null) : this.indexPixels(), this.pixels = null, this.colorDepth = 8, this.palSize = 7, this.transparent !== null && (this.transIndex = this.findClosest(this.transparent, !0));
|
|
4924
4917
|
};
|
|
4925
4918
|
de.prototype.indexPixels = function(e) {
|
|
4926
4919
|
var n = this.pixels.length / 3;
|
|
@@ -4974,9 +4967,9 @@ de.prototype.ditherPixels = function(e, n) {
|
|
|
4974
4967
|
n && (r = r * -1);
|
|
4975
4968
|
for (var u = r == 1 ? 0 : i - 1, d = r == 1 ? i : 0; u !== d; u += r) {
|
|
4976
4969
|
a = c * i + u;
|
|
4977
|
-
var p = a * 3,
|
|
4978
|
-
p = this.findClosestRGB(
|
|
4979
|
-
for (var
|
|
4970
|
+
var p = a * 3, T = s[p], N = s[p + 1], E = s[p + 2];
|
|
4971
|
+
p = this.findClosestRGB(T, N, E), this.usedEntry[p] = !0, this.indexedPixels[a] = p, p *= 3;
|
|
4972
|
+
for (var C = this.colorTab[p], h = this.colorTab[p + 1], k = this.colorTab[p + 2], x = T - C, v = N - h, b = E - k, y = r == 1 ? 0 : o.length - 1, f = r == 1 ? o.length : 0; y !== f; y += r) {
|
|
4980
4973
|
var w = o[y][1], P = o[y][2];
|
|
4981
4974
|
if (w + u >= 0 && w + u < i && P + c >= 0 && P + c < l) {
|
|
4982
4975
|
var R = o[y][0];
|
|
@@ -5077,8 +5070,8 @@ var _l = globalThis && globalThis.__awaiter || function(e, n, t, o) {
|
|
|
5077
5070
|
c((o = o.apply(e, n || [])).next());
|
|
5078
5071
|
});
|
|
5079
5072
|
};
|
|
5080
|
-
const { Canvas: Re } = Xa,
|
|
5081
|
-
function
|
|
5073
|
+
const { Canvas: Re } = Xa, Ct = 0.4;
|
|
5074
|
+
function Nn(e) {
|
|
5082
5075
|
if (!e)
|
|
5083
5076
|
return;
|
|
5084
5077
|
function n(t) {
|
|
@@ -5176,18 +5169,18 @@ class se {
|
|
|
5176
5169
|
})), n.fillStyle = c;
|
|
5177
5170
|
}
|
|
5178
5171
|
_draw() {
|
|
5179
|
-
var n, t, o, a, l, i, s, r, c, u, d, p,
|
|
5172
|
+
var n, t, o, a, l, i, s, r, c, u, d, p, T, N, E, C, h, k, x;
|
|
5180
5173
|
return _l(this, void 0, void 0, function* () {
|
|
5181
5174
|
const v = (n = this.qrCode) === null || n === void 0 ? void 0 : n.moduleCount, b = this.options.size;
|
|
5182
5175
|
let y = this.options.margin;
|
|
5183
5176
|
(y < 0 || y * 2 >= b) && (y = 0);
|
|
5184
|
-
const f = Math.ceil(y), w = b - 2 * y, P = this.options.whiteMargin, R = this.options.backgroundDimming,
|
|
5177
|
+
const f = Math.ceil(y), w = b - 2 * y, P = this.options.whiteMargin, R = this.options.backgroundDimming, I = Math.ceil(w / v), H = I * v, U = H + 2 * f, le = new Re(U, U), O = le.getContext("2d");
|
|
5185
5178
|
this._clear(), O.save(), O.translate(f, f);
|
|
5186
5179
|
const De = new Re(U, U), re = De.getContext("2d");
|
|
5187
|
-
let
|
|
5180
|
+
let Ne = null, Le = [];
|
|
5188
5181
|
if (this.options.gifBackground) {
|
|
5189
5182
|
const L = ul(this.options.gifBackground);
|
|
5190
|
-
if (
|
|
5183
|
+
if (Ne = L, Le = ml(L, !0), this.options.autoColor) {
|
|
5191
5184
|
let V = 0, G = 0, K = 0, W = 0;
|
|
5192
5185
|
for (let ne = 0; ne < Le[0].colorTable.length; ne++) {
|
|
5193
5186
|
const q = Le[0].colorTable[ne];
|
|
@@ -5196,7 +5189,7 @@ class se {
|
|
|
5196
5189
|
V = ~~(V / W), G = ~~(G / W), K = ~~(K / W), this.options.colorDark = `rgb(${V},${G},${K})`;
|
|
5197
5190
|
}
|
|
5198
5191
|
} else if (this.options.backgroundImage) {
|
|
5199
|
-
const L = yield
|
|
5192
|
+
const L = yield Nn(this.options.backgroundImage);
|
|
5200
5193
|
if (this.options.autoColor) {
|
|
5201
5194
|
const V = se._getAverageRGB(L);
|
|
5202
5195
|
this.options.colorDark = `rgb(${V.r},${V.g},${V.b})`;
|
|
@@ -5204,23 +5197,23 @@ class se {
|
|
|
5204
5197
|
re.drawImage(L, 0, 0, L.width, L.height, 0, 0, U, U), re.rect(0, 0, U, U), re.fillStyle = R, re.fill();
|
|
5205
5198
|
} else
|
|
5206
5199
|
re.rect(0, 0, U, U), re.fillStyle = this.options.colorLight, re.fill();
|
|
5207
|
-
const fe = ue.getPatternPosition(this.qrCode.typeNumber),
|
|
5200
|
+
const fe = ue.getPatternPosition(this.qrCode.typeNumber), ke = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || Ct, A = (1 - ke) * 0.5;
|
|
5208
5201
|
for (let L = 0; L < v; L++)
|
|
5209
5202
|
for (let V = 0; V < v; V++) {
|
|
5210
5203
|
const G = this.qrCode.isDark(L, V), K = V < 8 && (L < 8 || L >= v - 8) || V >= v - 8 && L < 8, W = L == 6 && V >= 8 && V <= v - 8 || V == 6 && L >= 8 && L <= v - 8;
|
|
5211
5204
|
let ne = K || W;
|
|
5212
5205
|
for (let F = 1; F < fe.length - 1; F++)
|
|
5213
5206
|
ne = ne || L >= fe[F] - 2 && L <= fe[F] + 2 && V >= fe[F] - 2 && V <= fe[F] + 2;
|
|
5214
|
-
const q = V *
|
|
5207
|
+
const q = V * I + (ne ? 0 : A * I), ce = L * I + (ne ? 0 : A * I);
|
|
5215
5208
|
if (O.strokeStyle = G ? this.options.colorDark : this.options.colorLight, O.lineWidth = 0.5, O.fillStyle = G ? this.options.colorDark : this.options.colorLight, fe.length === 0)
|
|
5216
|
-
ne || O.fillRect(q, ce, (ne ? 1 :
|
|
5209
|
+
ne || O.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
|
|
5217
5210
|
else {
|
|
5218
5211
|
const F = V < v - 4 && V >= v - 4 - 5 && L < v - 4 && L >= v - 4 - 5;
|
|
5219
|
-
!ne && !F && O.fillRect(q, ce, (ne ? 1 :
|
|
5212
|
+
!ne && !F && O.fillRect(q, ce, (ne ? 1 : ke) * I, (ne ? 1 : ke) * I);
|
|
5220
5213
|
}
|
|
5221
5214
|
}
|
|
5222
5215
|
const z = fe[fe.length - 1], ie = this.options.colorLight;
|
|
5223
|
-
if (O.fillStyle = ie, O.fillRect(0, 0, 8 *
|
|
5216
|
+
if (O.fillStyle = ie, O.fillRect(0, 0, 8 * I, 8 * I), O.fillRect(0, (v - 8) * I, 8 * I, 8 * I), O.fillRect((v - 8) * I, 0, 8 * I, 8 * I), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (O.fillRect(8 * I, 6 * I, (v - 8 - 8) * I, I), O.fillRect(6 * I, 8 * I, I, (v - 8 - 8) * I)), !((s = (i = this.options.components) === null || i === void 0 ? void 0 : i.cornerAlignment) === null || s === void 0) && s.protectors && se._drawAlignProtector(O, z, z, I), !((c = (r = this.options.components) === null || r === void 0 ? void 0 : r.alignment) === null || c === void 0) && c.protectors)
|
|
5224
5217
|
for (let L = 0; L < fe.length; L++)
|
|
5225
5218
|
for (let V = 0; V < fe.length; V++) {
|
|
5226
5219
|
const G = fe[V], K = fe[L];
|
|
@@ -5229,16 +5222,16 @@ class se {
|
|
|
5229
5222
|
continue;
|
|
5230
5223
|
if (G === z && K === z)
|
|
5231
5224
|
continue;
|
|
5232
|
-
se._drawAlignProtector(O, G, K,
|
|
5225
|
+
se._drawAlignProtector(O, G, K, I);
|
|
5233
5226
|
}
|
|
5234
5227
|
}
|
|
5235
|
-
O.fillStyle = this.options.colorDark, O.fillRect(0, 0, 7 *
|
|
5236
|
-
const we = ((d = (u = this.options.components) === null || u === void 0 ? void 0 : u.timing) === null || d === void 0 ? void 0 : d.scale) ||
|
|
5228
|
+
O.fillStyle = this.options.colorDark, O.fillRect(0, 0, 7 * I, I), O.fillRect((v - 7) * I, 0, 7 * I, I), O.fillRect(0, 6 * I, 7 * I, I), O.fillRect((v - 7) * I, 6 * I, 7 * I, I), O.fillRect(0, (v - 7) * I, 7 * I, I), O.fillRect(0, (v - 7 + 6) * I, 7 * I, I), O.fillRect(0, 0, I, 7 * I), O.fillRect(6 * I, 0, I, 7 * I), O.fillRect((v - 7) * I, 0, I, 7 * I), O.fillRect((v - 7 + 6) * I, 0, I, 7 * I), O.fillRect(0, (v - 7) * I, I, 7 * I), O.fillRect(6 * I, (v - 7) * I, I, 7 * I), O.fillRect(2 * I, 2 * I, 3 * I, 3 * I), O.fillRect((v - 7 + 2) * I, 2 * I, 3 * I, 3 * I), O.fillRect(2 * I, (v - 7 + 2) * I, 3 * I, 3 * I);
|
|
5229
|
+
const we = ((d = (u = this.options.components) === null || u === void 0 ? void 0 : u.timing) === null || d === void 0 ? void 0 : d.scale) || Ct, je = (1 - we) * 0.5;
|
|
5237
5230
|
for (let L = 0; L < v - 8; L += 2)
|
|
5238
|
-
se._drawDot(O, 8 + L, 6,
|
|
5239
|
-
const he = ((
|
|
5240
|
-
se._drawAlign(O, z, z,
|
|
5241
|
-
const Me = ((h = (
|
|
5231
|
+
se._drawDot(O, 8 + L, 6, I, je, we), se._drawDot(O, 6, 8 + L, I, je, we);
|
|
5232
|
+
const he = ((T = (p = this.options.components) === null || p === void 0 ? void 0 : p.cornerAlignment) === null || T === void 0 ? void 0 : T.scale) || Ct, me = (1 - he) * 0.5;
|
|
5233
|
+
se._drawAlign(O, z, z, I, me, he, this.options.colorDark, ((E = (N = this.options.components) === null || N === void 0 ? void 0 : N.cornerAlignment) === null || E === void 0 ? void 0 : E.protectors) || !1);
|
|
5234
|
+
const Me = ((h = (C = this.options.components) === null || C === void 0 ? void 0 : C.alignment) === null || h === void 0 ? void 0 : h.scale) || Ct, D = (1 - Me) * 0.5;
|
|
5242
5235
|
for (let L = 0; L < fe.length; L++)
|
|
5243
5236
|
for (let V = 0; V < fe.length; V++) {
|
|
5244
5237
|
const G = fe[V], K = fe[L];
|
|
@@ -5247,11 +5240,11 @@ class se {
|
|
|
5247
5240
|
continue;
|
|
5248
5241
|
if (G === z && K === z)
|
|
5249
5242
|
continue;
|
|
5250
|
-
se._drawAlign(O, G, K,
|
|
5243
|
+
se._drawAlign(O, G, K, I, D, Me, this.options.colorDark, ((x = (k = this.options.components) === null || k === void 0 ? void 0 : k.alignment) === null || x === void 0 ? void 0 : x.protectors) || !1);
|
|
5251
5244
|
}
|
|
5252
5245
|
}
|
|
5253
5246
|
if (P && (O.fillStyle = this.options.backgroundColor, O.fillRect(-f, -f, U, f), O.fillRect(-f, H, U, f), O.fillRect(H, -f, f, U), O.fillRect(-f, -f, f, U)), this.options.logoImage) {
|
|
5254
|
-
const L = yield
|
|
5247
|
+
const L = yield Nn(this.options.logoImage);
|
|
5255
5248
|
let V = this.options.logoScale, G = this.options.logoMargin, K = this.options.logoCornerRadius;
|
|
5256
5249
|
(V <= 0 || V >= 1) && (V = 0.2), G < 0 && (G = 0), K < 0 && (K = 0);
|
|
5257
5250
|
const W = H * V, ne = 0.5 * (U - W), q = ne;
|
|
@@ -5259,7 +5252,7 @@ class se {
|
|
|
5259
5252
|
const ce = O.globalCompositeOperation;
|
|
5260
5253
|
O.globalCompositeOperation = "destination-out", O.fill(), O.globalCompositeOperation = ce, O.restore(), O.save(), se._prepareRoundedCornerClip(O, ne, q, W, W, K), O.clip(), O.drawImage(L, ne, q, W, W), O.restore(), O.save(), O.translate(f, f);
|
|
5261
5254
|
}
|
|
5262
|
-
if (
|
|
5255
|
+
if (Ne) {
|
|
5263
5256
|
let L, V, G, K, W, ne;
|
|
5264
5257
|
if (Le.forEach(function(q) {
|
|
5265
5258
|
L || (L = new de(b, b), L.setDelay(q.delay), L.setRepeat(0));
|
|
@@ -5530,69 +5523,69 @@ const Al = /* @__PURE__ */ vt(xl, [["render", Vl]]), El = ["innerHTML"], Pl = {
|
|
|
5530
5523
|
],
|
|
5531
5524
|
setup(e, { emit: n }) {
|
|
5532
5525
|
const t = e, { reload: o, reloadFlag: a } = Zn(), l = B(() => {
|
|
5533
|
-
var
|
|
5534
|
-
return (h = (
|
|
5526
|
+
var C, h;
|
|
5527
|
+
return (h = (C = t.board) == null ? void 0 : C.tableData) == null ? void 0 : h.keyName;
|
|
5535
5528
|
}), i = B(() => {
|
|
5536
|
-
var
|
|
5537
|
-
return zo((
|
|
5529
|
+
var C;
|
|
5530
|
+
return zo((C = t.board) == null ? void 0 : C.columns);
|
|
5538
5531
|
}), s = Q([]);
|
|
5539
|
-
function r(
|
|
5540
|
-
s.value =
|
|
5532
|
+
function r(C) {
|
|
5533
|
+
s.value = C, n("return-selected-key", s.value);
|
|
5541
5534
|
}
|
|
5542
5535
|
const c = B(() => ({
|
|
5543
5536
|
current: t.paginationProps.page + 1,
|
|
5544
5537
|
pageSize: t.paginationProps.count,
|
|
5545
5538
|
total: t.paginationProps.totalCount,
|
|
5546
|
-
onChange: function(
|
|
5547
|
-
n("return-pagination-props",
|
|
5539
|
+
onChange: function(C) {
|
|
5540
|
+
n("return-pagination-props", C);
|
|
5548
5541
|
},
|
|
5549
5542
|
showJumper: !0
|
|
5550
5543
|
}));
|
|
5551
|
-
function u(
|
|
5552
|
-
return
|
|
5544
|
+
function u(C, h) {
|
|
5545
|
+
return C.value != "" ? Ze.render(C.value, { item: h }) : h[C.keyName];
|
|
5553
5546
|
}
|
|
5554
|
-
function d(
|
|
5555
|
-
var
|
|
5556
|
-
if (!xe(
|
|
5557
|
-
let x =
|
|
5558
|
-
if (h[
|
|
5547
|
+
function d(C, h) {
|
|
5548
|
+
var k;
|
|
5549
|
+
if (!xe(C.enums)) {
|
|
5550
|
+
let x = C.enums.filter((v) => {
|
|
5551
|
+
if (h[C.keyName] == null && (h[C.keyName] = ""), v.value == String(h[C.keyName]))
|
|
5559
5552
|
return v.text;
|
|
5560
5553
|
});
|
|
5561
|
-
return x.length ? (
|
|
5554
|
+
return x.length ? (k = x.shift()) == null ? void 0 : k.text : h[C.keyName];
|
|
5562
5555
|
}
|
|
5563
5556
|
}
|
|
5564
|
-
function p(
|
|
5565
|
-
if (
|
|
5566
|
-
return Ze.render(
|
|
5567
|
-
if (
|
|
5568
|
-
return Ye(h[
|
|
5557
|
+
function p(C, h) {
|
|
5558
|
+
if (C.value != "")
|
|
5559
|
+
return Ze.render(C.value, { item: h });
|
|
5560
|
+
if (C.value == "")
|
|
5561
|
+
return Ye(h[C.keyName]).format("YYYY-MM-DD HH:mm:ss");
|
|
5569
5562
|
}
|
|
5570
|
-
function
|
|
5571
|
-
return
|
|
5572
|
-
if (
|
|
5563
|
+
function T(C, h) {
|
|
5564
|
+
return C.filter((k) => {
|
|
5565
|
+
if (k.showIf != "1") {
|
|
5573
5566
|
let x, v;
|
|
5574
5567
|
try {
|
|
5575
|
-
x = Ze.render(
|
|
5568
|
+
x = Ze.render(k.showIf, { item: h }), v = Kt(x, { item: h });
|
|
5576
5569
|
} catch (b) {
|
|
5577
5570
|
console.warn(b);
|
|
5578
5571
|
}
|
|
5579
5572
|
return v;
|
|
5580
5573
|
} else
|
|
5581
|
-
return
|
|
5574
|
+
return k;
|
|
5582
5575
|
});
|
|
5583
5576
|
}
|
|
5584
|
-
function
|
|
5585
|
-
n("table-button-action",
|
|
5577
|
+
function N(C, h) {
|
|
5578
|
+
n("table-button-action", C, h);
|
|
5586
5579
|
}
|
|
5587
|
-
function E(
|
|
5588
|
-
n("table-form-confirm",
|
|
5580
|
+
function E(C, h) {
|
|
5581
|
+
n("table-form-confirm", C, h);
|
|
5589
5582
|
}
|
|
5590
5583
|
return be(
|
|
5591
5584
|
() => t.tableData,
|
|
5592
5585
|
() => o(),
|
|
5593
5586
|
{ deep: !0 }
|
|
5594
|
-
), (
|
|
5595
|
-
const
|
|
5587
|
+
), (C, h) => {
|
|
5588
|
+
const k = j("t-button"), x = j("t-popup"), v = j("t-icon"), b = j("t-image"), y = j("t-image-viewer");
|
|
5596
5589
|
return m(a) ? $("", !0) : (g(), S(m(Rn), {
|
|
5597
5590
|
key: 0,
|
|
5598
5591
|
commonTableProps: {
|
|
@@ -5626,7 +5619,7 @@ const Al = /* @__PURE__ */ vt(xl, [["render", Vl]]), El = ["innerHTML"], Pl = {
|
|
|
5626
5619
|
ae("div", Pl, ye(w.code), 1)
|
|
5627
5620
|
]),
|
|
5628
5621
|
default: M(() => [
|
|
5629
|
-
_(
|
|
5622
|
+
_(k, {
|
|
5630
5623
|
variant: "text",
|
|
5631
5624
|
theme: "primary"
|
|
5632
5625
|
}, {
|
|
@@ -5700,11 +5693,11 @@ const Al = /* @__PURE__ */ vt(xl, [["render", Vl]]), El = ["innerHTML"], Pl = {
|
|
|
5700
5693
|
])
|
|
5701
5694
|
]),
|
|
5702
5695
|
BUTTONS: M(({ col: f, row: w }) => [
|
|
5703
|
-
(g(!0), Y(ge, null,
|
|
5696
|
+
(g(!0), Y(ge, null, Te(T(f.buttons, w), (P) => (g(), S(k, {
|
|
5704
5697
|
theme: "primary",
|
|
5705
5698
|
variant: "text",
|
|
5706
5699
|
key: P.buttonId,
|
|
5707
|
-
onClick: (R) =>
|
|
5700
|
+
onClick: (R) => N(P, w)
|
|
5708
5701
|
}, {
|
|
5709
5702
|
default: M(() => [
|
|
5710
5703
|
X(ye(P.name), 1)
|
|
@@ -5744,18 +5737,18 @@ const jl = /* @__PURE__ */ vt(Ul, [["__scopeId", "data-v-78e0f314"]]), Rl = /* @
|
|
|
5744
5737
|
onChange: a
|
|
5745
5738
|
}, {
|
|
5746
5739
|
default: M(() => [
|
|
5747
|
-
(g(!0), Y(ge, null,
|
|
5748
|
-
key:
|
|
5749
|
-
value:
|
|
5750
|
-
label:
|
|
5740
|
+
(g(!0), Y(ge, null, Te(m(t), (T) => (g(), S(d, {
|
|
5741
|
+
key: T.title,
|
|
5742
|
+
value: T.title,
|
|
5743
|
+
label: T.title
|
|
5751
5744
|
}, {
|
|
5752
5745
|
default: M(() => [
|
|
5753
5746
|
_(u, { bordered: !1 }, {
|
|
5754
5747
|
content: M(() => [
|
|
5755
|
-
|
|
5748
|
+
T.board ? (g(), S(co, {
|
|
5756
5749
|
key: 0,
|
|
5757
5750
|
viewName: e.viewName,
|
|
5758
|
-
board:
|
|
5751
|
+
board: T.board,
|
|
5759
5752
|
onCloseDialog: l
|
|
5760
5753
|
}, null, 8, ["viewName", "board"])) : $("", !0)
|
|
5761
5754
|
]),
|
|
@@ -5781,7 +5774,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5781
5774
|
},
|
|
5782
5775
|
emits: ["update:isDialogVisible", "close-dialog"],
|
|
5783
5776
|
setup(e, { emit: n }) {
|
|
5784
|
-
const t = e, o = vo(() => import("./index-
|
|
5777
|
+
const t = e, o = vo(() => import("./index-68257001.mjs")), a = Xt(), l = B(() => t.dialogViewInfo.view), i = B(() => t.dialogViewInfo.name), s = B(() => {
|
|
5785
5778
|
var p;
|
|
5786
5779
|
switch ((p = r.value) == null ? void 0 : p.boardType) {
|
|
5787
5780
|
case "table":
|
|
@@ -5798,7 +5791,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5798
5791
|
function d() {
|
|
5799
5792
|
n("close-dialog");
|
|
5800
5793
|
}
|
|
5801
|
-
return (p,
|
|
5794
|
+
return (p, T) => (g(), S(m(Fn), {
|
|
5802
5795
|
commonDialogProps: {
|
|
5803
5796
|
visible: e.isDialogVisible,
|
|
5804
5797
|
width: m(s),
|
|
@@ -5840,7 +5833,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5840
5833
|
}), u = Q([]), d = Q({}), p = B(() => {
|
|
5841
5834
|
var A;
|
|
5842
5835
|
return (A = t.board) == null ? void 0 : A.header;
|
|
5843
|
-
}),
|
|
5836
|
+
}), T = Q({}), N = B(() => {
|
|
5844
5837
|
if (xe(a.query))
|
|
5845
5838
|
return {};
|
|
5846
5839
|
{
|
|
@@ -5852,11 +5845,11 @@ const zl = /* @__PURE__ */ te({
|
|
|
5852
5845
|
page: 0,
|
|
5853
5846
|
totalCount: 0,
|
|
5854
5847
|
pageCount: 0
|
|
5855
|
-
}),
|
|
5848
|
+
}), C = B(() => {
|
|
5856
5849
|
var A;
|
|
5857
5850
|
{
|
|
5858
5851
|
let z = {};
|
|
5859
|
-
return p.value &&
|
|
5852
|
+
return p.value && T.value && Object.assign(z, T.value), t.dialogProps && ((A = Object.keys(t.dialogProps)) != null && A.length) && Object.assign(z, t.dialogProps), r.value === "table" && Object.assign(z, E.value), Object.assign(z, N.value), z;
|
|
5860
5853
|
}
|
|
5861
5854
|
});
|
|
5862
5855
|
async function h() {
|
|
@@ -5866,7 +5859,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5866
5859
|
const z = await xt({
|
|
5867
5860
|
dataId: c.value,
|
|
5868
5861
|
viewName: t.viewName,
|
|
5869
|
-
props:
|
|
5862
|
+
props: C.value
|
|
5870
5863
|
});
|
|
5871
5864
|
if (i.sendRegisterMessage(c.value), z.state === 200 && z.data)
|
|
5872
5865
|
r.value == "table" && (E.value = {
|
|
@@ -5897,7 +5890,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5897
5890
|
deep: !0
|
|
5898
5891
|
}
|
|
5899
5892
|
);
|
|
5900
|
-
const
|
|
5893
|
+
const k = Q(!1), x = Q(!1), v = Q({}), b = Q({}), y = Q(), f = Q();
|
|
5901
5894
|
async function w(A, z = {}) {
|
|
5902
5895
|
if ((A ?? "") != "") {
|
|
5903
5896
|
z.viewName = A;
|
|
@@ -5906,7 +5899,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5906
5899
|
}
|
|
5907
5900
|
}
|
|
5908
5901
|
async function P(A) {
|
|
5909
|
-
|
|
5902
|
+
k.value = A;
|
|
5910
5903
|
}
|
|
5911
5904
|
async function R(A, z = {}) {
|
|
5912
5905
|
var ie, we, je;
|
|
@@ -5936,7 +5929,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5936
5929
|
A.props ? A.props.forEach((D) => {
|
|
5937
5930
|
D.keyName && (z[D.keyName] ?? "") != "" && (me[D.keyName] = z[D.keyName]);
|
|
5938
5931
|
}) : me = { ...z };
|
|
5939
|
-
const Me =
|
|
5932
|
+
const Me = Tt.confirm({
|
|
5940
5933
|
theme: "info",
|
|
5941
5934
|
header: A.name,
|
|
5942
5935
|
body: he,
|
|
@@ -5950,7 +5943,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5950
5943
|
break;
|
|
5951
5944
|
}
|
|
5952
5945
|
case "BATCH": {
|
|
5953
|
-
const he =
|
|
5946
|
+
const he = Tt.confirm({
|
|
5954
5947
|
theme: "info",
|
|
5955
5948
|
header: A.name,
|
|
5956
5949
|
body: `此操作将${A.name},是否继续`,
|
|
@@ -5988,7 +5981,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5988
5981
|
if ((je = A == null ? void 0 : A.props) == null || je.forEach((me) => {
|
|
5989
5982
|
me.keyName && (z[me.keyName] ?? "") != "" && (he[me.keyName] = z[me.keyName]);
|
|
5990
5983
|
}), (A.buttonId ?? "") != "") {
|
|
5991
|
-
const me = await
|
|
5984
|
+
const me = await Ne(
|
|
5992
5985
|
he,
|
|
5993
5986
|
A.buttonId
|
|
5994
5987
|
);
|
|
@@ -5997,7 +5990,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
5997
5990
|
L.style.display = "none", L.setAttribute("target", "_blank"), D && L.setAttribute("download", D), L.setAttribute("href", Me), L.click(), oe.info("即将开始下载");
|
|
5998
5991
|
}
|
|
5999
5992
|
} else if ((A.downloadUrl ?? "") != "") {
|
|
6000
|
-
const me =
|
|
5993
|
+
const me = ko.decode(Ze.render(A.downloadUrl, { item: z })), Me = o.resolve({
|
|
6001
5994
|
path: me,
|
|
6002
5995
|
query: he
|
|
6003
5996
|
});
|
|
@@ -6016,8 +6009,8 @@ const zl = /* @__PURE__ */ te({
|
|
|
6016
6009
|
console.error("按钮动作出错", he);
|
|
6017
6010
|
}
|
|
6018
6011
|
}
|
|
6019
|
-
function
|
|
6020
|
-
|
|
6012
|
+
function I(A) {
|
|
6013
|
+
T.value = A, E.value = {
|
|
6021
6014
|
count: 10,
|
|
6022
6015
|
page: 0,
|
|
6023
6016
|
totalCount: 0,
|
|
@@ -6036,7 +6029,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6036
6029
|
}
|
|
6037
6030
|
async function O(A, z) {
|
|
6038
6031
|
let ie = {};
|
|
6039
|
-
Object.keys(
|
|
6032
|
+
Object.keys(C.value).length && Object.assign(ie, C.value), Object.assign(ie, A);
|
|
6040
6033
|
const we = await aa({
|
|
6041
6034
|
buttonId: z,
|
|
6042
6035
|
props: ie,
|
|
@@ -6046,7 +6039,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6046
6039
|
}
|
|
6047
6040
|
function De(A, z) {
|
|
6048
6041
|
if (A.itemType == "selector" || A.itemType == "time_selector" || A.itemType == "date_time_selector" || A.itemType == "tree_check_box" || A.itemType === "multi_tree_selector" || A.itemType === "tree_selector") {
|
|
6049
|
-
const ie =
|
|
6042
|
+
const ie = Tt.confirm({
|
|
6050
6043
|
theme: "info",
|
|
6051
6044
|
body: "此操作将提交该修改,是否继续?",
|
|
6052
6045
|
onConfirm: () => {
|
|
@@ -6061,7 +6054,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6061
6054
|
}
|
|
6062
6055
|
async function re(A, z) {
|
|
6063
6056
|
let ie = {};
|
|
6064
|
-
Object.keys(
|
|
6057
|
+
Object.keys(C.value).length && Object.assign(ie, C.value);
|
|
6065
6058
|
const we = await la({
|
|
6066
6059
|
viewName: t.viewName,
|
|
6067
6060
|
buttonId: A.buttonId,
|
|
@@ -6070,9 +6063,9 @@ const zl = /* @__PURE__ */ te({
|
|
|
6070
6063
|
});
|
|
6071
6064
|
we.state == 200 ? oe.success(`${A.name} 操作成功!`) : oe.error(`提交出错:${we.message}`);
|
|
6072
6065
|
}
|
|
6073
|
-
async function
|
|
6066
|
+
async function Ne(A, z) {
|
|
6074
6067
|
let ie = {};
|
|
6075
|
-
Object.keys(
|
|
6068
|
+
Object.keys(C.value).length && Object.assign(ie, C.value), Object.assign(ie, A);
|
|
6076
6069
|
const we = await ra({
|
|
6077
6070
|
buttonId: z,
|
|
6078
6071
|
props: ie,
|
|
@@ -6090,9 +6083,9 @@ const zl = /* @__PURE__ */ te({
|
|
|
6090
6083
|
});
|
|
6091
6084
|
}
|
|
6092
6085
|
function fe(A, z) {
|
|
6093
|
-
O(A, z),
|
|
6086
|
+
O(A, z), ke();
|
|
6094
6087
|
}
|
|
6095
|
-
function
|
|
6088
|
+
function ke() {
|
|
6096
6089
|
n("close-dialog");
|
|
6097
6090
|
}
|
|
6098
6091
|
return (A, z) => (g(), Y("div", {
|
|
@@ -6103,7 +6096,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6103
6096
|
viewName: e.viewName,
|
|
6104
6097
|
headerInfo: m(p),
|
|
6105
6098
|
onHeaderButtonAction: R,
|
|
6106
|
-
onHeaderFilterChange:
|
|
6099
|
+
onHeaderFilterChange: I
|
|
6107
6100
|
}, null, 8, ["viewName", "headerInfo"])) : $("", !0),
|
|
6108
6101
|
m(r) === "form" ? (g(), S(La, {
|
|
6109
6102
|
key: 1,
|
|
@@ -6112,7 +6105,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6112
6105
|
formData: d.value,
|
|
6113
6106
|
onConfirmForm: O,
|
|
6114
6107
|
onConfirmAndClose: fe,
|
|
6115
|
-
onCloseDialog:
|
|
6108
|
+
onCloseDialog: ke
|
|
6116
6109
|
}, null, 8, ["viewName", "board", "formData"])) : $("", !0),
|
|
6117
6110
|
m(r) === "table" ? (g(), S(jl, {
|
|
6118
6111
|
key: 2,
|
|
@@ -6130,7 +6123,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6130
6123
|
viewName: e.viewName,
|
|
6131
6124
|
board: e.board
|
|
6132
6125
|
}, null, 8, ["viewName", "board"])) : $("", !0),
|
|
6133
|
-
|
|
6126
|
+
k.value ? (g(), S(zl, {
|
|
6134
6127
|
key: 4,
|
|
6135
6128
|
ref: "dialogRef",
|
|
6136
6129
|
isDialogVisible: x.value,
|
|
@@ -6164,27 +6157,27 @@ const zl = /* @__PURE__ */ te({
|
|
|
6164
6157
|
if (xe(o.query))
|
|
6165
6158
|
return {};
|
|
6166
6159
|
{
|
|
6167
|
-
const { viewName: E, ...
|
|
6168
|
-
return
|
|
6160
|
+
const { viewName: E, ...C } = o.query;
|
|
6161
|
+
return C;
|
|
6169
6162
|
}
|
|
6170
6163
|
}), p = Q();
|
|
6171
6164
|
be(
|
|
6172
6165
|
u,
|
|
6173
6166
|
async () => {
|
|
6174
|
-
xe(u.value) || await
|
|
6167
|
+
xe(u.value) || await T(u.value);
|
|
6175
6168
|
},
|
|
6176
6169
|
{
|
|
6177
6170
|
deep: !0,
|
|
6178
6171
|
immediate: !0
|
|
6179
6172
|
}
|
|
6180
6173
|
);
|
|
6181
|
-
async function
|
|
6174
|
+
async function T(E, C = {}) {
|
|
6182
6175
|
var h;
|
|
6183
|
-
|
|
6176
|
+
C.viewName = E, xe(d.value) && Object.assign(C, d.value);
|
|
6184
6177
|
try {
|
|
6185
|
-
const
|
|
6186
|
-
if (
|
|
6187
|
-
p.value =
|
|
6178
|
+
const k = await zn(C);
|
|
6179
|
+
if (k.state === 200 && k.data) {
|
|
6180
|
+
p.value = k.data, s.value = (h = k.data) == null ? void 0 : h.title;
|
|
6188
6181
|
const x = decodeURIComponent(o.fullPath);
|
|
6189
6182
|
l.appendTabMenuItem({
|
|
6190
6183
|
title: s.value,
|
|
@@ -6195,15 +6188,15 @@ const zl = /* @__PURE__ */ te({
|
|
|
6195
6188
|
} catch {
|
|
6196
6189
|
}
|
|
6197
6190
|
}
|
|
6198
|
-
const
|
|
6199
|
-
return (E,
|
|
6191
|
+
const N = B(() => a.isGlobalLoaded);
|
|
6192
|
+
return (E, C) => (g(), S(Bn, { title: s.value }, {
|
|
6200
6193
|
default: M(() => {
|
|
6201
6194
|
var h;
|
|
6202
6195
|
return [
|
|
6203
|
-
m(
|
|
6196
|
+
m(N) ? (g(!0), Y(ge, { key: 0 }, Te((h = p.value) == null ? void 0 : h.boards, (k) => {
|
|
6204
6197
|
var x;
|
|
6205
6198
|
return g(), S(yo, {
|
|
6206
|
-
key: `${(x = p.value) == null ? void 0 : x.viewName}_${
|
|
6199
|
+
key: `${(x = p.value) == null ? void 0 : x.viewName}_${k.boardType}`,
|
|
6207
6200
|
name: "fade",
|
|
6208
6201
|
mode: "out-in"
|
|
6209
6202
|
}, {
|
|
@@ -6211,7 +6204,7 @@ const zl = /* @__PURE__ */ te({
|
|
|
6211
6204
|
var v, b;
|
|
6212
6205
|
return [
|
|
6213
6206
|
_(co, {
|
|
6214
|
-
board:
|
|
6207
|
+
board: k,
|
|
6215
6208
|
viewName: (v = p.value) == null ? void 0 : v.viewName,
|
|
6216
6209
|
viewProps: (b = p.value) == null ? void 0 : b.props
|
|
6217
6210
|
}, null, 8, ["board", "viewName", "viewProps"])
|
|
@@ -6276,7 +6269,7 @@ const ql = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
6276
6269
|
}, [
|
|
6277
6270
|
ae("span", {
|
|
6278
6271
|
class: Z(`${m(J)}__login-footer--logo`),
|
|
6279
|
-
style:
|
|
6272
|
+
style: Nt({ backgroundImage: `url(${m(ql)})` })
|
|
6280
6273
|
}, null, 6),
|
|
6281
6274
|
ae("div", {
|
|
6282
6275
|
class: Z(`${m(J)}__login-footer--copyright`)
|
|
@@ -6302,7 +6295,7 @@ const Jl = ["id", "poster"], ei = ["src"], ti = ["src"], ni = /* @__PURE__ */ te
|
|
|
6302
6295
|
}, [
|
|
6303
6296
|
ae("video", {
|
|
6304
6297
|
id: `${m(J)}__login-wrapper--bgVideo`,
|
|
6305
|
-
style:
|
|
6298
|
+
style: Nt({ backgroundImage: `url(${e.bgImgSrc})` }),
|
|
6306
6299
|
poster: e.bgImgSrc,
|
|
6307
6300
|
autoplay: "",
|
|
6308
6301
|
muted: "",
|
|
@@ -6951,7 +6944,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
6951
6944
|
// trigger: "change",
|
|
6952
6945
|
// },
|
|
6953
6946
|
// ],
|
|
6954
|
-
}, u = Q(), d = B(() => u.value.tTableRef), p = Q(),
|
|
6947
|
+
}, u = Q(), d = B(() => u.value.tTableRef), p = Q(), T = B(() => p.value.tFormRef), N = B(() => {
|
|
6955
6948
|
var D;
|
|
6956
6949
|
return (D = d.value) == null ? void 0 : D.getTreeNode();
|
|
6957
6950
|
}), E = B(() => {
|
|
@@ -6967,14 +6960,14 @@ const ri = { class: "menu-title" }, si = {
|
|
|
6967
6960
|
default:
|
|
6968
6961
|
return "";
|
|
6969
6962
|
}
|
|
6970
|
-
}),
|
|
6971
|
-
() =>
|
|
6963
|
+
}), C = B(() => N.value ? fn(N.value) : []), h = B(
|
|
6964
|
+
() => C.value.filter((D) => !D.url).map((D) => ({
|
|
6972
6965
|
label: D.title,
|
|
6973
6966
|
value: D.name
|
|
6974
6967
|
}))
|
|
6975
|
-
),
|
|
6968
|
+
), k = rt(), x = _t();
|
|
6976
6969
|
function v() {
|
|
6977
|
-
const { fullPath: D, query: L } =
|
|
6970
|
+
const { fullPath: D, query: L } = k, V = decodeURIComponent(D);
|
|
6978
6971
|
x.appendTabMenuItem({
|
|
6979
6972
|
title: t.value,
|
|
6980
6973
|
path: V,
|
|
@@ -7002,10 +6995,10 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7002
6995
|
function R(D) {
|
|
7003
6996
|
return D && D.length ? D.filter((L) => !L.isGroup) : [];
|
|
7004
6997
|
}
|
|
7005
|
-
function
|
|
6998
|
+
function I(D) {
|
|
7006
6999
|
return D && D.length ? D.filter((L) => L.isGroup) : [];
|
|
7007
7000
|
}
|
|
7008
|
-
function H(D =
|
|
7001
|
+
function H(D = N.value) {
|
|
7009
7002
|
var L;
|
|
7010
7003
|
try {
|
|
7011
7004
|
if (d.value) {
|
|
@@ -7061,7 +7054,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7061
7054
|
function re(D) {
|
|
7062
7055
|
r.value = mt(D), D.isGroup ? i.value = "editGroup" : (i.value = "editItem", r.value.isInner = w(D)), l.value = !0;
|
|
7063
7056
|
}
|
|
7064
|
-
function
|
|
7057
|
+
function Ne(D) {
|
|
7065
7058
|
r.value = mt(D), l.value = !0, i.value = "moveItemTo";
|
|
7066
7059
|
}
|
|
7067
7060
|
function Le() {
|
|
@@ -7082,9 +7075,9 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7082
7075
|
children: []
|
|
7083
7076
|
};
|
|
7084
7077
|
}
|
|
7085
|
-
function
|
|
7078
|
+
function ke() {
|
|
7086
7079
|
var D;
|
|
7087
|
-
(D =
|
|
7080
|
+
(D = T.value) == null || D.validate().then((L) => {
|
|
7088
7081
|
var V, G, K, W, ne, q, ce;
|
|
7089
7082
|
if (!Object.keys(L).length)
|
|
7090
7083
|
i.value == "addGroup" ? (r.value.edificeKey = a.value, r.value.children && ((V = r.value.children) != null && V.length) && r.value.children.forEach((F) => {
|
|
@@ -7107,7 +7100,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7107
7100
|
}
|
|
7108
7101
|
function A(D, L) {
|
|
7109
7102
|
if (d.value) {
|
|
7110
|
-
const V =
|
|
7103
|
+
const V = C.value.find((G) => G.name == D);
|
|
7111
7104
|
if (V) {
|
|
7112
7105
|
const { parent: G } = V;
|
|
7113
7106
|
L !== G && (r.value.parent = L, d.value.remove(D), d.value.appendTo(L, r.value));
|
|
@@ -7116,7 +7109,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7116
7109
|
}
|
|
7117
7110
|
function z(D) {
|
|
7118
7111
|
try {
|
|
7119
|
-
const L =
|
|
7112
|
+
const L = Tt.confirm({
|
|
7120
7113
|
theme: "info",
|
|
7121
7114
|
header: "撤销组",
|
|
7122
7115
|
body: `确定要撤销${D.title}吗?`,
|
|
@@ -7155,9 +7148,9 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7155
7148
|
(D = d.value) == null || D.resetData(n.sideMenuTree), oe.success("恢复默认菜单方案成功!");
|
|
7156
7149
|
}
|
|
7157
7150
|
async function we() {
|
|
7158
|
-
const D = fn(
|
|
7151
|
+
const D = fn(N.value);
|
|
7159
7152
|
try {
|
|
7160
|
-
(await li({ menus: [...D] })).state == 200 && (n.setSideMenuConfig(
|
|
7153
|
+
(await li({ menus: [...D] })).state == 200 && (n.setSideMenuConfig(N.value), s.value = N.value, oe.success("保存菜单方案成功!"));
|
|
7161
7154
|
} catch (L) {
|
|
7162
7155
|
oe.error(L.message);
|
|
7163
7156
|
}
|
|
@@ -7184,7 +7177,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7184
7177
|
const { children: W } = K.row, ne = W == null ? void 0 : W.findIndex((q) => q.name == D.name);
|
|
7185
7178
|
W && (Me(W, L, ne), H());
|
|
7186
7179
|
} else {
|
|
7187
|
-
const W = mt(
|
|
7180
|
+
const W = mt(N.value), ne = W.findIndex((q) => q.name == D.name);
|
|
7188
7181
|
Me(W, L, ne), H(W);
|
|
7189
7182
|
}
|
|
7190
7183
|
}
|
|
@@ -7316,7 +7309,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7316
7309
|
variant: "text",
|
|
7317
7310
|
theme: "primary",
|
|
7318
7311
|
disabled: F.isGroup,
|
|
7319
|
-
onClick: (pe) =>
|
|
7312
|
+
onClick: (pe) => Ne(F)
|
|
7320
7313
|
}, {
|
|
7321
7314
|
default: M(() => [
|
|
7322
7315
|
X(ye(F.isGroup ? "-----" : "转移至"), 1)
|
|
@@ -7388,7 +7381,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7388
7381
|
]),
|
|
7389
7382
|
_: 1
|
|
7390
7383
|
}),
|
|
7391
|
-
_(V, { onClick:
|
|
7384
|
+
_(V, { onClick: ke }, {
|
|
7392
7385
|
default: M(() => [
|
|
7393
7386
|
X("确定")
|
|
7394
7387
|
]),
|
|
@@ -7453,7 +7446,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7453
7446
|
])) : (g(), Y("span", mi, "请选择图标标识"))
|
|
7454
7447
|
]),
|
|
7455
7448
|
default: M(() => [
|
|
7456
|
-
(g(!0), Y(ge, null,
|
|
7449
|
+
(g(!0), Y(ge, null, Te(m(ai), (F) => (g(), S(ne, {
|
|
7457
7450
|
value: F.stem,
|
|
7458
7451
|
key: F.stem,
|
|
7459
7452
|
class: "overlay-options"
|
|
@@ -7489,7 +7482,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7489
7482
|
]),
|
|
7490
7483
|
_: 1
|
|
7491
7484
|
})),
|
|
7492
|
-
!
|
|
7485
|
+
!I(r.value.children).length && r.value.level == 1 ? (g(), S(W, {
|
|
7493
7486
|
key: 2,
|
|
7494
7487
|
label: "分组"
|
|
7495
7488
|
}, {
|
|
@@ -7506,7 +7499,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7506
7499
|
]),
|
|
7507
7500
|
_: 1
|
|
7508
7501
|
})) : $("", !0),
|
|
7509
|
-
(g(!0), Y(ge, null,
|
|
7502
|
+
(g(!0), Y(ge, null, Te(I(r.value.children), (F, pe) => (g(), S(W, {
|
|
7510
7503
|
key: "group" + pe,
|
|
7511
7504
|
label: pe == 0 ? "分组" : " "
|
|
7512
7505
|
}, {
|
|
@@ -7517,7 +7510,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7517
7510
|
placeholder: "请输入分组名称 ",
|
|
7518
7511
|
value: F.title,
|
|
7519
7512
|
onChange: (Se) => m(Ge)(
|
|
7520
|
-
|
|
7513
|
+
I(r.value.children),
|
|
7521
7514
|
`[${pe}].title`,
|
|
7522
7515
|
Se
|
|
7523
7516
|
)
|
|
@@ -7526,7 +7519,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7526
7519
|
placeholder: "请输入分组标识 ",
|
|
7527
7520
|
value: F.name,
|
|
7528
7521
|
onChange: (Se) => m(Ge)(
|
|
7529
|
-
|
|
7522
|
+
I(r.value.children),
|
|
7530
7523
|
`[${pe}].name`,
|
|
7531
7524
|
Se
|
|
7532
7525
|
)
|
|
@@ -7541,7 +7534,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7541
7534
|
]),
|
|
7542
7535
|
_: 2
|
|
7543
7536
|
}, 1032, ["onClick"]),
|
|
7544
|
-
pe ==
|
|
7537
|
+
pe == I(r.value.children).length - 1 ? (g(), S(V, {
|
|
7545
7538
|
key: 0,
|
|
7546
7539
|
variant: "outline",
|
|
7547
7540
|
theme: "default",
|
|
@@ -7575,7 +7568,7 @@ const ri = { class: "menu-title" }, si = {
|
|
|
7575
7568
|
]),
|
|
7576
7569
|
_: 1
|
|
7577
7570
|
})) : $("", !0),
|
|
7578
|
-
(g(!0), Y(ge, null,
|
|
7571
|
+
(g(!0), Y(ge, null, Te(R(r.value.children), (F, pe) => (g(), S(W, {
|
|
7579
7572
|
key: "item" + pe,
|
|
7580
7573
|
label: pe == 0 ? "子菜单项" : " "
|
|
7581
7574
|
}, {
|
|
@@ -7785,7 +7778,7 @@ export {
|
|
|
7785
7778
|
un as g,
|
|
7786
7779
|
qe as h,
|
|
7787
7780
|
Yi as i,
|
|
7788
|
-
|
|
7781
|
+
Io as j,
|
|
7789
7782
|
_i as k,
|
|
7790
7783
|
cn as l,
|
|
7791
7784
|
dn as m,
|
|
@@ -7793,7 +7786,7 @@ export {
|
|
|
7793
7786
|
Di as o,
|
|
7794
7787
|
Vi as p,
|
|
7795
7788
|
mn as q,
|
|
7796
|
-
|
|
7789
|
+
No as r,
|
|
7797
7790
|
qi as s,
|
|
7798
7791
|
So as t,
|
|
7799
7792
|
_o as u,
|