@gonsin/gview 2.0.89 → 2.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +482 -457
- package/dist/style.css +1 -1
- package/dist/types/http/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,30 +3,30 @@ var Ka = (n, e, t) => e in n ? Ha(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var zt = (n, e, t) => (Ka(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { useI18n as ke } from "gonsin-i18n";
|
|
5
5
|
import { useI18n as Bc } from "gonsin-i18n";
|
|
6
|
-
import { defineComponent as ue, ref as Y, computed as V, resolveComponent as Q, openBlock as v, createBlock as $, normalizeClass as Z, withCtx as C, createElementBlock as W, Fragment as de, renderList as Se, createVNode as F, createElementVNode as ne, unref as h, createTextVNode as re, toDisplayString as te, createCommentVNode as X, withModifiers as Vt, nextTick as Wa, inject as ze, normalizeStyle as
|
|
7
|
-
import { useRouter as
|
|
6
|
+
import { defineComponent as ue, ref as Y, computed as V, resolveComponent as Q, openBlock as v, createBlock as $, normalizeClass as Z, withCtx as C, createElementBlock as W, Fragment as de, renderList as Se, createVNode as F, createElementVNode as ne, unref as h, createTextVNode as re, toDisplayString as te, createCommentVNode as X, withModifiers as Vt, nextTick as Wa, inject as ze, normalizeStyle as bt, normalizeProps as Lt, mergeProps as Ee, guardReactiveProps as Yt, renderSlot as Ke, onMounted as Ue, onBeforeUnmount as Tt, isRef as Ya, Transition as qa, watch as De, createSlots as qt, useSlots as Ho, resolveDynamicComponent as Qa, TransitionGroup as Xa, toRefs as Za, provide as At, reactive as $n, onBeforeMount as Jt, toRaw as _n, shallowRef as Ja, defineAsyncComponent as Ko, watchEffect as el } from "vue";
|
|
7
|
+
import { useRouter as ft, useRoute as rt, onBeforeRouteLeave as Wo, onBeforeRouteUpdate as Yo } from "vue-router";
|
|
8
8
|
import { defineStore as Ut, storeToRefs as tl } from "pinia";
|
|
9
9
|
import ct from "dayjs";
|
|
10
10
|
import to from "axios";
|
|
11
11
|
import { MessagePlugin as he, Button as nl, Progress as qo, Tooltip as St, Link as ol, Tree as al, Card as ll, DialogPlugin as vn, ConfigProvider as rl } from "tdesign-vue-next";
|
|
12
12
|
import { get as fe, set as je, cloneDeep as Xe, isPlainObject as po, isArray as ho, isEqual as vo } from "lodash-es";
|
|
13
13
|
import { customAlphabet as sl } from "nanoid";
|
|
14
|
-
import { RefreshIcon as Hn, CloseIcon as xt, ArrowLeftIcon as go, ArrowRightIcon as yo, CloseCircleIcon as bo, MoreIcon as il, DeleteIcon as ul, ViewListIcon as cl, PoweroffIcon as dl, ChevronDownIcon as ml, Icon as wo, AppIcon as
|
|
14
|
+
import { RefreshIcon as Hn, CloseIcon as xt, ArrowLeftIcon as go, ArrowRightIcon as yo, CloseCircleIcon as bo, MoreIcon as il, DeleteIcon as ul, ViewListIcon as cl, PoweroffIcon as dl, ChevronDownIcon as ml, Icon as wo, AppIcon as gt, UploadIcon as To, CheckCircleFilledIcon as fl, PlayCircleFilledIcon as pl, PauseCircleFilledIcon as hl, LinkIcon as vl, ErrorCircleFilledIcon as gl, FileImageIcon as Qt, FilePdfIcon as Qo, VideoIcon as Kn, FileIconIcon as Wn, FolderOpenIcon as yl, FolderIcon as bl, FilterIcon as wl, SearchIcon as Tl, UserIcon as Bn, BrowseIcon as Cl, ChevronRightIcon as kl, ChevronUpIcon as Ml, MoveIcon as _l } from "tdesign-icons-vue-next";
|
|
15
15
|
import { useElementSize as Il, onClickOutside as Co, useEventListener as ko } from "@vueuse/core";
|
|
16
16
|
import gn from "number-precision";
|
|
17
17
|
import Xo from "qs";
|
|
18
18
|
import Ll from "nprogress";
|
|
19
19
|
import { default as xc } from "nprogress";
|
|
20
|
+
import dt from "mustache";
|
|
20
21
|
import { Toolbar as Sl, Editor as Dl } from "@wangeditor/editor-for-vue";
|
|
21
|
-
import
|
|
22
|
-
import _o from "he";
|
|
22
|
+
import Mo from "he";
|
|
23
23
|
function Ye(n, e, t) {
|
|
24
24
|
const o = n;
|
|
25
25
|
return o.install = (a, l) => {
|
|
26
26
|
a.component(e || l || o.name, n), t && a.directive(t.name, t.comp);
|
|
27
27
|
}, o;
|
|
28
28
|
}
|
|
29
|
-
const nn = "config",
|
|
29
|
+
const nn = "config", _o = "themeConfig", Nl = "user", Io = "langConfig", cc = "menu", Pn = "initTabMenuList", xn = "tabMenu", on = "sideMenuConfig", Lo = "token", So = "tokenExpiredTime", dc = "dataId", Xt = "sessionId", an = "formDataCache", ln = "columnData", El = {
|
|
30
30
|
brandTheme: "default",
|
|
31
31
|
// 主题色
|
|
32
32
|
displayMode: "light"
|
|
@@ -266,7 +266,7 @@ const Be = new ea("session"), et = new ea("local"), mc = [
|
|
|
266
266
|
subcmd: n,
|
|
267
267
|
response: 0
|
|
268
268
|
}
|
|
269
|
-
}, $l = 3e4, Bl = 3e3, yn = "g-dialog-plugin", Pl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", xl = "g-common-table", Vl = "g-board", hc = "g-dialog", Ol = "g-form", Do = "g-form-item", vc = "g-header", Ul = "g-tab", Pt = "g-table", tt = "g-layout", un = "g-uploader",
|
|
269
|
+
}, $l = 3e4, Bl = 3e3, yn = "g-dialog-plugin", Pl = "g-common-dialog", rn = "g-common-form", sn = "g-common-header", xl = "g-common-table", Vl = "g-board", hc = "g-dialog", Ol = "g-form", Do = "g-form-item", vc = "g-header", Ul = "g-tab", Pt = "g-table", tt = "g-layout", un = "g-uploader", _t = "g-login";
|
|
270
270
|
function Rl(n) {
|
|
271
271
|
return n.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
272
272
|
}
|
|
@@ -295,43 +295,43 @@ function Gl(n) {
|
|
|
295
295
|
}
|
|
296
296
|
window.v = Gl;
|
|
297
297
|
const Hl = Object.prototype.toString;
|
|
298
|
-
function
|
|
298
|
+
function pt(n, e) {
|
|
299
299
|
return Hl.call(n) === `[object ${e}]`;
|
|
300
300
|
}
|
|
301
301
|
function Dt(n) {
|
|
302
|
-
return
|
|
302
|
+
return pt(n, "Function");
|
|
303
303
|
}
|
|
304
|
-
const Kl = (n) => typeof n < "u", oa = (n) => !Kl(n), no = (n) => n !== null &&
|
|
304
|
+
const Kl = (n) => typeof n < "u", oa = (n) => !Kl(n), no = (n) => n !== null && pt(n, "Object");
|
|
305
305
|
function gc(n) {
|
|
306
|
-
return
|
|
306
|
+
return pt(n, "Date");
|
|
307
307
|
}
|
|
308
308
|
function yc(n) {
|
|
309
|
-
return
|
|
309
|
+
return pt(n, "Number");
|
|
310
310
|
}
|
|
311
311
|
function bc(n) {
|
|
312
|
-
return
|
|
312
|
+
return pt(n, "AsyncFunction");
|
|
313
313
|
}
|
|
314
314
|
function Wl(n) {
|
|
315
|
-
return
|
|
315
|
+
return pt(n, "Promise") && no(n) && Dt(n.then) && Dt(n.catch);
|
|
316
316
|
}
|
|
317
317
|
function wc(n) {
|
|
318
|
-
return
|
|
318
|
+
return pt(n, "String");
|
|
319
319
|
}
|
|
320
320
|
function Yl(n) {
|
|
321
|
-
return
|
|
321
|
+
return pt(n, "Boolean");
|
|
322
322
|
}
|
|
323
323
|
function Ct(n) {
|
|
324
324
|
return n && Array.isArray(n);
|
|
325
325
|
}
|
|
326
|
-
const Tc = () => typeof window < "u", Cc = (n) => typeof window < "u" &&
|
|
327
|
-
function
|
|
326
|
+
const Tc = () => typeof window < "u", Cc = (n) => typeof window < "u" && pt(n, "Window"), kc = (n) => no(n) && !!n.tagName, Mc = typeof window > "u";
|
|
327
|
+
function mt(n) {
|
|
328
328
|
return n === null;
|
|
329
329
|
}
|
|
330
330
|
function No(n) {
|
|
331
|
-
return oa(n) &&
|
|
331
|
+
return oa(n) && mt(n);
|
|
332
332
|
}
|
|
333
333
|
function We(n) {
|
|
334
|
-
return oa(n) ||
|
|
334
|
+
return oa(n) || mt(n);
|
|
335
335
|
}
|
|
336
336
|
function wn(n) {
|
|
337
337
|
return We(n) || (n + "").trim() == "";
|
|
@@ -575,7 +575,7 @@ function nr() {
|
|
|
575
575
|
function dn(n, e) {
|
|
576
576
|
return e ? n.indexOf("?") > -1 ? n += "&sessionId=" + e : n += "?sessionId=" + e : n;
|
|
577
577
|
}
|
|
578
|
-
const
|
|
578
|
+
const _c = {
|
|
579
579
|
...ra
|
|
580
580
|
};
|
|
581
581
|
class or {
|
|
@@ -588,9 +588,20 @@ class or {
|
|
|
588
588
|
const o = Ve();
|
|
589
589
|
o.checkUserToken();
|
|
590
590
|
const a = o.token ?? "", l = o.userLang ?? "zh-CN";
|
|
591
|
+
let r = "";
|
|
592
|
+
if (this.router) {
|
|
593
|
+
const u = this.router.currentRoute.value, { fullPath: i, path: d, query: s } = u, { viewName: c, ...f } = s;
|
|
594
|
+
r = this.router.resolve({
|
|
595
|
+
path: d,
|
|
596
|
+
query: {
|
|
597
|
+
...c ? { viewName: c } : {}
|
|
598
|
+
}
|
|
599
|
+
}).fullPath.replace(/\//, ""), console.log("operationUrl", r);
|
|
600
|
+
}
|
|
591
601
|
return t.headers = {
|
|
592
602
|
...t == null ? void 0 : t.headers,
|
|
593
603
|
...a ? { token: a } : {},
|
|
604
|
+
...r ? { "Operation-Url": r } : {},
|
|
594
605
|
lang: l
|
|
595
606
|
}, {
|
|
596
607
|
...t
|
|
@@ -710,7 +721,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
710
721
|
// 设置面板是否显示
|
|
711
722
|
isSettingPanelShow: !1,
|
|
712
723
|
// 主题配置
|
|
713
|
-
themeConfig: et.getItem(
|
|
724
|
+
themeConfig: et.getItem(_o) || {
|
|
714
725
|
...El
|
|
715
726
|
},
|
|
716
727
|
// 侧边菜单配置
|
|
@@ -855,7 +866,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
855
866
|
* @description 更改主题
|
|
856
867
|
*/
|
|
857
868
|
changeTheme(n) {
|
|
858
|
-
this.changeMode(n), this.changeBrandTheme(n), et.setItem(
|
|
869
|
+
this.changeMode(n), this.changeBrandTheme(n), et.setItem(_o, n), this.themeConfig = { ...n };
|
|
859
870
|
},
|
|
860
871
|
/**
|
|
861
872
|
* @description 更改颜色模式
|
|
@@ -1132,7 +1143,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1132
1143
|
}), ar = ["title"], lr = ["title"], rr = ["onClick"], sr = ["title"], ir = ["title"], ur = ["onClick"], cr = ["title"], dr = ["title"], mr = ["title"], fr = ["title"], pr = ["title"], hr = ["title"], vr = /* @__PURE__ */ ue({
|
|
1133
1144
|
__name: "GLayoutHeaderTab",
|
|
1134
1145
|
setup(n) {
|
|
1135
|
-
const { T: e } = ke(), t = `${tt}__layoutHeaderTab`, o =
|
|
1146
|
+
const { T: e } = ke(), t = `${tt}__layoutHeaderTab`, o = ft(), a = rt(), l = Y(""), r = kt(), u = Ve(), i = V(() => r.tabMenuList), d = V(() => u.homeUrl), s = V(() => u.displayMode);
|
|
1136
1147
|
function c(k, x, S) {
|
|
1137
1148
|
x.trigger === "document" && (l.value = null), k && (l.value = S);
|
|
1138
1149
|
}
|
|
@@ -1180,7 +1191,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1180
1191
|
}
|
|
1181
1192
|
l.value = null;
|
|
1182
1193
|
}
|
|
1183
|
-
const
|
|
1194
|
+
const _ = V(() => decodeURIComponent(a.fullPath)), I = Y(null), { width: m } = Il(I, { width: 1e3, height: 64 }), w = V(() => m.value > 0 ? m.value / 140 : 5), M = V(
|
|
1184
1195
|
() => w.value > 0 ? i.value.slice(0, w.value) : i.value.slice(0)
|
|
1185
1196
|
), U = V(
|
|
1186
1197
|
() => w.value > 0 ? i.value.slice(w.value) : []
|
|
@@ -1192,12 +1203,12 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1192
1203
|
ref: I,
|
|
1193
1204
|
class: Z(`${t}`),
|
|
1194
1205
|
theme: s.value,
|
|
1195
|
-
value:
|
|
1206
|
+
value: _.value,
|
|
1196
1207
|
onChange: f,
|
|
1197
1208
|
"expand-type": "popup"
|
|
1198
1209
|
}, {
|
|
1199
1210
|
default: C(() => [
|
|
1200
|
-
(v(!0), W(de, null, Se(
|
|
1211
|
+
(v(!0), W(de, null, Se(M.value, (H, ae) => (v(), $(B, {
|
|
1201
1212
|
key: ae,
|
|
1202
1213
|
trigger: "context-menu",
|
|
1203
1214
|
"min-column-width": 128,
|
|
@@ -1312,7 +1323,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1312
1323
|
width: "150px"
|
|
1313
1324
|
}
|
|
1314
1325
|
},
|
|
1315
|
-
value: P.value.includes(
|
|
1326
|
+
value: P.value.includes(_.value) ? _.value : ""
|
|
1316
1327
|
}, {
|
|
1317
1328
|
title: C(() => [
|
|
1318
1329
|
F(h(il))
|
|
@@ -1331,7 +1342,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1331
1342
|
F(T, null, {
|
|
1332
1343
|
default: C(() => [
|
|
1333
1344
|
F(A, {
|
|
1334
|
-
onClick: () => y(H,
|
|
1345
|
+
onClick: () => y(H, M.value.length + ae - 1)
|
|
1335
1346
|
}, {
|
|
1336
1347
|
default: C(() => [
|
|
1337
1348
|
ne("span", {
|
|
@@ -1347,7 +1358,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1347
1358
|
key: 0,
|
|
1348
1359
|
onClick: () => p({
|
|
1349
1360
|
value: H.path,
|
|
1350
|
-
index:
|
|
1361
|
+
index: M.value.length + ae
|
|
1351
1362
|
})
|
|
1352
1363
|
}, {
|
|
1353
1364
|
default: C(() => [
|
|
@@ -1360,11 +1371,11 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1360
1371
|
]),
|
|
1361
1372
|
_: 2
|
|
1362
1373
|
}, 1032, ["onClick"])),
|
|
1363
|
-
|
|
1374
|
+
M.value.length + ae > 1 ? (v(), $(A, {
|
|
1364
1375
|
key: 1,
|
|
1365
1376
|
onClick: () => N(
|
|
1366
1377
|
H.path,
|
|
1367
|
-
|
|
1378
|
+
M.value.length + ae
|
|
1368
1379
|
)
|
|
1369
1380
|
}, {
|
|
1370
1381
|
default: C(() => [
|
|
@@ -1377,11 +1388,11 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1377
1388
|
]),
|
|
1378
1389
|
_: 2
|
|
1379
1390
|
}, 1032, ["onClick"])) : X("", !0),
|
|
1380
|
-
|
|
1391
|
+
M.value.length + ae > 0 && ae < i.value.length ? (v(), $(A, {
|
|
1381
1392
|
key: 2,
|
|
1382
1393
|
onClick: () => j(
|
|
1383
1394
|
H.path,
|
|
1384
|
-
|
|
1395
|
+
M.value.length + ae
|
|
1385
1396
|
)
|
|
1386
1397
|
}, {
|
|
1387
1398
|
default: C(() => [
|
|
@@ -1394,11 +1405,11 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1394
1405
|
]),
|
|
1395
1406
|
_: 2
|
|
1396
1407
|
}, 1032, ["onClick"])) : X("", !0),
|
|
1397
|
-
|
|
1408
|
+
M.value.length + ae > 0 && i.value.length > 2 ? (v(), $(A, {
|
|
1398
1409
|
key: 3,
|
|
1399
1410
|
onClick: () => E(
|
|
1400
1411
|
H.path,
|
|
1401
|
-
|
|
1412
|
+
M.value.length + ae
|
|
1402
1413
|
)
|
|
1403
1414
|
}, {
|
|
1404
1415
|
default: C(() => [
|
|
@@ -1432,7 +1443,7 @@ const Ze = new or(ra), sa = Ut("column", {
|
|
|
1432
1443
|
onClick: Vt(
|
|
1433
1444
|
() => p({
|
|
1434
1445
|
value: H.path,
|
|
1435
|
-
index:
|
|
1446
|
+
index: M.value.length + ae
|
|
1436
1447
|
}),
|
|
1437
1448
|
["stop"]
|
|
1438
1449
|
)
|
|
@@ -1496,21 +1507,21 @@ const Cr = { render: Tr }, kr = {
|
|
|
1496
1507
|
height: "24",
|
|
1497
1508
|
fill: "none",
|
|
1498
1509
|
viewBox: "0 0 48 48"
|
|
1499
|
-
},
|
|
1510
|
+
}, Mr = /* @__PURE__ */ ne("path", {
|
|
1500
1511
|
fill: "currentColor",
|
|
1501
1512
|
stroke: "currentColor",
|
|
1502
1513
|
"stroke-linejoin": "round",
|
|
1503
1514
|
"stroke-width": "4",
|
|
1504
1515
|
d: "m34 41 10-17L34 7H14L4 24l10 17h20Z"
|
|
1505
|
-
}, null, -1),
|
|
1516
|
+
}, null, -1), _r = /* @__PURE__ */ ne("path", {
|
|
1506
1517
|
fill: "var(--td-bg-color-container)",
|
|
1507
1518
|
stroke: "var(--td-bg-color-container)",
|
|
1508
1519
|
"stroke-linejoin": "round",
|
|
1509
1520
|
"stroke-width": "4",
|
|
1510
1521
|
d: "M24 29a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z"
|
|
1511
1522
|
}, null, -1), Ir = [
|
|
1512
|
-
|
|
1513
|
-
|
|
1523
|
+
Mr,
|
|
1524
|
+
_r
|
|
1514
1525
|
];
|
|
1515
1526
|
function Lr(n, e) {
|
|
1516
1527
|
return v(), W("svg", kr, [...Ir]);
|
|
@@ -1518,7 +1529,7 @@ function Lr(n, e) {
|
|
|
1518
1529
|
const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
1519
1530
|
__name: "GLayoutHeader",
|
|
1520
1531
|
setup(n) {
|
|
1521
|
-
const { T: e } = ke(), t = `${tt}__header`, o =
|
|
1532
|
+
const { T: e } = ke(), t = `${tt}__header`, o = ft(), a = Ve(), l = ze(Qn, null), r = l == null ? void 0 : l.GLayoutHeaderOperationsRef, u = l == null ? void 0 : l.GLayoutHeaderConfigRef, i = l == null ? void 0 : l.SideMenuConfigRef, d = V(() => a.userType), s = V(() => {
|
|
1522
1533
|
if ((d.value ?? "") != "")
|
|
1523
1534
|
switch (d.value) {
|
|
1524
1535
|
case "normal":
|
|
@@ -1540,7 +1551,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1540
1551
|
o.push({ name: "login" }), a.userLogout(), E.clearTabMenu();
|
|
1541
1552
|
}
|
|
1542
1553
|
const L = V(() => a.sideHoverMenuTimer);
|
|
1543
|
-
function
|
|
1554
|
+
function _() {
|
|
1544
1555
|
i != null && i.value.enableHoverMenu && !a.isSideMenuCollapse && (clearTimeout(L.value), a.isSideHoverMenuShow = !0);
|
|
1545
1556
|
}
|
|
1546
1557
|
function I() {
|
|
@@ -1549,7 +1560,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1549
1560
|
}, 500);
|
|
1550
1561
|
}
|
|
1551
1562
|
return (m, w) => {
|
|
1552
|
-
const
|
|
1563
|
+
const M = Q("t-button"), U = Q("t-icon"), P = Q("t-badge"), k = Q("t-popup"), x = Q("t-dropdown-item"), S = Q("t-dropdown-menu"), A = Q("t-dropdown"), T = Q("t-head-menu"), B = Q("t-header");
|
|
1553
1564
|
return v(), $(B, {
|
|
1554
1565
|
class: Z(t),
|
|
1555
1566
|
onMouseleave: I
|
|
@@ -1561,17 +1572,17 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1561
1572
|
return [
|
|
1562
1573
|
ne("div", {
|
|
1563
1574
|
class: Z(`${t}--logo`),
|
|
1564
|
-
onMouseenter:
|
|
1575
|
+
onMouseenter: _
|
|
1565
1576
|
}, [
|
|
1566
1577
|
ne("div", {
|
|
1567
1578
|
class: Z(`${t}--logo-image`),
|
|
1568
|
-
style:
|
|
1579
|
+
style: bt(p.value)
|
|
1569
1580
|
}, null, 6)
|
|
1570
1581
|
], 34),
|
|
1571
1582
|
ne("div", {
|
|
1572
1583
|
class: Z(`${t}--collapse-button`)
|
|
1573
1584
|
}, [
|
|
1574
|
-
(g = h(i)) != null && g.enableSideMenu ? (v(), $(
|
|
1585
|
+
(g = h(i)) != null && g.enableSideMenu ? (v(), $(M, {
|
|
1575
1586
|
key: 0,
|
|
1576
1587
|
theme: "default",
|
|
1577
1588
|
shape: "square",
|
|
@@ -1603,7 +1614,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1603
1614
|
default: C(() => [
|
|
1604
1615
|
F(P, Lt(Yt(b == null ? void 0 : b.badgeProps)), {
|
|
1605
1616
|
default: C(() => [
|
|
1606
|
-
F(
|
|
1617
|
+
F(M, Ee({
|
|
1607
1618
|
theme: "default",
|
|
1608
1619
|
shape: "square",
|
|
1609
1620
|
variant: "text",
|
|
@@ -1618,7 +1629,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1618
1629
|
b != null && b.iconSrc && (b == null ? void 0 : b.iconSrc) != "" ? (v(), W("span", {
|
|
1619
1630
|
key: 0,
|
|
1620
1631
|
class: Z(`${t}--operations-icon`),
|
|
1621
|
-
style:
|
|
1632
|
+
style: bt({
|
|
1622
1633
|
width: "20px",
|
|
1623
1634
|
height: "20px",
|
|
1624
1635
|
...(G = b.buttonProps) != null && G.disabled ? {
|
|
@@ -1647,7 +1658,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1647
1658
|
_: 2
|
|
1648
1659
|
}, 1040)) : (v(), $(P, Lt(Ee({ key: 1 }, b == null ? void 0 : b.badgeProps)), {
|
|
1649
1660
|
default: C(() => [
|
|
1650
|
-
F(
|
|
1661
|
+
F(M, Ee({
|
|
1651
1662
|
theme: "default",
|
|
1652
1663
|
shape: "square",
|
|
1653
1664
|
variant: "text",
|
|
@@ -1662,7 +1673,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1662
1673
|
b != null && b.iconSrc && (b == null ? void 0 : b.iconSrc) != "" ? (v(), W("span", {
|
|
1663
1674
|
key: 0,
|
|
1664
1675
|
class: Z(`${t}--operations-icon`),
|
|
1665
|
-
style:
|
|
1676
|
+
style: bt({
|
|
1666
1677
|
width: "20px",
|
|
1667
1678
|
height: "20px",
|
|
1668
1679
|
...(G = b.buttonProps) != null && G.disabled ? {
|
|
@@ -1712,7 +1723,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1712
1723
|
})
|
|
1713
1724
|
]),
|
|
1714
1725
|
default: C(() => [
|
|
1715
|
-
F(
|
|
1726
|
+
F(M, {
|
|
1716
1727
|
theme: "default",
|
|
1717
1728
|
variant: "text",
|
|
1718
1729
|
style: { width: "150px" },
|
|
@@ -1734,7 +1745,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1734
1745
|
]),
|
|
1735
1746
|
_: 1
|
|
1736
1747
|
}, 8, ["class"]),
|
|
1737
|
-
F(
|
|
1748
|
+
F(M, {
|
|
1738
1749
|
theme: "default",
|
|
1739
1750
|
shape: "square",
|
|
1740
1751
|
variant: "text",
|
|
@@ -1792,7 +1803,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1792
1803
|
}, 8, ["class"]);
|
|
1793
1804
|
};
|
|
1794
1805
|
}
|
|
1795
|
-
}), Er = ["title"],
|
|
1806
|
+
}), Er = ["title"], Mt = /* @__PURE__ */ ue({
|
|
1796
1807
|
__name: "GLayoutSideMenuTitle",
|
|
1797
1808
|
props: {
|
|
1798
1809
|
item: {}
|
|
@@ -1807,7 +1818,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1807
1818
|
sideMenuTree: {}
|
|
1808
1819
|
},
|
|
1809
1820
|
setup(n) {
|
|
1810
|
-
const e = `${tt}__side-menu-content`, t = Ve(), o =
|
|
1821
|
+
const e = `${tt}__side-menu-content`, t = Ve(), o = ft(), a = (l) => {
|
|
1811
1822
|
if (en(l)) {
|
|
1812
1823
|
const u = wt(l, {
|
|
1813
1824
|
token: t.token,
|
|
@@ -1843,14 +1854,14 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1843
1854
|
key: 0,
|
|
1844
1855
|
name: s.icon,
|
|
1845
1856
|
size: "large"
|
|
1846
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
1857
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
1847
1858
|
key: 1,
|
|
1848
1859
|
size: "large"
|
|
1849
1860
|
}))
|
|
1850
1861
|
], 64)) : X("", !0)
|
|
1851
1862
|
]),
|
|
1852
1863
|
content: C(() => [
|
|
1853
|
-
F(
|
|
1864
|
+
F(Mt, { item: s }, null, 8, ["item"])
|
|
1854
1865
|
]),
|
|
1855
1866
|
_: 2
|
|
1856
1867
|
}, 1032, ["class", "name", "value", "onClick"])) : (v(), $(d, {
|
|
@@ -1865,14 +1876,14 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1865
1876
|
key: 0,
|
|
1866
1877
|
name: s.icon,
|
|
1867
1878
|
size: "large"
|
|
1868
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
1879
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
1869
1880
|
key: 1,
|
|
1870
1881
|
size: "large"
|
|
1871
1882
|
}))
|
|
1872
1883
|
], 64)) : X("", !0)
|
|
1873
1884
|
]),
|
|
1874
1885
|
title: C(() => [
|
|
1875
|
-
F(
|
|
1886
|
+
F(Mt, { item: s }, null, 8, ["item"])
|
|
1876
1887
|
]),
|
|
1877
1888
|
default: C(() => [
|
|
1878
1889
|
s.children ? (v(), $(i, {
|
|
@@ -1889,7 +1900,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
1889
1900
|
__name: "GLayoutSideMenu",
|
|
1890
1901
|
setup(n) {
|
|
1891
1902
|
const e = `${tt}__side-menu`;
|
|
1892
|
-
|
|
1903
|
+
ft();
|
|
1893
1904
|
const t = rt(), o = Ve(), a = V(() => o.sideMenuTree), l = V(() => o.displayMode), r = V({
|
|
1894
1905
|
get() {
|
|
1895
1906
|
return o.isSideMenuCollapse;
|
|
@@ -2006,7 +2017,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
2006
2017
|
}, {
|
|
2007
2018
|
default: C(() => [
|
|
2008
2019
|
ne("div", {
|
|
2009
|
-
style:
|
|
2020
|
+
style: bt(d(N)),
|
|
2010
2021
|
class: Z(`${t}--container-color-item`)
|
|
2011
2022
|
}, null, 6)
|
|
2012
2023
|
]),
|
|
@@ -2046,7 +2057,7 @@ const ua = { render: Lr }, Sr = { class: "username" }, Dr = /* @__PURE__ */ ue({
|
|
|
2046
2057
|
}, 8, ["class", "visible"]);
|
|
2047
2058
|
};
|
|
2048
2059
|
}
|
|
2049
|
-
}),
|
|
2060
|
+
}), ht = (n, e) => {
|
|
2050
2061
|
const t = n.__vccOpts || n;
|
|
2051
2062
|
for (const [o, a] of e)
|
|
2052
2063
|
t[o] = a;
|
|
@@ -2064,12 +2075,12 @@ function Pr(n, e) {
|
|
|
2064
2075
|
_: 3
|
|
2065
2076
|
});
|
|
2066
2077
|
}
|
|
2067
|
-
const xr = /* @__PURE__ */
|
|
2078
|
+
const xr = /* @__PURE__ */ ht(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
2068
2079
|
__name: "GLayoutSideHoverMenu",
|
|
2069
2080
|
setup(n) {
|
|
2070
2081
|
const { T: e, i18n: t } = ke();
|
|
2071
2082
|
V(() => t.global.locale.value.toLowerCase() === "zh-cn");
|
|
2072
|
-
const o = `${tt}__side-hover-menu`, a = `${tt}__side-hover-menu-content`, l =
|
|
2083
|
+
const o = `${tt}__side-hover-menu`, a = `${tt}__side-hover-menu-content`, l = ft(), r = rt(), u = Ve(), i = V(() => u.sideMenuTree), d = V(() => u.displayMode), s = V({
|
|
2073
2084
|
get: () => u.isSideHoverMenuShow,
|
|
2074
2085
|
set: (g) => u.isSideHoverMenuShow = g
|
|
2075
2086
|
}), c = V(() => {
|
|
@@ -2099,7 +2110,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2099
2110
|
}, 100);
|
|
2100
2111
|
}
|
|
2101
2112
|
const E = Y(!1), D = Y([]), L = Y("");
|
|
2102
|
-
function
|
|
2113
|
+
function _(g) {
|
|
2103
2114
|
E.value = !1, L.value = "", setTimeout(() => {
|
|
2104
2115
|
g && g.children && (E.value = !0, D.value = [...g.children], L.value = g.name);
|
|
2105
2116
|
}, 100);
|
|
@@ -2113,23 +2124,23 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2113
2124
|
g || (p.value = !1, E.value = !1, N.value = "", L.value = "");
|
|
2114
2125
|
}
|
|
2115
2126
|
);
|
|
2116
|
-
const m = Y(null), w = Y(null),
|
|
2127
|
+
const m = Y(null), w = Y(null), M = Y(null);
|
|
2117
2128
|
Co(
|
|
2118
2129
|
w,
|
|
2119
2130
|
() => {
|
|
2120
2131
|
p.value = !1;
|
|
2121
2132
|
},
|
|
2122
2133
|
{
|
|
2123
|
-
ignore: [m,
|
|
2134
|
+
ignore: [m, M, w],
|
|
2124
2135
|
capture: !1
|
|
2125
2136
|
}
|
|
2126
2137
|
), Co(
|
|
2127
|
-
|
|
2138
|
+
M,
|
|
2128
2139
|
() => {
|
|
2129
2140
|
E.value = !1;
|
|
2130
2141
|
},
|
|
2131
2142
|
{
|
|
2132
|
-
ignore: [m,
|
|
2143
|
+
ignore: [m, M, w],
|
|
2133
2144
|
capture: !1
|
|
2134
2145
|
}
|
|
2135
2146
|
);
|
|
@@ -2196,7 +2207,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2196
2207
|
name: J.path,
|
|
2197
2208
|
value: J.path,
|
|
2198
2209
|
key: J.name,
|
|
2199
|
-
onClick: (
|
|
2210
|
+
onClick: (Me) => f(J.path)
|
|
2200
2211
|
}, {
|
|
2201
2212
|
icon: C(() => [
|
|
2202
2213
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2204,14 +2215,14 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2204
2215
|
key: 0,
|
|
2205
2216
|
name: J.icon,
|
|
2206
2217
|
size: "large"
|
|
2207
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
2218
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
2208
2219
|
key: 1,
|
|
2209
2220
|
size: "large"
|
|
2210
2221
|
}))
|
|
2211
2222
|
], 64)) : X("", !0)
|
|
2212
2223
|
]),
|
|
2213
2224
|
content: C(() => [
|
|
2214
|
-
F(
|
|
2225
|
+
F(Mt, { item: J }, null, 8, ["item"])
|
|
2215
2226
|
]),
|
|
2216
2227
|
_: 2
|
|
2217
2228
|
}, 1032, ["class", "name", "value", "onClick"])) : (v(), $(H, {
|
|
@@ -2228,7 +2239,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2228
2239
|
visible: !1,
|
|
2229
2240
|
overlayInnerClassName: `${a}--popup`
|
|
2230
2241
|
},
|
|
2231
|
-
onMouseenter: (
|
|
2242
|
+
onMouseenter: (Me) => j(J)
|
|
2232
2243
|
}, {
|
|
2233
2244
|
icon: C(() => [
|
|
2234
2245
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2236,14 +2247,14 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2236
2247
|
key: 0,
|
|
2237
2248
|
name: J.icon,
|
|
2238
2249
|
size: "large"
|
|
2239
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
2250
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
2240
2251
|
key: 1,
|
|
2241
2252
|
size: "large"
|
|
2242
2253
|
}))
|
|
2243
2254
|
], 64)) : X("", !0)
|
|
2244
2255
|
]),
|
|
2245
2256
|
title: C(() => [
|
|
2246
|
-
F(
|
|
2257
|
+
F(Mt, { item: J }, null, 8, ["item"])
|
|
2247
2258
|
]),
|
|
2248
2259
|
_: 2
|
|
2249
2260
|
}, 1032, ["class", "name", "value", "popup-props", "onMouseenter"]))
|
|
@@ -2287,7 +2298,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2287
2298
|
name: J.path,
|
|
2288
2299
|
value: J.path,
|
|
2289
2300
|
key: J.name,
|
|
2290
|
-
onClick: (
|
|
2301
|
+
onClick: (Me) => f(J.path),
|
|
2291
2302
|
onMouseenter: I
|
|
2292
2303
|
}, {
|
|
2293
2304
|
icon: C(() => [
|
|
@@ -2296,14 +2307,14 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2296
2307
|
key: 0,
|
|
2297
2308
|
name: J.icon,
|
|
2298
2309
|
size: "large"
|
|
2299
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
2310
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
2300
2311
|
key: 1,
|
|
2301
2312
|
size: "large"
|
|
2302
2313
|
}))
|
|
2303
2314
|
], 64)) : X("", !0)
|
|
2304
2315
|
]),
|
|
2305
2316
|
content: C(() => [
|
|
2306
|
-
F(
|
|
2317
|
+
F(Mt, { item: J }, null, 8, ["item"])
|
|
2307
2318
|
]),
|
|
2308
2319
|
_: 2
|
|
2309
2320
|
}, 1032, ["class", "name", "value", "onClick"])) : (v(), $(H, {
|
|
@@ -2320,7 +2331,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2320
2331
|
visible: !1,
|
|
2321
2332
|
overlayInnerClassName: `${a}--popup`
|
|
2322
2333
|
},
|
|
2323
|
-
onMouseenter: (
|
|
2334
|
+
onMouseenter: (Me) => _(J)
|
|
2324
2335
|
}, {
|
|
2325
2336
|
icon: C(() => [
|
|
2326
2337
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2328,14 +2339,14 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2328
2339
|
key: 0,
|
|
2329
2340
|
name: J.icon,
|
|
2330
2341
|
size: "large"
|
|
2331
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
2342
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
2332
2343
|
key: 1,
|
|
2333
2344
|
size: "large"
|
|
2334
2345
|
}))
|
|
2335
2346
|
], 64)) : X("", !0)
|
|
2336
2347
|
]),
|
|
2337
2348
|
title: C(() => [
|
|
2338
|
-
F(
|
|
2349
|
+
F(Mt, { item: J }, null, 8, ["item"])
|
|
2339
2350
|
]),
|
|
2340
2351
|
_: 2
|
|
2341
2352
|
}, 1032, ["class", "name", "value", "popup-props", "onMouseenter"]))
|
|
@@ -2361,7 +2372,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2361
2372
|
default: C(() => [
|
|
2362
2373
|
F(ae, {
|
|
2363
2374
|
ref_key: "sideMenuLevel3Ref",
|
|
2364
|
-
ref:
|
|
2375
|
+
ref: M,
|
|
2365
2376
|
width: "100%",
|
|
2366
2377
|
theme: d.value,
|
|
2367
2378
|
value: c.value,
|
|
@@ -2379,7 +2390,7 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2379
2390
|
name: J.path,
|
|
2380
2391
|
value: J.path,
|
|
2381
2392
|
key: J.name,
|
|
2382
|
-
onClick: (
|
|
2393
|
+
onClick: (Me) => f(J.path)
|
|
2383
2394
|
}, {
|
|
2384
2395
|
icon: C(() => [
|
|
2385
2396
|
J.level == 1 ? (v(), W(de, { key: 0 }, [
|
|
@@ -2387,14 +2398,14 @@ const xr = /* @__PURE__ */ pt(Br, [["render", Pr]]), Vr = /* @__PURE__ */ ue({
|
|
|
2387
2398
|
key: 0,
|
|
2388
2399
|
name: J.icon,
|
|
2389
2400
|
size: "large"
|
|
2390
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
2401
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
2391
2402
|
key: 1,
|
|
2392
2403
|
size: "large"
|
|
2393
2404
|
}))
|
|
2394
2405
|
], 64)) : X("", !0)
|
|
2395
2406
|
]),
|
|
2396
2407
|
content: C(() => [
|
|
2397
|
-
F(
|
|
2408
|
+
F(Mt, { item: J }, null, 8, ["item"])
|
|
2398
2409
|
]),
|
|
2399
2410
|
_: 2
|
|
2400
2411
|
}, 1032, ["class", "name", "value", "onClick"])) : X("", !0)
|
|
@@ -2683,22 +2694,22 @@ const Gt = (n) => {
|
|
|
2683
2694
|
onSuccess: c = On,
|
|
2684
2695
|
onError: f = On
|
|
2685
2696
|
}) => {
|
|
2686
|
-
var
|
|
2697
|
+
var _;
|
|
2687
2698
|
const p = Fo(e, n) || "file", y = Fo(t, n), N = Be.getItem(Xt), j = r ? `${Tn.pieceUploadFiles}?sessionId=${N}` : `${Tn.baseUploadFile}?sessionId=${N}`, E = [];
|
|
2688
2699
|
function D(I, m) {
|
|
2689
2700
|
let w = 0;
|
|
2690
|
-
E.forEach((
|
|
2691
|
-
w +=
|
|
2701
|
+
E.forEach((M) => {
|
|
2702
|
+
w += M;
|
|
2692
2703
|
}), I = w > 0 ? gn.round(w / l, 2) : 0, s(I, m);
|
|
2693
2704
|
}
|
|
2694
2705
|
function L(I, m) {
|
|
2695
|
-
let w = 0,
|
|
2706
|
+
let w = 0, M = 0, U = !1, P = [];
|
|
2696
2707
|
const k = I.length, x = async () => {
|
|
2697
2708
|
if (U)
|
|
2698
2709
|
return;
|
|
2699
2710
|
const A = I.shift();
|
|
2700
2711
|
if (A) {
|
|
2701
|
-
const T =
|
|
2712
|
+
const T = M++, B = new XMLHttpRequest();
|
|
2702
2713
|
a && (B.withCredentials = !0), B.upload.onprogress = (g) => {
|
|
2703
2714
|
const b = g.total > 0 ? gn.round(g.loaded / g.total, 2) : 0;
|
|
2704
2715
|
E[T] = g.loaded, D(b, g);
|
|
@@ -2729,16 +2740,16 @@ const Gt = (n) => {
|
|
|
2729
2740
|
}
|
|
2730
2741
|
if (r && u) {
|
|
2731
2742
|
let I = [];
|
|
2732
|
-
for (let
|
|
2733
|
-
const U = (
|
|
2743
|
+
for (let M = 0; M < l; M = M + d) {
|
|
2744
|
+
const U = (_ = n.file) == null ? void 0 : _.slice(M, Math.min(M + d, l));
|
|
2734
2745
|
I.push(U);
|
|
2735
2746
|
}
|
|
2736
|
-
const m = I == null ? void 0 : I.map((
|
|
2747
|
+
const m = I == null ? void 0 : I.map((M, U) => {
|
|
2737
2748
|
const P = new FormData(), k = {
|
|
2738
2749
|
key: u,
|
|
2739
2750
|
end: U == I.length - 1,
|
|
2740
2751
|
index: U,
|
|
2741
|
-
piece:
|
|
2752
|
+
piece: M
|
|
2742
2753
|
};
|
|
2743
2754
|
if (y)
|
|
2744
2755
|
for (const x of Object.keys(y))
|
|
@@ -2750,17 +2761,17 @@ const Gt = (n) => {
|
|
|
2750
2761
|
let w = [];
|
|
2751
2762
|
try {
|
|
2752
2763
|
w = L(m, i ?? 1);
|
|
2753
|
-
} catch (
|
|
2754
|
-
f(
|
|
2764
|
+
} catch (M) {
|
|
2765
|
+
f(M);
|
|
2755
2766
|
}
|
|
2756
2767
|
return w;
|
|
2757
2768
|
} else {
|
|
2758
2769
|
const I = new XMLHttpRequest();
|
|
2759
2770
|
a && (I.withCredentials = a), I.upload.onprogress = (w) => {
|
|
2760
|
-
const
|
|
2761
|
-
s(
|
|
2762
|
-
}, I.onerror = function(
|
|
2763
|
-
f(
|
|
2771
|
+
const M = w.total > 0 ? gn.round(w.loaded / w.total, 2) : 0;
|
|
2772
|
+
s(M, w);
|
|
2773
|
+
}, I.onerror = function(M) {
|
|
2774
|
+
f(M);
|
|
2764
2775
|
}, I.onload = () => {
|
|
2765
2776
|
if (I.status < 200 || I.status >= 300) {
|
|
2766
2777
|
f(Gt(I));
|
|
@@ -3145,7 +3156,7 @@ const Gt = (n) => {
|
|
|
3145
3156
|
};
|
|
3146
3157
|
}
|
|
3147
3158
|
});
|
|
3148
|
-
const va = /* @__PURE__ */
|
|
3159
|
+
const va = /* @__PURE__ */ ht(Zr, [["__scopeId", "data-v-8a486150"]]), Jr = /* @__PURE__ */ ue({
|
|
3149
3160
|
__name: "GUploaderListItem",
|
|
3150
3161
|
props: {
|
|
3151
3162
|
file: {
|
|
@@ -3613,7 +3624,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3613
3624
|
download: y,
|
|
3614
3625
|
showLink: N,
|
|
3615
3626
|
showButtonProgress: j
|
|
3616
|
-
} = Za(o), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), L = Y([]),
|
|
3627
|
+
} = Za(o), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), L = Y([]), _ = V(() => o.directory ? L.value.length ? ha(L.value) : { fileId: "" } : { fileId: "" }), I = V(() => o.limit > 0 && L.value.length >= o.limit), m = V(() => o.buttonText ? o.buttonText : o.directory ? I.value ? `${t.t("重新选择")}` : `${t.t("上传文件夹")}` : I.value ? `${t.t("重新选择")}` : `${t.t("上传文件")}`), w = (g) => {
|
|
3617
3628
|
E.clear();
|
|
3618
3629
|
const b = g == null ? void 0 : g.map((z, G) => {
|
|
3619
3630
|
const H = z.status ? z.status : z.url ? "done" : "error", ae = $n({
|
|
@@ -3633,7 +3644,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3633
3644
|
},
|
|
3634
3645
|
{ immediate: !0, deep: !0 }
|
|
3635
3646
|
);
|
|
3636
|
-
const
|
|
3647
|
+
const M = (g) => {
|
|
3637
3648
|
a("update:fileList", L.value), a("change", L.value, g);
|
|
3638
3649
|
}, U = async (g) => {
|
|
3639
3650
|
const b = await Hr({
|
|
@@ -3647,26 +3658,26 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3647
3658
|
const b = ((Re = g.file) == null ? void 0 : Re.size) ?? 1, z = b > o.largeLimit;
|
|
3648
3659
|
let G = "";
|
|
3649
3660
|
z && (G = await U(g.file));
|
|
3650
|
-
const H = (
|
|
3661
|
+
const H = (_e, ge) => {
|
|
3651
3662
|
const Ie = E.get(g.fileId);
|
|
3652
|
-
Ie && (Ie.status = "uploading", Ie.percent =
|
|
3653
|
-
}, ae = z ? (
|
|
3663
|
+
Ie && (Ie.status = "uploading", Ie.percent = _e, a("progress", Ie, ge));
|
|
3664
|
+
}, ae = z ? (_e) => {
|
|
3654
3665
|
const ge = E.get(g.fileId);
|
|
3655
|
-
ge && G != "" &&
|
|
3666
|
+
ge && G != "" && _e.every((Ie) => Ie.state == 200) ? Promise.resolve(
|
|
3656
3667
|
Kr({
|
|
3657
3668
|
key: G
|
|
3658
3669
|
}).then((Ie) => {
|
|
3659
|
-
Ie.state == 200 ? (D.delete(ge.fileId), ge.status = "done", ge.percent = 1, ge.response = Ie, ge.url = Ie.data.url, a("success", ge),
|
|
3670
|
+
Ie.state == 200 ? (D.delete(ge.fileId), ge.status = "done", ge.percent = 1, ge.response = Ie, ge.url = Ie.data.url, a("success", ge), M(ge)) : me(_e);
|
|
3660
3671
|
}).catch(() => {
|
|
3661
|
-
me(
|
|
3672
|
+
me(_e);
|
|
3662
3673
|
})
|
|
3663
|
-
) : me(
|
|
3664
|
-
} : (
|
|
3674
|
+
) : me(_e);
|
|
3675
|
+
} : (_e) => {
|
|
3665
3676
|
const ge = E.get(g.fileId);
|
|
3666
|
-
ge && (
|
|
3667
|
-
}, me = (
|
|
3677
|
+
ge && (_e.state == 200 ? (ge.status = "done", ge.percent = 1, ge.response = _e, D.delete(ge.fileId), ge.url = _e.data.url, M(ge), a("success", ge)) : me(_e));
|
|
3678
|
+
}, me = (_e) => {
|
|
3668
3679
|
const ge = E.get(g.fileId);
|
|
3669
|
-
console.warn("上传报错",
|
|
3680
|
+
console.warn("上传报错", _e, ge), ge && (ge.status = "error", ge.percent = 0, ge.response = _e, D.delete(ge.fileId), a("error", ge), M(ge));
|
|
3670
3681
|
}, J = {
|
|
3671
3682
|
fileItem: g,
|
|
3672
3683
|
action: o.action,
|
|
@@ -3684,8 +3695,8 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3684
3695
|
onError: me
|
|
3685
3696
|
};
|
|
3686
3697
|
g.status = "uploading", g.percent = 0;
|
|
3687
|
-
const
|
|
3688
|
-
D.set(g.fileId,
|
|
3698
|
+
const Me = Dt(o.customRequest) ? o.customRequest(J) : Wr(J);
|
|
3699
|
+
D.set(g.fileId, Me);
|
|
3689
3700
|
}, k = (g) => {
|
|
3690
3701
|
var z;
|
|
3691
3702
|
const b = D.get(g.fileId);
|
|
@@ -3696,11 +3707,11 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3696
3707
|
(ae = H.abort) == null || ae.call(H);
|
|
3697
3708
|
});
|
|
3698
3709
|
const G = E.get(g.fileId);
|
|
3699
|
-
G && (G.status = "error", G.percent = 0,
|
|
3710
|
+
G && (G.status = "error", G.percent = 0, M(G));
|
|
3700
3711
|
} else {
|
|
3701
3712
|
(z = b == null ? void 0 : b.abort) == null || z.call(b), D.delete(g.fileId);
|
|
3702
3713
|
const G = E.get(g.fileId);
|
|
3703
|
-
G && (G.status = "error", G.percent = 0,
|
|
3714
|
+
G && (G.status = "error", G.percent = 0, M(G));
|
|
3704
3715
|
}
|
|
3705
3716
|
}, x = async (g, b) => {
|
|
3706
3717
|
const z = `${Zt(10)}-${g.name}`, G = void 0, H = $n({
|
|
@@ -3713,7 +3724,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3713
3724
|
percent: 0,
|
|
3714
3725
|
fileUploadType: "file"
|
|
3715
3726
|
});
|
|
3716
|
-
E.set(z, H), L.value = [...L.value, H],
|
|
3727
|
+
E.set(z, H), L.value = [...L.value, H], M(H), o.autoUpload && P(H);
|
|
3717
3728
|
}, S = (g) => {
|
|
3718
3729
|
if (o.limit > 0 && L.value.length + g.length > o.limit) {
|
|
3719
3730
|
if (L.value.length > g.length)
|
|
@@ -3730,7 +3741,7 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3730
3741
|
}) : x(z);
|
|
3731
3742
|
}
|
|
3732
3743
|
}, A = (g) => {
|
|
3733
|
-
L.value = L.value.filter((b) => b.fileId !== g.fileId),
|
|
3744
|
+
L.value = L.value.filter((b) => b.fileId !== g.fileId), M(g);
|
|
3734
3745
|
}, T = (g) => {
|
|
3735
3746
|
Dt(o.onBeforeRemove) ? Promise.resolve(o.onBeforeRemove(g)).then((b) => {
|
|
3736
3747
|
b && A(g);
|
|
@@ -3788,9 +3799,9 @@ const ns = /* @__PURE__ */ ue({
|
|
|
3788
3799
|
size: "small"
|
|
3789
3800
|
}, {
|
|
3790
3801
|
default: C(() => [
|
|
3791
|
-
n.directory ? n.directory &&
|
|
3802
|
+
n.directory ? n.directory && _.value ? (v(), $(ts, {
|
|
3792
3803
|
key: 1,
|
|
3793
|
-
fileTree:
|
|
3804
|
+
fileTree: _.value
|
|
3794
3805
|
}, null, 8, ["fileTree"])) : X("", !0) : (v(), $(es, {
|
|
3795
3806
|
key: 0,
|
|
3796
3807
|
fileList: L.value,
|
|
@@ -3841,7 +3852,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3841
3852
|
trigger: "click",
|
|
3842
3853
|
placement: "bottom-right",
|
|
3843
3854
|
visible: a.value,
|
|
3844
|
-
"onUpdate:visible": y[2] || (y[2] = (
|
|
3855
|
+
"onUpdate:visible": y[2] || (y[2] = (_) => a.value = _),
|
|
3845
3856
|
onVisibleChange: r
|
|
3846
3857
|
}, {
|
|
3847
3858
|
content: C(() => [
|
|
@@ -3864,7 +3875,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3864
3875
|
}, 8, ["checked", "indeterminate"]),
|
|
3865
3876
|
F(E, {
|
|
3866
3877
|
modelValue: l.value,
|
|
3867
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
3878
|
+
"onUpdate:modelValue": y[0] || (y[0] = (_) => l.value = _),
|
|
3868
3879
|
options: p.columnOptions
|
|
3869
3880
|
}, null, 8, ["modelValue", "options"])
|
|
3870
3881
|
]),
|
|
@@ -3874,7 +3885,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3874
3885
|
F(N, {
|
|
3875
3886
|
theme: "default",
|
|
3876
3887
|
size: "small",
|
|
3877
|
-
onClick: y[1] || (y[1] = (
|
|
3888
|
+
onClick: y[1] || (y[1] = (_) => u(!0))
|
|
3878
3889
|
}, {
|
|
3879
3890
|
default: C(() => [
|
|
3880
3891
|
re(te(h(o).t("重置")), 1)
|
|
@@ -3911,7 +3922,7 @@ const Xn = Ye(ns), os = { class: "display-column-checkbox" }, as = { class: "foo
|
|
|
3911
3922
|
};
|
|
3912
3923
|
}
|
|
3913
3924
|
});
|
|
3914
|
-
const rs = /* @__PURE__ */
|
|
3925
|
+
const rs = /* @__PURE__ */ ht(ls, [["__scopeId", "data-v-05da5ebe"]]), ss = Ye(rs), is = /* @__PURE__ */ ue({
|
|
3915
3926
|
__name: "GSettingDialog",
|
|
3916
3927
|
props: {
|
|
3917
3928
|
visible: { type: Boolean },
|
|
@@ -3976,7 +3987,7 @@ const rs = /* @__PURE__ */ pt(ls, [["__scopeId", "data-v-05da5ebe"]]), ss = Ye(r
|
|
|
3976
3987
|
}, {
|
|
3977
3988
|
default: C(() => [
|
|
3978
3989
|
ne("div", {
|
|
3979
|
-
style:
|
|
3990
|
+
style: bt(u(y)),
|
|
3980
3991
|
class: "color-item"
|
|
3981
3992
|
}, null, 4)
|
|
3982
3993
|
]),
|
|
@@ -4046,11 +4057,22 @@ const Ic = Ye(is), jt = {
|
|
|
4046
4057
|
}, ga = (n) => Ze.get(jt.getOneView, n), tn = (n) => Ze.post(jt.getBoardData, n), ya = (n) => Ze.post(jt.confirm, n), us = (n) => Ze.post(jt.batch, n), cs = (n) => Ze.post(jt.activeFile, n), ds = (n) => Ze.post(jt.downloadFile, n), ms = /* @__PURE__ */ ue({
|
|
4047
4058
|
__name: "GFormLabel",
|
|
4048
4059
|
props: {
|
|
4049
|
-
modelValue: {},
|
|
4050
|
-
formItem: {}
|
|
4060
|
+
modelValue: { default: "" },
|
|
4061
|
+
formItem: {},
|
|
4062
|
+
formModel: { default: () => ({}) }
|
|
4051
4063
|
},
|
|
4052
4064
|
setup(n) {
|
|
4053
|
-
const e = n, t = V(() => e.formItem.keyName), o = V(() =>
|
|
4065
|
+
const e = n, t = V(() => e.formItem.keyName), o = V(() => {
|
|
4066
|
+
if (e.formItem.value !== "")
|
|
4067
|
+
try {
|
|
4068
|
+
return dt.render(e.formItem.value, { item: e.formModel });
|
|
4069
|
+
} catch (a) {
|
|
4070
|
+
console.error("GTable returnValue Error", a);
|
|
4071
|
+
}
|
|
4072
|
+
else if ((t.value === "startTime" || t.value === "endTime") && typeof e.modelValue == "number")
|
|
4073
|
+
return ct(e.modelValue).format("YYYY/MM/DD HH:mm:ss");
|
|
4074
|
+
return e.modelValue;
|
|
4075
|
+
});
|
|
4054
4076
|
return (a, l) => {
|
|
4055
4077
|
const r = Q("t-tag");
|
|
4056
4078
|
return v(), $(r, { class: "g-label" }, {
|
|
@@ -4062,7 +4084,7 @@ const Ic = Ye(is), jt = {
|
|
|
4062
4084
|
};
|
|
4063
4085
|
}
|
|
4064
4086
|
});
|
|
4065
|
-
const ba = /* @__PURE__ */
|
|
4087
|
+
const ba = /* @__PURE__ */ ht(ms, [["__scopeId", "data-v-b9a9d3f9"]]), Zn = /* @__PURE__ */ ue({
|
|
4066
4088
|
__name: "GFormInput",
|
|
4067
4089
|
props: {
|
|
4068
4090
|
inputType: {},
|
|
@@ -4468,6 +4490,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4468
4490
|
multiple: N.multiple,
|
|
4469
4491
|
"min-collapsed-num": 2,
|
|
4470
4492
|
disabled: N.disabled,
|
|
4493
|
+
filterable: !0,
|
|
4471
4494
|
clearable: !0,
|
|
4472
4495
|
onChange: s,
|
|
4473
4496
|
onBlur: c
|
|
@@ -4478,7 +4501,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4478
4501
|
], 512);
|
|
4479
4502
|
};
|
|
4480
4503
|
}
|
|
4481
|
-
}),
|
|
4504
|
+
}), Ma = /* @__PURE__ */ ue({
|
|
4482
4505
|
__name: "GFormSelectDateTime",
|
|
4483
4506
|
props: {
|
|
4484
4507
|
modelValue: {},
|
|
@@ -4499,7 +4522,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4499
4522
|
() => t.modelValue,
|
|
4500
4523
|
() => {
|
|
4501
4524
|
var s;
|
|
4502
|
-
if (t.modelValue == 0 ||
|
|
4525
|
+
if (t.modelValue == 0 || mt(t.modelValue))
|
|
4503
4526
|
return "";
|
|
4504
4527
|
t.modelValue && ((s = t.formItem) == null ? void 0 : s.itemType) == "time_selector" ? a.value = ct(t.modelValue).format("HH:mm:ss") : a.value = t.modelValue;
|
|
4505
4528
|
},
|
|
@@ -4547,7 +4570,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4547
4570
|
"enable-time-picker": ((E = s.formItem) == null ? void 0 : E.itemType) === "date_time_selector",
|
|
4548
4571
|
placeholder: s.placeholder,
|
|
4549
4572
|
modelValue: a.value,
|
|
4550
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
4573
|
+
"onUpdate:modelValue": c[0] || (c[0] = (_) => a.value = _),
|
|
4551
4574
|
format: s.formItem.format || "YYYY-MM-DD HH:mm",
|
|
4552
4575
|
valueType: "time-stamp",
|
|
4553
4576
|
disabled: s.disabled,
|
|
@@ -4560,7 +4583,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4560
4583
|
placeholder: s.placeholder,
|
|
4561
4584
|
disabled: s.disabled,
|
|
4562
4585
|
modelValue: a.value,
|
|
4563
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
4586
|
+
"onUpdate:modelValue": c[1] || (c[1] = (_) => a.value = _),
|
|
4564
4587
|
onChange: r,
|
|
4565
4588
|
onBlur: u,
|
|
4566
4589
|
format: ((L = s.formItem) == null ? void 0 : L.format) || "HH:mm:ss",
|
|
@@ -4574,7 +4597,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4574
4597
|
], 512);
|
|
4575
4598
|
};
|
|
4576
4599
|
}
|
|
4577
|
-
}),
|
|
4600
|
+
}), _a = /* @__PURE__ */ ue({
|
|
4578
4601
|
__name: "GFormTreeCheckBox",
|
|
4579
4602
|
props: {
|
|
4580
4603
|
modelValue: {},
|
|
@@ -4790,7 +4813,7 @@ const Ca = /* @__PURE__ */ ue({
|
|
|
4790
4813
|
}
|
|
4791
4814
|
);
|
|
4792
4815
|
function r(d) {
|
|
4793
|
-
const s =
|
|
4816
|
+
const s = _n(d);
|
|
4794
4817
|
if (o.formItem.fileUploadType == "file")
|
|
4795
4818
|
if (s.length && s.every((c) => c.status == "done")) {
|
|
4796
4819
|
const { response: c, filename: f, url: p } = s[0];
|
|
@@ -4855,9 +4878,9 @@ var Sa = { exports: {} };
|
|
|
4855
4878
|
n.exports = o();
|
|
4856
4879
|
})(vs, function() {
|
|
4857
4880
|
var t, o, a = 1e3, l = 6e4, r = 36e5, u = 864e5, i = /\[([^\]]+)]|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, d = 31536e6, s = 2628e6, c = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, f = { years: d, months: s, days: u, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, p = function(m) {
|
|
4858
|
-
return m instanceof
|
|
4859
|
-
}, y = function(m, w,
|
|
4860
|
-
return new
|
|
4881
|
+
return m instanceof _;
|
|
4882
|
+
}, y = function(m, w, M) {
|
|
4883
|
+
return new _(m, M, w.$l);
|
|
4861
4884
|
}, N = function(m) {
|
|
4862
4885
|
return o.p(m) + "s";
|
|
4863
4886
|
}, j = function(m) {
|
|
@@ -4868,19 +4891,19 @@ var Sa = { exports: {} };
|
|
|
4868
4891
|
return Math.abs(m);
|
|
4869
4892
|
}, L = function(m, w) {
|
|
4870
4893
|
return m ? j(m) ? { negative: !0, format: "" + D(m) + w } : { negative: !1, format: "" + m + w } : { negative: !1, format: "" };
|
|
4871
|
-
},
|
|
4872
|
-
function m(
|
|
4894
|
+
}, _ = function() {
|
|
4895
|
+
function m(M, U, P) {
|
|
4873
4896
|
var k = this;
|
|
4874
|
-
if (this.$d = {}, this.$l = P,
|
|
4875
|
-
return y(
|
|
4876
|
-
if (typeof
|
|
4877
|
-
return this.$ms =
|
|
4878
|
-
if (typeof
|
|
4879
|
-
return Object.keys(
|
|
4880
|
-
k.$d[N(A)] =
|
|
4897
|
+
if (this.$d = {}, this.$l = P, M === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), U)
|
|
4898
|
+
return y(M * f[N(U)], this);
|
|
4899
|
+
if (typeof M == "number")
|
|
4900
|
+
return this.$ms = M, this.parseFromMilliseconds(), this;
|
|
4901
|
+
if (typeof M == "object")
|
|
4902
|
+
return Object.keys(M).forEach(function(A) {
|
|
4903
|
+
k.$d[N(A)] = M[A];
|
|
4881
4904
|
}), this.calMilliseconds(), this;
|
|
4882
|
-
if (typeof
|
|
4883
|
-
var x =
|
|
4905
|
+
if (typeof M == "string") {
|
|
4906
|
+
var x = M.match(c);
|
|
4884
4907
|
if (x) {
|
|
4885
4908
|
var S = x.slice(2).map(function(A) {
|
|
4886
4909
|
return A != null ? Number(A) : 0;
|
|
@@ -4892,44 +4915,44 @@ var Sa = { exports: {} };
|
|
|
4892
4915
|
}
|
|
4893
4916
|
var w = m.prototype;
|
|
4894
4917
|
return w.calMilliseconds = function() {
|
|
4895
|
-
var
|
|
4918
|
+
var M = this;
|
|
4896
4919
|
this.$ms = Object.keys(this.$d).reduce(function(U, P) {
|
|
4897
|
-
return U + (
|
|
4920
|
+
return U + (M.$d[P] || 0) * f[P];
|
|
4898
4921
|
}, 0);
|
|
4899
4922
|
}, w.parseFromMilliseconds = function() {
|
|
4900
|
-
var
|
|
4901
|
-
this.$d.years = E(
|
|
4923
|
+
var M = this.$ms;
|
|
4924
|
+
this.$d.years = E(M / d), M %= d, this.$d.months = E(M / s), M %= s, this.$d.days = E(M / u), M %= u, this.$d.hours = E(M / r), M %= r, this.$d.minutes = E(M / l), M %= l, this.$d.seconds = E(M / a), M %= a, this.$d.milliseconds = M;
|
|
4902
4925
|
}, w.toISOString = function() {
|
|
4903
|
-
var
|
|
4926
|
+
var M = L(this.$d.years, "Y"), U = L(this.$d.months, "M"), P = +this.$d.days || 0;
|
|
4904
4927
|
this.$d.weeks && (P += 7 * this.$d.weeks);
|
|
4905
4928
|
var k = L(P, "D"), x = L(this.$d.hours, "H"), S = L(this.$d.minutes, "M"), A = this.$d.seconds || 0;
|
|
4906
4929
|
this.$d.milliseconds && (A += this.$d.milliseconds / 1e3, A = Math.round(1e3 * A) / 1e3);
|
|
4907
|
-
var T = L(A, "S"), B =
|
|
4930
|
+
var T = L(A, "S"), B = M.negative || U.negative || k.negative || x.negative || S.negative || T.negative, g = x.format || S.format || T.format ? "T" : "", b = (B ? "-" : "") + "P" + M.format + U.format + k.format + g + x.format + S.format + T.format;
|
|
4908
4931
|
return b === "P" || b === "-P" ? "P0D" : b;
|
|
4909
4932
|
}, w.toJSON = function() {
|
|
4910
4933
|
return this.toISOString();
|
|
4911
|
-
}, w.format = function(
|
|
4912
|
-
var U =
|
|
4934
|
+
}, w.format = function(M) {
|
|
4935
|
+
var U = M || "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") };
|
|
4913
4936
|
return U.replace(i, function(k, x) {
|
|
4914
4937
|
return x || String(P[k]);
|
|
4915
4938
|
});
|
|
4916
|
-
}, w.as = function(
|
|
4917
|
-
return this.$ms / f[N(
|
|
4918
|
-
}, w.get = function(
|
|
4919
|
-
var U = this.$ms, P = N(
|
|
4939
|
+
}, w.as = function(M) {
|
|
4940
|
+
return this.$ms / f[N(M)];
|
|
4941
|
+
}, w.get = function(M) {
|
|
4942
|
+
var U = this.$ms, P = N(M);
|
|
4920
4943
|
return P === "milliseconds" ? U %= 1e3 : U = P === "weeks" ? E(U / f[P]) : this.$d[P], U || 0;
|
|
4921
|
-
}, w.add = function(
|
|
4944
|
+
}, w.add = function(M, U, P) {
|
|
4922
4945
|
var k;
|
|
4923
|
-
return k = U ?
|
|
4924
|
-
}, w.subtract = function(
|
|
4925
|
-
return this.add(
|
|
4926
|
-
}, w.locale = function(
|
|
4946
|
+
return k = U ? M * f[N(U)] : p(M) ? M.$ms : y(M, this).$ms, y(this.$ms + k * (P ? -1 : 1), this);
|
|
4947
|
+
}, w.subtract = function(M, U) {
|
|
4948
|
+
return this.add(M, U, !0);
|
|
4949
|
+
}, w.locale = function(M) {
|
|
4927
4950
|
var U = this.clone();
|
|
4928
|
-
return U.$l =
|
|
4951
|
+
return U.$l = M, U;
|
|
4929
4952
|
}, w.clone = function() {
|
|
4930
4953
|
return y(this.$ms, this);
|
|
4931
|
-
}, w.humanize = function(
|
|
4932
|
-
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!
|
|
4954
|
+
}, w.humanize = function(M) {
|
|
4955
|
+
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!M);
|
|
4933
4956
|
}, w.valueOf = function() {
|
|
4934
4957
|
return this.asMilliseconds();
|
|
4935
4958
|
}, w.milliseconds = function() {
|
|
@@ -4965,14 +4988,14 @@ var Sa = { exports: {} };
|
|
|
4965
4988
|
}, w.asYears = function() {
|
|
4966
4989
|
return this.as("years");
|
|
4967
4990
|
}, m;
|
|
4968
|
-
}(), I = function(m, w,
|
|
4969
|
-
return m.add(w.years() *
|
|
4991
|
+
}(), I = function(m, w, M) {
|
|
4992
|
+
return m.add(w.years() * M, "y").add(w.months() * M, "M").add(w.days() * M, "d").add(w.hours() * M, "h").add(w.minutes() * M, "m").add(w.seconds() * M, "s").add(w.milliseconds() * M, "ms");
|
|
4970
4993
|
};
|
|
4971
|
-
return function(m, w,
|
|
4972
|
-
t =
|
|
4973
|
-
var S =
|
|
4994
|
+
return function(m, w, M) {
|
|
4995
|
+
t = M, o = M().$utils(), M.duration = function(k, x) {
|
|
4996
|
+
var S = M.locale();
|
|
4974
4997
|
return y(k, { $l: S }, x);
|
|
4975
|
-
},
|
|
4998
|
+
}, M.isDuration = p;
|
|
4976
4999
|
var U = w.prototype.add, P = w.prototype.subtract;
|
|
4977
5000
|
w.prototype.add = function(k, x) {
|
|
4978
5001
|
return p(k) ? I(this, k, 1) : U.bind(this)(k, x);
|
|
@@ -5003,7 +5026,7 @@ const bs = /* @__PURE__ */ gs(ys), ws = /* @__PURE__ */ ue({
|
|
|
5003
5026
|
De(
|
|
5004
5027
|
() => t.modelValue,
|
|
5005
5028
|
() => {
|
|
5006
|
-
t.modelValue == 0 ||
|
|
5029
|
+
t.modelValue == 0 || mt(t.modelValue) ? a.value = "" : a.value = ct.duration(t.modelValue).format("HH:mm:ss");
|
|
5007
5030
|
}
|
|
5008
5031
|
);
|
|
5009
5032
|
const l = e;
|
|
@@ -5148,7 +5171,7 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5148
5171
|
defaultConfig: i,
|
|
5149
5172
|
mode: l.value,
|
|
5150
5173
|
modelValue: a.value,
|
|
5151
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
5174
|
+
"onUpdate:modelValue": L[0] || (L[0] = (_) => a.value = _),
|
|
5152
5175
|
onOnCreated: s,
|
|
5153
5176
|
onOnChange: c,
|
|
5154
5177
|
onOnDestroyed: f,
|
|
@@ -5234,14 +5257,14 @@ const Ts = /* @__PURE__ */ ue({
|
|
|
5234
5257
|
style: { width: "200px" },
|
|
5235
5258
|
value: D,
|
|
5236
5259
|
placeholder: f.placeholder,
|
|
5237
|
-
onChange: (
|
|
5260
|
+
onChange: (_) => d(_, L),
|
|
5238
5261
|
onBlur: c,
|
|
5239
5262
|
clearable: ""
|
|
5240
5263
|
}, null, 8, ["value", "placeholder", "onChange"]),
|
|
5241
5264
|
F(y, {
|
|
5242
5265
|
variant: "outline",
|
|
5243
5266
|
theme: "default",
|
|
5244
|
-
onClick: (
|
|
5267
|
+
onClick: (_) => s(L)
|
|
5245
5268
|
}, {
|
|
5246
5269
|
default: C(() => [
|
|
5247
5270
|
re("- ")
|
|
@@ -5276,7 +5299,7 @@ function ro(n = {}) {
|
|
|
5276
5299
|
if (!We(o) && o !== 1) {
|
|
5277
5300
|
let l, r;
|
|
5278
5301
|
try {
|
|
5279
|
-
return l =
|
|
5302
|
+
return l = dt.render(o, { form: n.formModel.value }), r = qn(l, { form: n.formModel.value }), r;
|
|
5280
5303
|
} catch (u) {
|
|
5281
5304
|
console.error(o, u.message);
|
|
5282
5305
|
}
|
|
@@ -5287,7 +5310,7 @@ function ro(n = {}) {
|
|
|
5287
5310
|
if (!We(o) && o !== 0) {
|
|
5288
5311
|
let l, r;
|
|
5289
5312
|
try {
|
|
5290
|
-
l =
|
|
5313
|
+
l = dt.render(o, { form: n.formModel.value }), r = qn(l, { form: n.formModel.value });
|
|
5291
5314
|
} catch (u) {
|
|
5292
5315
|
console.error(o, u.message);
|
|
5293
5316
|
}
|
|
@@ -5300,7 +5323,7 @@ function ro(n = {}) {
|
|
|
5300
5323
|
handleItemDisableIf: t
|
|
5301
5324
|
};
|
|
5302
5325
|
}
|
|
5303
|
-
const ks = ["id"],
|
|
5326
|
+
const ks = ["id"], Ms = /* @__PURE__ */ ue({
|
|
5304
5327
|
__name: "GFormItem",
|
|
5305
5328
|
props: {
|
|
5306
5329
|
formItem: {},
|
|
@@ -5355,22 +5378,22 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5355
5378
|
getDisableFlag: p,
|
|
5356
5379
|
setBlockShowFlag: y
|
|
5357
5380
|
});
|
|
5358
|
-
const D = V(() => l.formItem.name.replace(/:|:/, "")), L = Y(),
|
|
5381
|
+
const D = V(() => l.formItem.name.replace(/:|:/, "")), L = Y(), _ = Y(!1), I = Y(0);
|
|
5359
5382
|
return Ue(() => {
|
|
5360
5383
|
if (L.value && l.isLabelNameShow) {
|
|
5361
5384
|
I.value = L.value.parentElement.parentElement.clientWidth;
|
|
5362
5385
|
const m = L.value.clientWidth;
|
|
5363
|
-
m && m && m - I.value > -15 && (
|
|
5386
|
+
m && m && m - I.value > -15 && (_.value = !0);
|
|
5364
5387
|
}
|
|
5365
5388
|
}), At(Sn, l.componentProps), (m, w) => {
|
|
5366
|
-
const
|
|
5389
|
+
const M = Q("t-divider"), U = Q("t-tooltip"), P = Q("t-form-item");
|
|
5367
5390
|
return v(), W("div", {
|
|
5368
5391
|
ref: "formItemRef",
|
|
5369
5392
|
class: Z(`${h(Do)}`),
|
|
5370
5393
|
id: N.value
|
|
5371
5394
|
}, [
|
|
5372
5395
|
f.value ? (v(), W(de, { key: 0 }, [
|
|
5373
|
-
m.formItem.itemType === "line" && m.formItem.name && h(u)(m.formItem.showIf, m.formItem) ? (v(), $(
|
|
5396
|
+
m.formItem.itemType === "line" && m.formItem.name && h(u)(m.formItem.showIf, m.formItem) ? (v(), $(M, {
|
|
5374
5397
|
key: 0,
|
|
5375
5398
|
align: "left"
|
|
5376
5399
|
}, {
|
|
@@ -5390,7 +5413,7 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5390
5413
|
F(U, {
|
|
5391
5414
|
trigger: "hover",
|
|
5392
5415
|
theme: "light",
|
|
5393
|
-
disabled: !
|
|
5416
|
+
disabled: !_.value,
|
|
5394
5417
|
showArrow: !1,
|
|
5395
5418
|
content: D.value,
|
|
5396
5419
|
placement: "mouse"
|
|
@@ -5401,10 +5424,10 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5401
5424
|
ref: L,
|
|
5402
5425
|
class: Z([
|
|
5403
5426
|
"formItem__label",
|
|
5404
|
-
|
|
5427
|
+
_.value ? "formItem__label--ellipsis" : ""
|
|
5405
5428
|
]),
|
|
5406
|
-
style:
|
|
5407
|
-
...
|
|
5429
|
+
style: bt({
|
|
5430
|
+
..._.value ? { width: `${I.value - 20}px` } : {}
|
|
5408
5431
|
})
|
|
5409
5432
|
}, te(D.value), 7)
|
|
5410
5433
|
]),
|
|
@@ -5417,8 +5440,9 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5417
5440
|
m.formItem.itemType === "label" ? (v(), $(ba, {
|
|
5418
5441
|
key: 0,
|
|
5419
5442
|
formItem: m.formItem,
|
|
5443
|
+
formModel: r.value,
|
|
5420
5444
|
modelValue: h(fe)(r.value, m.formItem.keyName)
|
|
5421
|
-
}, null, 8, ["formItem", "modelValue"])) : X("", !0),
|
|
5445
|
+
}, null, 8, ["formItem", "formModel", "modelValue"])) : X("", !0),
|
|
5422
5446
|
m.formItem.itemType === "text_input" && m.formItem.inputType != "RE_PASSWORD" ? (v(), $(Zn, Ee({ key: 1 }, m.componentProps, {
|
|
5423
5447
|
formItem: m.formItem,
|
|
5424
5448
|
inputType: (x = (k = m.formItem) == null ? void 0 : k.inputType) == null ? void 0 : x.toLowerCase(),
|
|
@@ -5464,7 +5488,7 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5464
5488
|
placeholder: E.value,
|
|
5465
5489
|
"onUpdate:modelValue": w[5] || (w[5] = (T) => s(m.formItem.keyName, T))
|
|
5466
5490
|
}), null, 16, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : X("", !0),
|
|
5467
|
-
m.formItem.itemType === "date_selector" || m.formItem.itemType === "time_selector" || m.formItem.itemType === "date_time_selector" ? (v(), $(
|
|
5491
|
+
m.formItem.itemType === "date_selector" || m.formItem.itemType === "time_selector" || m.formItem.itemType === "date_time_selector" ? (v(), $(Ma, Ee({ key: 7 }, m.componentProps, {
|
|
5468
5492
|
modelValue: h(fe)(r.value, m.formItem.keyName),
|
|
5469
5493
|
formItem: m.formItem,
|
|
5470
5494
|
viewName: m.viewName,
|
|
@@ -5480,7 +5504,7 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5480
5504
|
placeholder: E.value,
|
|
5481
5505
|
"onUpdate:modelValue": w[7] || (w[7] = (T) => s(m.formItem.keyName, T))
|
|
5482
5506
|
}), null, 16, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : X("", !0),
|
|
5483
|
-
m.formItem.itemType === "tree_check_box" ? (v(), $(
|
|
5507
|
+
m.formItem.itemType === "tree_check_box" ? (v(), $(_a, Ee({ key: 9 }, m.componentProps, {
|
|
5484
5508
|
modelValue: h(fe)(r.value, m.formItem.keyName),
|
|
5485
5509
|
formItem: m.formItem,
|
|
5486
5510
|
viewName: m.viewName,
|
|
@@ -5532,7 +5556,7 @@ const ks = ["id"], _s = /* @__PURE__ */ ue({
|
|
|
5532
5556
|
};
|
|
5533
5557
|
}
|
|
5534
5558
|
});
|
|
5535
|
-
const Cn = /* @__PURE__ */
|
|
5559
|
+
const Cn = /* @__PURE__ */ ht(Ms, [["__scopeId", "data-v-9b1bb63e"]]), _s = ["id"], Da = /* @__PURE__ */ ue({
|
|
5536
5560
|
__name: "GFormBlock",
|
|
5537
5561
|
props: {
|
|
5538
5562
|
name: {},
|
|
@@ -5568,7 +5592,7 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5568
5592
|
id: o.value,
|
|
5569
5593
|
ref_key: "blockRef",
|
|
5570
5594
|
ref: l
|
|
5571
|
-
}, null, 8,
|
|
5595
|
+
}, null, 8, _s));
|
|
5572
5596
|
}
|
|
5573
5597
|
}), Is = /* @__PURE__ */ ue({
|
|
5574
5598
|
__name: "GDialogForm",
|
|
@@ -5655,7 +5679,7 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5655
5679
|
}, L = V(() => {
|
|
5656
5680
|
var P;
|
|
5657
5681
|
return (P = a.board) == null ? void 0 : P.okButton;
|
|
5658
|
-
}),
|
|
5682
|
+
}), _ = V(() => {
|
|
5659
5683
|
var P;
|
|
5660
5684
|
return (P = a.board) == null ? void 0 : P.cancelButton;
|
|
5661
5685
|
}), I = t;
|
|
@@ -5668,7 +5692,7 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5668
5692
|
return null;
|
|
5669
5693
|
}
|
|
5670
5694
|
function w(P) {
|
|
5671
|
-
let k =
|
|
5695
|
+
let k = _n(P);
|
|
5672
5696
|
const x = Object.keys(k);
|
|
5673
5697
|
if (r.value && x.length) {
|
|
5674
5698
|
const S = r.value.filter((T) => T.itemType == "file" && T.fileUploadType == "path").map((T) => T.keyName);
|
|
@@ -5684,7 +5708,7 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5684
5708
|
}
|
|
5685
5709
|
return k;
|
|
5686
5710
|
}
|
|
5687
|
-
function
|
|
5711
|
+
function M(P) {
|
|
5688
5712
|
switch (P.action) {
|
|
5689
5713
|
case "CONFIRM": {
|
|
5690
5714
|
E().then((k) => {
|
|
@@ -5763,15 +5787,15 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5763
5787
|
footer: C(() => {
|
|
5764
5788
|
var S;
|
|
5765
5789
|
return [
|
|
5766
|
-
|
|
5790
|
+
_.value && _.value.name != "" && _.value.action !== "NONE" ? (v(), $(x, {
|
|
5767
5791
|
key: 0,
|
|
5768
5792
|
theme: "default",
|
|
5769
|
-
onClick: k[0] || (k[0] = (A) =>
|
|
5793
|
+
onClick: k[0] || (k[0] = (A) => _.value && M(_.value))
|
|
5770
5794
|
}, {
|
|
5771
5795
|
default: C(() => {
|
|
5772
5796
|
var A;
|
|
5773
5797
|
return [
|
|
5774
|
-
re(te((A =
|
|
5798
|
+
re(te((A = _.value) == null ? void 0 : A.name), 1)
|
|
5775
5799
|
];
|
|
5776
5800
|
}),
|
|
5777
5801
|
_: 1
|
|
@@ -5779,7 +5803,7 @@ const Cn = /* @__PURE__ */ pt(_s, [["__scopeId", "data-v-56963e7e"]]), Ms = ["id
|
|
|
5779
5803
|
L.value && L.value.name != "" && ((S = L.value) == null ? void 0 : S.action) !== "NONE" ? (v(), $(x, {
|
|
5780
5804
|
key: 1,
|
|
5781
5805
|
theme: "primary",
|
|
5782
|
-
onClick: k[1] || (k[1] = (A) => L.value &&
|
|
5806
|
+
onClick: k[1] || (k[1] = (A) => L.value && M(L.value)),
|
|
5783
5807
|
loading: U.value
|
|
5784
5808
|
}, {
|
|
5785
5809
|
default: C(() => {
|
|
@@ -5812,19 +5836,19 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5812
5836
|
emits: ["close-dialog"],
|
|
5813
5837
|
setup(n, { emit: e }) {
|
|
5814
5838
|
const t = Ko(() => Promise.resolve().then(() => ja)), { T: o } = ke(), a = rt(), l = n, r = V(() => {
|
|
5815
|
-
var L,
|
|
5816
|
-
return (L = l.board) != null && L.data ? (
|
|
5839
|
+
var L, _, I;
|
|
5840
|
+
return (L = l.board) != null && L.data ? (_ = l.board) == null ? void 0 : _.data.dataId : (I = l.board) != null && I.tableData ? l.board.tableData.dataId : null;
|
|
5817
5841
|
}), u = V(() => {
|
|
5818
5842
|
if (We(a.query))
|
|
5819
5843
|
return {};
|
|
5820
5844
|
{
|
|
5821
|
-
const { viewName: L, ...
|
|
5822
|
-
return
|
|
5845
|
+
const { viewName: L, ..._ } = a.query;
|
|
5846
|
+
return _;
|
|
5823
5847
|
}
|
|
5824
5848
|
}), i = V(() => {
|
|
5825
|
-
var
|
|
5849
|
+
var _;
|
|
5826
5850
|
let L = {};
|
|
5827
|
-
return l.dialogProps && ((
|
|
5851
|
+
return l.dialogProps && ((_ = Object.keys(l.dialogProps)) != null && _.length) && Object.assign(L, l.dialogProps), Object.assign(L, u.value), L;
|
|
5828
5852
|
}), d = V(() => {
|
|
5829
5853
|
var L;
|
|
5830
5854
|
return (L = l.board) == null ? void 0 : L.boardType;
|
|
@@ -5833,17 +5857,17 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5833
5857
|
s("close-dialog");
|
|
5834
5858
|
}
|
|
5835
5859
|
const f = Y();
|
|
5836
|
-
async function p(L,
|
|
5860
|
+
async function p(L, _) {
|
|
5837
5861
|
f.value && (f.value.formOkButtonLoading || (f.value.formOkButtonLoading = !0));
|
|
5838
5862
|
let I = {};
|
|
5839
5863
|
return Object.keys(i.value).length && Object.assign(I, i.value), Object.assign(I, L), (await ya({
|
|
5840
|
-
buttonId:
|
|
5864
|
+
buttonId: _,
|
|
5841
5865
|
props: I,
|
|
5842
5866
|
viewName: l.viewName
|
|
5843
5867
|
})).state === 200 ? (he.success(`${o.t("提交成功")}`), f.value && (f.value.formOkButtonLoading = !1), !0) : (f.value && (f.value.formOkButtonLoading = !1), !1);
|
|
5844
5868
|
}
|
|
5845
|
-
async function y(L,
|
|
5846
|
-
await p(L,
|
|
5869
|
+
async function y(L, _) {
|
|
5870
|
+
await p(L, _) && N();
|
|
5847
5871
|
}
|
|
5848
5872
|
function N() {
|
|
5849
5873
|
s("close-dialog");
|
|
@@ -5851,7 +5875,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5851
5875
|
const j = Y({}), E = Y(!1);
|
|
5852
5876
|
async function D() {
|
|
5853
5877
|
try {
|
|
5854
|
-
if (E.value = !0, !
|
|
5878
|
+
if (E.value = !0, !mt(r.value) && !mt(l.viewName)) {
|
|
5855
5879
|
const L = await tn({
|
|
5856
5880
|
dataId: r.value,
|
|
5857
5881
|
viewName: l.viewName,
|
|
@@ -5867,7 +5891,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5867
5891
|
}
|
|
5868
5892
|
return Ue(() => {
|
|
5869
5893
|
d.value == "form" && D();
|
|
5870
|
-
}), At(Ft, i.value), (L,
|
|
5894
|
+
}), At(Ft, i.value), (L, _) => {
|
|
5871
5895
|
const I = Q("t-loading");
|
|
5872
5896
|
return d.value !== "form" ? (v(), $(h(t), {
|
|
5873
5897
|
from: "dialog",
|
|
@@ -5933,7 +5957,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5933
5957
|
function f() {
|
|
5934
5958
|
a("close-dialog");
|
|
5935
5959
|
}
|
|
5936
|
-
const p =
|
|
5960
|
+
const p = ft(), y = V(() => {
|
|
5937
5961
|
const D = en(o.dialogViewInfo.link);
|
|
5938
5962
|
let L = "";
|
|
5939
5963
|
if (D)
|
|
@@ -5941,8 +5965,8 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5941
5965
|
...s
|
|
5942
5966
|
});
|
|
5943
5967
|
else {
|
|
5944
|
-
const
|
|
5945
|
-
L = `${location.origin}/${
|
|
5968
|
+
const _ = o.dialogViewInfo.link && p.resolve({ path: o.dialogViewInfo.link, query: { ...s.value } }).href;
|
|
5969
|
+
L = `${location.origin}/${_}`;
|
|
5946
5970
|
}
|
|
5947
5971
|
return o.dialogViewInfo.link ? L : "";
|
|
5948
5972
|
}), N = Y(), j = Y(!0);
|
|
@@ -5950,7 +5974,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5950
5974
|
j.value = !1;
|
|
5951
5975
|
}
|
|
5952
5976
|
return (D, L) => {
|
|
5953
|
-
const
|
|
5977
|
+
const _ = Q("t-loading");
|
|
5954
5978
|
return v(), $(h(ma), {
|
|
5955
5979
|
commonDialogProps: {
|
|
5956
5980
|
visible: D.isDialogVisible,
|
|
@@ -5962,7 +5986,7 @@ const Ls = /* @__PURE__ */ ue({
|
|
|
5962
5986
|
}
|
|
5963
5987
|
}, {
|
|
5964
5988
|
body: C(() => [
|
|
5965
|
-
F(
|
|
5989
|
+
F(_, {
|
|
5966
5990
|
loading: D.dialogType === "iframe" && j.value,
|
|
5967
5991
|
size: "medium",
|
|
5968
5992
|
text: `${h(t).t("加载中")}`
|
|
@@ -6063,7 +6087,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6063
6087
|
};
|
|
6064
6088
|
})), B == null ? void 0 : B.reduce((g, b) => (b.rules.length && (g[b.keyName] = b.rules), g), {});
|
|
6065
6089
|
}
|
|
6066
|
-
const L = Y(),
|
|
6090
|
+
const L = Y(), _ = Y();
|
|
6067
6091
|
function I(B, g, b) {
|
|
6068
6092
|
L.value && L.value.forEach((z) => {
|
|
6069
6093
|
z.formItemId && g.includes(z.formItemId) && z.$el.classList.contains(B) && z.setBlockShowFlag(b);
|
|
@@ -6077,12 +6101,12 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6077
6101
|
}
|
|
6078
6102
|
async function w(B = []) {
|
|
6079
6103
|
var z;
|
|
6080
|
-
const g =
|
|
6104
|
+
const g = M();
|
|
6081
6105
|
return (B.length ? B.some((G) => g.includes(G)) : !0) ? (z = j.value) == null ? void 0 : z.validate({
|
|
6082
6106
|
fields: B.length ? B : g
|
|
6083
6107
|
}) : Promise.resolve({});
|
|
6084
6108
|
}
|
|
6085
|
-
const
|
|
6109
|
+
const M = () => {
|
|
6086
6110
|
var B;
|
|
6087
6111
|
return (B = L == null ? void 0 : L.value) == null ? void 0 : B.flatMap((g) => {
|
|
6088
6112
|
const { formItem: b } = g;
|
|
@@ -6104,7 +6128,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6104
6128
|
return null;
|
|
6105
6129
|
}
|
|
6106
6130
|
function S(B) {
|
|
6107
|
-
let g =
|
|
6131
|
+
let g = _n(B);
|
|
6108
6132
|
const b = Object.keys(g);
|
|
6109
6133
|
if (d.value && b.length) {
|
|
6110
6134
|
const z = d.value.filter((H) => H.itemType == "file" && H.fileUploadType == "path").map((H) => H.keyName);
|
|
@@ -6229,7 +6253,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6229
6253
|
key: 0,
|
|
6230
6254
|
ref_for: !0,
|
|
6231
6255
|
ref_key: "formBlockRef",
|
|
6232
|
-
ref:
|
|
6256
|
+
ref: _,
|
|
6233
6257
|
name: G.name,
|
|
6234
6258
|
blockType: G.itemType,
|
|
6235
6259
|
showIf: h(c)(G.showIf),
|
|
@@ -6252,7 +6276,7 @@ const Ns = Ye(Ds), Es = { class: "g-form" }, As = { class: "g-form-header" }, Fs
|
|
|
6252
6276
|
};
|
|
6253
6277
|
}
|
|
6254
6278
|
});
|
|
6255
|
-
const Bs = /* @__PURE__ */
|
|
6279
|
+
const Bs = /* @__PURE__ */ ht($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(Bs), xs = /* @__PURE__ */ ue({
|
|
6256
6280
|
__name: "GHeaderUpload",
|
|
6257
6281
|
props: {
|
|
6258
6282
|
button: {},
|
|
@@ -6262,7 +6286,7 @@ const Bs = /* @__PURE__ */ pt($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(B
|
|
|
6262
6286
|
const { T: e } = ke(), t = n;
|
|
6263
6287
|
function o(i) {
|
|
6264
6288
|
var s, c;
|
|
6265
|
-
const d =
|
|
6289
|
+
const d = _n(i);
|
|
6266
6290
|
if (((s = t.button) == null ? void 0 : s.fileUploadType) == "file") {
|
|
6267
6291
|
if (d.length && d.every((f) => f.status == "done")) {
|
|
6268
6292
|
const { response: f, filename: p, url: y } = d[0];
|
|
@@ -6338,103 +6362,103 @@ const Bs = /* @__PURE__ */ pt($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(B
|
|
|
6338
6362
|
const {
|
|
6339
6363
|
T: t
|
|
6340
6364
|
} = ke(), o = n, a = e, l = V(() => {
|
|
6341
|
-
var
|
|
6342
|
-
return ((
|
|
6365
|
+
var _;
|
|
6366
|
+
return ((_ = o.headerInfo) == null ? void 0 : _.buttons) || [];
|
|
6343
6367
|
});
|
|
6344
|
-
function r(
|
|
6345
|
-
a("header-button-action",
|
|
6368
|
+
function r(_) {
|
|
6369
|
+
a("header-button-action", _);
|
|
6346
6370
|
}
|
|
6347
6371
|
const u = V(() => {
|
|
6348
|
-
var
|
|
6349
|
-
return (
|
|
6372
|
+
var _;
|
|
6373
|
+
return (_ = o.headerInfo.searchBar) == null ? void 0 : _.filters;
|
|
6350
6374
|
}), i = V(() => {
|
|
6351
|
-
var
|
|
6352
|
-
return Ct((
|
|
6375
|
+
var _;
|
|
6376
|
+
return Ct((_ = o.headerInfo.searchBar) == null ? void 0 : _.filters) ? o.headerInfo.searchBar.filters.filter((I) => I.itemType !== "text_input") : [];
|
|
6353
6377
|
}), d = V(() => {
|
|
6354
|
-
var
|
|
6355
|
-
return Ct((
|
|
6378
|
+
var _;
|
|
6379
|
+
return Ct((_ = o.headerInfo.searchBar) == null ? void 0 : _.filters) ? o.headerInfo.searchBar.filters.filter((I) => I.itemType === "text_input") : [];
|
|
6356
6380
|
}), s = In({}, u.value), c = Y(Xe(s));
|
|
6357
6381
|
let f = Y(0);
|
|
6358
|
-
function p(
|
|
6359
|
-
je(c.value,
|
|
6382
|
+
function p(_, I) {
|
|
6383
|
+
je(c.value, _, I), f.value && clearTimeout(f.value), f.value = setTimeout(() => {
|
|
6360
6384
|
Object.keys(c.value).forEach((m) => {
|
|
6361
6385
|
(c.value[m] === "" || c.value[m] === null) && delete c.value[m];
|
|
6362
6386
|
}), a("header-filter-change", c.value);
|
|
6363
6387
|
}, 500);
|
|
6364
6388
|
}
|
|
6365
|
-
function y(
|
|
6366
|
-
return
|
|
6389
|
+
function y(_) {
|
|
6390
|
+
return _.itemType == "selector" ? {
|
|
6367
6391
|
filterable: !0
|
|
6368
|
-
} :
|
|
6392
|
+
} : _.itemType == "text_input" ? {
|
|
6369
6393
|
suffixIcon: () => F(Tl, null, null)
|
|
6370
6394
|
} : {};
|
|
6371
6395
|
}
|
|
6372
6396
|
function N() {
|
|
6373
|
-
Object.keys(c.value).forEach((
|
|
6374
|
-
je(c.value,
|
|
6397
|
+
Object.keys(c.value).forEach((_) => {
|
|
6398
|
+
je(c.value, _, "");
|
|
6375
6399
|
}), a("header-filter-change", c.value);
|
|
6376
6400
|
}
|
|
6377
|
-
const j = V(() => o.tableColumns && o.tableColumns.length ? o.tableColumns.map((
|
|
6401
|
+
const j = V(() => o.tableColumns && o.tableColumns.length ? o.tableColumns.map((_, I) => ({
|
|
6378
6402
|
disabled: I == 0 || I == o.tableColumns.length - 1,
|
|
6379
|
-
label:
|
|
6380
|
-
value:
|
|
6403
|
+
label: _.title,
|
|
6404
|
+
value: _.colKey
|
|
6381
6405
|
})) : []);
|
|
6382
|
-
function E(
|
|
6383
|
-
a("display-columns-change",
|
|
6406
|
+
function E(_) {
|
|
6407
|
+
a("display-columns-change", _);
|
|
6384
6408
|
}
|
|
6385
6409
|
const D = rt(), L = Ln();
|
|
6386
6410
|
return Ue(() => {
|
|
6387
|
-
const
|
|
6388
|
-
|
|
6389
|
-
...
|
|
6411
|
+
const _ = L.getFormData(D.fullPath);
|
|
6412
|
+
_ != null && _.formData && (c.value = {
|
|
6413
|
+
..._.formData
|
|
6390
6414
|
}, a("header-filter-change", c.value));
|
|
6391
|
-
}), (
|
|
6415
|
+
}), (_, I) => {
|
|
6392
6416
|
const m = Q("t-button"), w = Q("t-space");
|
|
6393
6417
|
return v(), W("div", Vs, [F(w, {
|
|
6394
6418
|
class: "g-header-button",
|
|
6395
6419
|
size: "8px"
|
|
6396
6420
|
}, {
|
|
6397
|
-
default: C(() => [(v(!0), W(de, null, Se(l.value, (
|
|
6398
|
-
key:
|
|
6399
|
-
}, [
|
|
6421
|
+
default: C(() => [(v(!0), W(de, null, Se(l.value, (M) => (v(), W(de, {
|
|
6422
|
+
key: M.buttonId
|
|
6423
|
+
}, [M.action == "UPLOAD_FILE" ? (v(), $(xs, {
|
|
6400
6424
|
key: 0,
|
|
6401
|
-
button:
|
|
6402
|
-
viewName:
|
|
6425
|
+
button: M,
|
|
6426
|
+
viewName: _.viewName
|
|
6403
6427
|
}, null, 8, ["button", "viewName"])) : (v(), $(m, {
|
|
6404
6428
|
key: 1,
|
|
6405
6429
|
theme: "primary",
|
|
6406
|
-
onClick: (U) => r(
|
|
6430
|
+
onClick: (U) => r(M)
|
|
6407
6431
|
}, {
|
|
6408
|
-
default: C(() => [re(te(
|
|
6432
|
+
default: C(() => [re(te(M.name), 1)]),
|
|
6409
6433
|
_: 2
|
|
6410
6434
|
}, 1032, ["onClick"]))], 64))), 128))]),
|
|
6411
6435
|
_: 1
|
|
6412
6436
|
}), i.value.length || d.value.length ? (v(), W("div", Os, [F(w, {
|
|
6413
6437
|
size: "8px"
|
|
6414
6438
|
}, {
|
|
6415
|
-
default: C(() => [(v(!0), W(de, null, Se(i.value, (
|
|
6439
|
+
default: C(() => [(v(!0), W(de, null, Se(i.value, (M, U) => (v(), W("div", {
|
|
6416
6440
|
key: U
|
|
6417
6441
|
}, [F(Cn, {
|
|
6418
|
-
formItem:
|
|
6442
|
+
formItem: M,
|
|
6419
6443
|
formModel: c.value,
|
|
6420
|
-
viewName:
|
|
6444
|
+
viewName: _.viewName,
|
|
6421
6445
|
onAfterUpdateValue: p,
|
|
6422
6446
|
isLabelNameShow: !1,
|
|
6423
|
-
componentProps: y(
|
|
6447
|
+
componentProps: y(M)
|
|
6424
6448
|
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"])]))), 128))]),
|
|
6425
6449
|
_: 1
|
|
6426
6450
|
}), F(w, {
|
|
6427
6451
|
size: "8px"
|
|
6428
6452
|
}, {
|
|
6429
|
-
default: C(() => [(v(!0), W(de, null, Se(d.value, (
|
|
6453
|
+
default: C(() => [(v(!0), W(de, null, Se(d.value, (M, U) => (v(), W("div", {
|
|
6430
6454
|
key: U
|
|
6431
6455
|
}, [F(Cn, {
|
|
6432
|
-
formItem:
|
|
6456
|
+
formItem: M,
|
|
6433
6457
|
formModel: c.value,
|
|
6434
|
-
viewName:
|
|
6458
|
+
viewName: _.viewName,
|
|
6435
6459
|
onAfterUpdateValue: p,
|
|
6436
6460
|
isLabelNameShow: !1,
|
|
6437
|
-
componentProps: y(
|
|
6461
|
+
componentProps: y(M)
|
|
6438
6462
|
}, null, 8, ["formItem", "formModel", "viewName", "componentProps"])]))), 128)), F(m, {
|
|
6439
6463
|
theme: "default",
|
|
6440
6464
|
onClick: N
|
|
@@ -6443,7 +6467,7 @@ const Bs = /* @__PURE__ */ pt($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(B
|
|
|
6443
6467
|
_: 1
|
|
6444
6468
|
}), F(h(ss), {
|
|
6445
6469
|
columnOptions: j.value,
|
|
6446
|
-
displayColumns:
|
|
6470
|
+
displayColumns: _.displayColumns,
|
|
6447
6471
|
onConfirm: E
|
|
6448
6472
|
}, null, 8, ["columnOptions", "displayColumns"])]),
|
|
6449
6473
|
_: 1
|
|
@@ -6451,7 +6475,7 @@ const Bs = /* @__PURE__ */ pt($s, [["__scopeId", "data-v-24093af1"]]), Ps = Ye(B
|
|
|
6451
6475
|
};
|
|
6452
6476
|
}
|
|
6453
6477
|
});
|
|
6454
|
-
const Rs = /* @__PURE__ */
|
|
6478
|
+
const Rs = /* @__PURE__ */ ht(Us, [["__scopeId", "data-v-0d8085b8"]]), js = Ye(Rs), zs = /* @__PURE__ */ ue({
|
|
6455
6479
|
__name: "GTableForm",
|
|
6456
6480
|
props: {
|
|
6457
6481
|
col: {},
|
|
@@ -6482,8 +6506,9 @@ const Rs = /* @__PURE__ */ pt(Us, [["__scopeId", "data-v-0d8085b8"]]), js = Ye(R
|
|
|
6482
6506
|
f.itemType === "label" ? (v(), $(ba, {
|
|
6483
6507
|
key: 0,
|
|
6484
6508
|
modelValue: h(fe)(u.value, s.col.colKey),
|
|
6485
|
-
formItem: f
|
|
6486
|
-
|
|
6509
|
+
formItem: f,
|
|
6510
|
+
formModel: u.value
|
|
6511
|
+
}, null, 8, ["modelValue", "formItem", "formModel"])) : X("", !0),
|
|
6487
6512
|
f.itemType == "text_input" ? (v(), $(Zn, {
|
|
6488
6513
|
key: 1,
|
|
6489
6514
|
formItem: f,
|
|
@@ -6531,7 +6556,7 @@ const Rs = /* @__PURE__ */ pt(Us, [["__scopeId", "data-v-0d8085b8"]]), js = Ye(R
|
|
|
6531
6556
|
"onUpdate:modelValue": c[4] || (c[4] = (y) => s.col.colKey && i(s.col.colKey, y)),
|
|
6532
6557
|
"onBlur:modelValue": (y) => d(f)
|
|
6533
6558
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : X("", !0),
|
|
6534
|
-
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (v(), $(
|
|
6559
|
+
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (v(), $(Ma, {
|
|
6535
6560
|
key: 6,
|
|
6536
6561
|
originValue: h(fe)(s.row, s.col.colKey),
|
|
6537
6562
|
modelValue: h(fe)(u.value, s.col.colKey),
|
|
@@ -6540,7 +6565,7 @@ const Rs = /* @__PURE__ */ pt(Us, [["__scopeId", "data-v-0d8085b8"]]), js = Ye(R
|
|
|
6540
6565
|
"onUpdate:modelValue": c[5] || (c[5] = (y) => s.col.colKey && i(s.col.colKey, y)),
|
|
6541
6566
|
"onBlur:modelValue": (y) => d(f)
|
|
6542
6567
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : X("", !0),
|
|
6543
|
-
f.itemType === "tree_check_box" ? (v(), $(
|
|
6568
|
+
f.itemType === "tree_check_box" ? (v(), $(_a, {
|
|
6544
6569
|
key: 7,
|
|
6545
6570
|
originValue: h(fe)(s.row, s.col.colKey),
|
|
6546
6571
|
modelValue: h(fe)(u.value, s.col.colKey),
|
|
@@ -6821,7 +6846,7 @@ function Ys(n, {
|
|
|
6821
6846
|
throw new RangeError(
|
|
6822
6847
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
6823
6848
|
);
|
|
6824
|
-
let D, L,
|
|
6849
|
+
let D, L, _ = e.replace(/{(\d*)}/g, (m, w) => (L = !0, w = parseInt(w, 10), D = isFinite(w) ? w : isFinite(D) ? D : -1, "{}")), I = a > 0 ? a - 1 : a < 0 ? E + a : void 0;
|
|
6825
6850
|
if (isFinite(I) && I < 0 || I >= E)
|
|
6826
6851
|
throw new RangeError(
|
|
6827
6852
|
E == 1 ? `Canvas only has a ‘page 1’ (${I} is out of bounds)` : `Canvas has pages 1–${E} (${I} is out of bounds)`
|
|
@@ -6839,7 +6864,7 @@ function Ys(n, {
|
|
|
6839
6864
|
throw new TypeError("The density option must be a non-negative integer");
|
|
6840
6865
|
return i === void 0 ? i = !0 : N == "svg" && (i = !!i), {
|
|
6841
6866
|
filename: e,
|
|
6842
|
-
pattern:
|
|
6867
|
+
pattern: _,
|
|
6843
6868
|
format: N,
|
|
6844
6869
|
mime: j,
|
|
6845
6870
|
pages: n,
|
|
@@ -7238,18 +7263,18 @@ const vi = Et(
|
|
|
7238
7263
|
return t;
|
|
7239
7264
|
}, ki = (n, e, t) => {
|
|
7240
7265
|
const l = t;
|
|
7241
|
-
var r, u, i, d, s, c, f, I, p, y,
|
|
7266
|
+
var r, u, i, d, s, c, f, I, p, y, _, N, m, w, U, M;
|
|
7242
7267
|
const j = new Array(t), E = new Array(4096), D = new Array(4096), L = new Array(4096 + 1);
|
|
7243
7268
|
for (N = n, u = 1 << N, s = u + 1, r = u + 2, f = -1, d = N + 1, i = (1 << d) - 1, p = 0; p < u; p++)
|
|
7244
7269
|
E[p] = 0, D[p] = p;
|
|
7245
|
-
var
|
|
7246
|
-
for (
|
|
7270
|
+
var _, I, m, w, M, U;
|
|
7271
|
+
for (_ = I = m = w = M = U = 0, y = 0; y < l; ) {
|
|
7247
7272
|
if (w === 0) {
|
|
7248
7273
|
if (I < d) {
|
|
7249
|
-
|
|
7274
|
+
_ += e[U] << I, I += 8, U++;
|
|
7250
7275
|
continue;
|
|
7251
7276
|
}
|
|
7252
|
-
if (p =
|
|
7277
|
+
if (p = _ & i, _ >>= d, I -= d, p > r || p == s)
|
|
7253
7278
|
break;
|
|
7254
7279
|
if (p == u) {
|
|
7255
7280
|
d = N + 1, i = (1 << d) - 1, r = u + 2, f = -1;
|
|
@@ -7263,15 +7288,15 @@ const vi = Et(
|
|
|
7263
7288
|
L[w++] = D[p], p = E[p];
|
|
7264
7289
|
m = D[p] & 255, L[w++] = m, r < 4096 && (E[r] = f, D[r] = m, r++, !(r & i) && r < 4096 && (d++, i += r)), f = c;
|
|
7265
7290
|
}
|
|
7266
|
-
w--, j[
|
|
7291
|
+
w--, j[M++] = L[w], y++;
|
|
7267
7292
|
}
|
|
7268
|
-
for (y =
|
|
7293
|
+
for (y = M; y < l; y++)
|
|
7269
7294
|
j[y] = 0;
|
|
7270
7295
|
return j;
|
|
7271
|
-
},
|
|
7296
|
+
}, Mi = (n) => {
|
|
7272
7297
|
const e = new Uint8Array(n);
|
|
7273
7298
|
return Wt(pi(e), Ti);
|
|
7274
|
-
},
|
|
7299
|
+
}, _i = (n) => {
|
|
7275
7300
|
const e = n.pixels.length, t = new Uint8ClampedArray(e * 4);
|
|
7276
7301
|
for (var o = 0; o < e; o++) {
|
|
7277
7302
|
const a = o * 4, l = n.pixels[o], r = n.colorTable[l];
|
|
@@ -7295,7 +7320,7 @@ const vi = Et(
|
|
|
7295
7320
|
height: n.image.descriptor.height
|
|
7296
7321
|
}
|
|
7297
7322
|
};
|
|
7298
|
-
return o.descriptor.lct && o.descriptor.lct.exists ? r.colorTable = o.lct : r.colorTable = e, n.gce && (r.delay = (n.gce.delay || 10) * 10, r.disposalType = n.gce.extras.disposal, n.gce.extras.transparentColorGiven && (r.transparentIndex = n.gce.transparentColorIndex)), t && (r.patch =
|
|
7323
|
+
return o.descriptor.lct && o.descriptor.lct.exists ? r.colorTable = o.lct : r.colorTable = e, n.gce && (r.delay = (n.gce.delay || 10) * 10, r.disposalType = n.gce.extras.disposal, n.gce.extras.transparentColorGiven && (r.transparentIndex = n.gce.transparentColorIndex)), t && (r.patch = _i(r)), r;
|
|
7299
7324
|
}, Li = (n, e) => n.frames.filter((t) => t.image).map((t) => Ii(t, n.gct, e));
|
|
7300
7325
|
function Si(n, e, t) {
|
|
7301
7326
|
const o = Ba(e), a = n - 1;
|
|
@@ -7363,7 +7388,7 @@ class Ni {
|
|
|
7363
7388
|
e.put(this.parsedData[t], 8);
|
|
7364
7389
|
}
|
|
7365
7390
|
}
|
|
7366
|
-
class
|
|
7391
|
+
class yt {
|
|
7367
7392
|
constructor(e = -1, t = He.L) {
|
|
7368
7393
|
this.moduleCount = 0, this.dataList = [], this.typeNumber = e, this.errorCorrectLevel = t, this.moduleCount = 0, this.dataList = [];
|
|
7369
7394
|
}
|
|
@@ -7397,7 +7422,7 @@ class gt {
|
|
|
7397
7422
|
for (let a = 0; a < this.moduleCount; a++)
|
|
7398
7423
|
this.modules[o][a] = null;
|
|
7399
7424
|
}
|
|
7400
|
-
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache =
|
|
7425
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = yt.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
|
|
7401
7426
|
}
|
|
7402
7427
|
setupPositionProbePattern(e, t) {
|
|
7403
7428
|
for (let o = -1; o <= 7; o++)
|
|
@@ -7484,9 +7509,9 @@ class gt {
|
|
|
7484
7509
|
throw new Error(`code length overflow. (${l.getLengthInBits()}>${u * 8})`);
|
|
7485
7510
|
for (l.getLengthInBits() + 4 <= u * 8 && l.put(0, 4); l.getLengthInBits() % 8 != 0; )
|
|
7486
7511
|
l.putBit(!1);
|
|
7487
|
-
for (; !(l.getLengthInBits() >= u * 8 || (l.put(
|
|
7488
|
-
l.put(
|
|
7489
|
-
return
|
|
7512
|
+
for (; !(l.getLengthInBits() >= u * 8 || (l.put(yt.PAD0, 8), l.getLengthInBits() >= u * 8)); )
|
|
7513
|
+
l.put(yt.PAD1, 8);
|
|
7514
|
+
return yt.createBytes(l, a);
|
|
7490
7515
|
}
|
|
7491
7516
|
static createBytes(e, t) {
|
|
7492
7517
|
let o = 0, a = 0, l = 0;
|
|
@@ -7518,8 +7543,8 @@ class gt {
|
|
|
7518
7543
|
return c;
|
|
7519
7544
|
}
|
|
7520
7545
|
}
|
|
7521
|
-
|
|
7522
|
-
|
|
7546
|
+
yt.PAD0 = 236;
|
|
7547
|
+
yt.PAD1 = 17;
|
|
7523
7548
|
const He = { L: 1, M: 0, Q: 3, H: 2 }, Qe = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, it = {
|
|
7524
7549
|
PATTERN000: 0,
|
|
7525
7550
|
PATTERN001: 1,
|
|
@@ -8014,62 +8039,62 @@ const at = [
|
|
|
8014
8039
|
[2809, 2213, 1579, 1219],
|
|
8015
8040
|
[2953, 2331, 1663, 1273]
|
|
8016
8041
|
];
|
|
8017
|
-
var Ai = 100, Oe = 256, xo = Oe - 1,
|
|
8042
|
+
var Ai = 100, Oe = 256, xo = Oe - 1, vt = 4, Pa = 16, uo = 1 << Pa, xa = 10, co = 10, Fi = uo >> co, $i = uo << xa - co, Bi = Oe >> 3, eo = 6, Pi = 1 << eo, xi = Bi * Pi, Vi = 30, Va = 10, mn = 1 << Va, Oa = 8, Vo = 1 << Oa, Oi = Va + Oa, Bt = 1 << Oi, Oo = 499, Uo = 491, Ro = 487, Ua = 503, Ui = 3 * Ua;
|
|
8018
8043
|
function Ri(n, e) {
|
|
8019
8044
|
var t, o, a, l, r;
|
|
8020
8045
|
function u() {
|
|
8021
8046
|
t = [], o = new Int32Array(256), a = new Int32Array(Oe), l = new Int32Array(Oe), r = new Int32Array(Oe >> 3);
|
|
8022
8047
|
var E, D;
|
|
8023
8048
|
for (E = 0; E < Oe; E++)
|
|
8024
|
-
D = (E <<
|
|
8049
|
+
D = (E << vt + 8) / Oe, t[E] = new Float64Array([D, D, D, 0]), l[E] = uo / Oe, a[E] = 0;
|
|
8025
8050
|
}
|
|
8026
8051
|
function i() {
|
|
8027
8052
|
for (var E = 0; E < Oe; E++)
|
|
8028
|
-
t[E][0] >>=
|
|
8053
|
+
t[E][0] >>= vt, t[E][1] >>= vt, t[E][2] >>= vt, t[E][3] = E;
|
|
8029
8054
|
}
|
|
8030
|
-
function d(E, D, L,
|
|
8031
|
-
t[D][0] -= E * (t[D][0] - L) / mn, t[D][1] -= E * (t[D][1] -
|
|
8055
|
+
function d(E, D, L, _, I) {
|
|
8056
|
+
t[D][0] -= E * (t[D][0] - L) / mn, t[D][1] -= E * (t[D][1] - _) / mn, t[D][2] -= E * (t[D][2] - I) / mn;
|
|
8032
8057
|
}
|
|
8033
|
-
function s(E, D, L,
|
|
8034
|
-
for (var m = Math.abs(D - E), w = Math.min(D + E, Oe),
|
|
8035
|
-
x = r[P++],
|
|
8058
|
+
function s(E, D, L, _, I) {
|
|
8059
|
+
for (var m = Math.abs(D - E), w = Math.min(D + E, Oe), M = D + 1, U = D - 1, P = 1, k, x; M < w || U > m; )
|
|
8060
|
+
x = r[P++], M < w && (k = t[M++], k[0] -= x * (k[0] - L) / Bt, k[1] -= x * (k[1] - _) / Bt, k[2] -= x * (k[2] - I) / Bt), U > m && (k = t[U--], k[0] -= x * (k[0] - L) / Bt, k[1] -= x * (k[1] - _) / Bt, k[2] -= x * (k[2] - I) / Bt);
|
|
8036
8061
|
}
|
|
8037
8062
|
function c(E, D, L) {
|
|
8038
|
-
var
|
|
8039
|
-
for (
|
|
8040
|
-
U = t[
|
|
8063
|
+
var _ = 2147483647, I = _, m = -1, w = m, M, U, P, k, x;
|
|
8064
|
+
for (M = 0; M < Oe; M++)
|
|
8065
|
+
U = t[M], P = Math.abs(U[0] - E) + Math.abs(U[1] - D) + Math.abs(U[2] - L), P < _ && (_ = P, m = M), k = P - (a[M] >> Pa - vt), k < I && (I = k, w = M), x = l[M] >> co, l[M] -= x, a[M] += x << xa;
|
|
8041
8066
|
return l[m] += Fi, a[m] -= $i, w;
|
|
8042
8067
|
}
|
|
8043
8068
|
function f() {
|
|
8044
|
-
var E, D, L,
|
|
8069
|
+
var E, D, L, _, I, m, w = 0, M = 0;
|
|
8045
8070
|
for (E = 0; E < Oe; E++) {
|
|
8046
8071
|
for (L = t[E], I = E, m = L[1], D = E + 1; D < Oe; D++)
|
|
8047
|
-
|
|
8048
|
-
if (
|
|
8049
|
-
for (o[w] =
|
|
8072
|
+
_ = t[D], _[1] < m && (I = D, m = _[1]);
|
|
8073
|
+
if (_ = t[I], E != I && (D = _[0], _[0] = L[0], L[0] = D, D = _[1], _[1] = L[1], L[1] = D, D = _[2], _[2] = L[2], L[2] = D, D = _[3], _[3] = L[3], L[3] = D), m != w) {
|
|
8074
|
+
for (o[w] = M + E >> 1, D = w + 1; D < m; D++)
|
|
8050
8075
|
o[D] = E;
|
|
8051
|
-
w = m,
|
|
8076
|
+
w = m, M = E;
|
|
8052
8077
|
}
|
|
8053
8078
|
}
|
|
8054
|
-
for (o[w] =
|
|
8079
|
+
for (o[w] = M + xo >> 1, D = w + 1; D < 256; D++)
|
|
8055
8080
|
o[D] = xo;
|
|
8056
8081
|
}
|
|
8057
8082
|
function p(E, D, L) {
|
|
8058
|
-
for (var
|
|
8059
|
-
U < Oe && (I = t[U], m = I[1] - D, m >= w ? U = Oe : (U++, m < 0 && (m = -m),
|
|
8060
|
-
return
|
|
8083
|
+
for (var _, I, m, w = 1e3, M = -1, U = o[D], P = U - 1; U < Oe || P >= 0; )
|
|
8084
|
+
U < Oe && (I = t[U], m = I[1] - D, m >= w ? U = Oe : (U++, m < 0 && (m = -m), _ = I[0] - E, _ < 0 && (_ = -_), m += _, m < w && (_ = I[2] - L, _ < 0 && (_ = -_), m += _, m < w && (w = m, M = I[3])))), P >= 0 && (I = t[P], m = D - I[1], m >= w ? P = -1 : (P--, m < 0 && (m = -m), _ = I[0] - E, _ < 0 && (_ = -_), m += _, m < w && (_ = I[2] - L, _ < 0 && (_ = -_), m += _, m < w && (w = m, M = I[3]))));
|
|
8085
|
+
return M;
|
|
8061
8086
|
}
|
|
8062
8087
|
function y() {
|
|
8063
|
-
var E, D = n.length, L = 30 + (e - 1) / 3,
|
|
8064
|
-
for (
|
|
8065
|
-
r[E] = m * ((
|
|
8088
|
+
var E, D = n.length, L = 30 + (e - 1) / 3, _ = D / (3 * e), I = ~~(_ / Ai), m = mn, w = xi, M = w >> eo;
|
|
8089
|
+
for (M <= 1 && (M = 0), E = 0; E < M; E++)
|
|
8090
|
+
r[E] = m * ((M * M - E * E) * Vo / (M * M));
|
|
8066
8091
|
var U;
|
|
8067
8092
|
D < Ui ? (e = 1, U = 3) : D % Oo !== 0 ? U = 3 * Oo : D % Uo !== 0 ? U = 3 * Uo : D % Ro !== 0 ? U = 3 * Ro : U = 3 * Ua;
|
|
8068
8093
|
var P, k, x, S, A = 0;
|
|
8069
|
-
for (E = 0; E <
|
|
8070
|
-
if (P = (n[A] & 255) <<
|
|
8071
|
-
for (m -= m / L, w -= w / Vi,
|
|
8072
|
-
r[S] = m * ((
|
|
8094
|
+
for (E = 0; E < _; )
|
|
8095
|
+
if (P = (n[A] & 255) << vt, k = (n[A + 1] & 255) << vt, x = (n[A + 2] & 255) << vt, S = c(P, k, x), d(m, S, P, k, x), M !== 0 && s(M, S, P, k, x), A += U, A >= D && (A -= D), E++, I === 0 && (I = 1), E % I === 0)
|
|
8096
|
+
for (m -= m / L, w -= w / Vi, M = w >> eo, M <= 1 && (M = 0), S = 0; S < M; S++)
|
|
8097
|
+
r[S] = m * ((M * M - S * S) * Vo / (M * M));
|
|
8073
8098
|
}
|
|
8074
8099
|
function N() {
|
|
8075
8100
|
u(), y(), i(), f();
|
|
@@ -8078,9 +8103,9 @@ function Ri(n, e) {
|
|
|
8078
8103
|
function j() {
|
|
8079
8104
|
for (var E = [], D = [], L = 0; L < Oe; L++)
|
|
8080
8105
|
D[t[L][3]] = L;
|
|
8081
|
-
for (var
|
|
8106
|
+
for (var _ = 0, I = 0; I < Oe; I++) {
|
|
8082
8107
|
var m = D[I];
|
|
8083
|
-
E[
|
|
8108
|
+
E[_++] = t[m][0], E[_++] = t[m][1], E[_++] = t[m][2];
|
|
8084
8109
|
}
|
|
8085
8110
|
return E;
|
|
8086
8111
|
}
|
|
@@ -8107,7 +8132,7 @@ var jo = -1, fn = 12, Ht = 5003, ji = [
|
|
|
8107
8132
|
];
|
|
8108
8133
|
function zi(n, e, t, o) {
|
|
8109
8134
|
var a = Math.max(2, o), l = new Uint8Array(256), r = new Int32Array(Ht), u = new Int32Array(Ht), i, d = 0, s, c = 0, f, p = !1, y, N, j, E, D, L;
|
|
8110
|
-
function
|
|
8135
|
+
function _(S, A) {
|
|
8111
8136
|
l[s++] = S, s >= 254 && U(A);
|
|
8112
8137
|
}
|
|
8113
8138
|
function I(S) {
|
|
@@ -8140,7 +8165,7 @@ function zi(n, e, t, o) {
|
|
|
8140
8165
|
}
|
|
8141
8166
|
x(b, A), x(j, A);
|
|
8142
8167
|
}
|
|
8143
|
-
function
|
|
8168
|
+
function M(S) {
|
|
8144
8169
|
S.writeByte(a), E = n * e, D = 0, w(a + 1, S), S.writeByte(0);
|
|
8145
8170
|
}
|
|
8146
8171
|
function U(S) {
|
|
@@ -8158,14 +8183,14 @@ function zi(n, e, t, o) {
|
|
|
8158
8183
|
}
|
|
8159
8184
|
function x(S, A) {
|
|
8160
8185
|
for (i &= ji[d], d > 0 ? i |= S << d : i = S, d += L; d >= 8; )
|
|
8161
|
-
|
|
8186
|
+
_(i & 255, A), i >>= 8, d -= 8;
|
|
8162
8187
|
if ((c > f || p) && (p ? (f = P(L = y), p = !1) : (++L, L == fn ? f = 1 << fn : f = P(L))), S == j) {
|
|
8163
8188
|
for (; d > 0; )
|
|
8164
|
-
|
|
8189
|
+
_(i & 255, A), i >>= 8, d -= 8;
|
|
8165
8190
|
U(A);
|
|
8166
8191
|
}
|
|
8167
8192
|
}
|
|
8168
|
-
this.encode =
|
|
8193
|
+
this.encode = M;
|
|
8169
8194
|
}
|
|
8170
8195
|
function qe() {
|
|
8171
8196
|
this.page = -1, this.pages = [], this.newPage();
|
|
@@ -8301,11 +8326,11 @@ Fe.prototype.ditherPixels = function(n, e) {
|
|
|
8301
8326
|
a = d * r + s;
|
|
8302
8327
|
var f = a * 3, p = u[f], y = u[f + 1], N = u[f + 2];
|
|
8303
8328
|
f = this.findClosestRGB(p, y, N), this.usedEntry[f] = !0, this.indexedPixels[a] = f, f *= 3;
|
|
8304
|
-
for (var j = this.colorTab[f], E = this.colorTab[f + 1], D = this.colorTab[f + 2], L = p - j,
|
|
8305
|
-
var
|
|
8306
|
-
if (
|
|
8329
|
+
for (var j = this.colorTab[f], E = this.colorTab[f + 1], D = this.colorTab[f + 2], L = p - j, _ = y - E, I = N - D, m = i == 1 ? 0 : o.length - 1, w = i == 1 ? o.length : 0; m !== w; m += i) {
|
|
8330
|
+
var M = o[m][1], U = o[m][2];
|
|
8331
|
+
if (M + s >= 0 && M + s < r && U + d >= 0 && U + d < l) {
|
|
8307
8332
|
var P = o[m][0];
|
|
8308
|
-
f = a +
|
|
8333
|
+
f = a + M + U * r, f *= 3, u[f] = Math.max(0, Math.min(255, u[f] + L * P)), u[f + 1] = Math.max(0, Math.min(255, u[f + 1] + _ * P)), u[f + 2] = Math.max(0, Math.min(255, u[f + 2] + I * P));
|
|
8309
8334
|
}
|
|
8310
8335
|
}
|
|
8311
8336
|
}
|
|
@@ -8447,7 +8472,7 @@ class Le {
|
|
|
8447
8472
|
throw new Error("dotScale should be in range (0, 1].");
|
|
8448
8473
|
t.components.data.scale = t.dotScale, t.components.timing.scale = t.dotScale, t.components.alignment.scale = t.dotScale;
|
|
8449
8474
|
}
|
|
8450
|
-
this.options = t, this.canvas = new st(e.size, e.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new
|
|
8475
|
+
this.options = t, this.canvas = new st(e.size, e.size), this.canvasContext = this.canvas.getContext("2d"), this.qrCode = new yt(-1, this.options.correctLevel), Number.isInteger(this.options.maskPattern) && (this.qrCode.maskPattern = this.options.maskPattern), Number.isInteger(this.options.version) && (this.qrCode.typeNumber = this.options.version), this.qrCode.addData(this.options.text), this.qrCode.make();
|
|
8451
8476
|
}
|
|
8452
8477
|
draw() {
|
|
8453
8478
|
return new Promise((e) => this._draw().then(e));
|
|
@@ -8503,15 +8528,15 @@ class Le {
|
|
|
8503
8528
|
_draw() {
|
|
8504
8529
|
var e, t, o, a, l, r, u, i, d, s, c, f, p, y, N, j, E, D, L;
|
|
8505
8530
|
return Gi(this, void 0, void 0, function* () {
|
|
8506
|
-
const
|
|
8531
|
+
const _ = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount, I = this.options.size;
|
|
8507
8532
|
let m = this.options.margin;
|
|
8508
8533
|
(m < 0 || m * 2 >= I) && (m = 0);
|
|
8509
|
-
const w = Math.ceil(m),
|
|
8534
|
+
const w = Math.ceil(m), M = I - 2 * m, U = this.options.whiteMargin, P = this.options.backgroundDimming, k = Math.ceil(M / _), x = k * _, S = x + 2 * w, A = new st(S, S), T = A.getContext("2d");
|
|
8510
8535
|
this._clear(), T.save(), T.translate(w, w);
|
|
8511
8536
|
const B = new st(S, S), g = B.getContext("2d");
|
|
8512
8537
|
let b = null, z = [];
|
|
8513
8538
|
if (this.options.gifBackground) {
|
|
8514
|
-
const le =
|
|
8539
|
+
const le = Mi(this.options.gifBackground);
|
|
8515
8540
|
if (b = le, z = Li(le, !0), this.options.autoColor) {
|
|
8516
8541
|
let ce = 0, ve = 0, we = 0, Ae = 0;
|
|
8517
8542
|
for (let R = 0; R < z[0].colorTable.length; R++) {
|
|
@@ -8530,9 +8555,9 @@ class Le {
|
|
|
8530
8555
|
} else
|
|
8531
8556
|
g.rect(0, 0, S, S), g.fillStyle = this.options.colorLight, g.fill();
|
|
8532
8557
|
const G = Ne.getPatternPosition(this.qrCode.typeNumber), H = ((o = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || o === void 0 ? void 0 : o.scale) || hn, ae = (1 - H) * 0.5;
|
|
8533
|
-
for (let le = 0; le <
|
|
8534
|
-
for (let ce = 0; ce <
|
|
8535
|
-
const ve = this.qrCode.isDark(le, ce), we = ce < 8 && (le < 8 || le >=
|
|
8558
|
+
for (let le = 0; le < _; le++)
|
|
8559
|
+
for (let ce = 0; ce < _; ce++) {
|
|
8560
|
+
const ve = this.qrCode.isDark(le, ce), we = ce < 8 && (le < 8 || le >= _ - 8) || ce >= _ - 8 && le < 8, Ae = le == 6 && ce >= 8 && ce <= _ - 8 || ce == 6 && le >= 8 && le <= _ - 8;
|
|
8536
8561
|
let R = we || Ae;
|
|
8537
8562
|
for (let ye = 1; ye < G.length - 1; ye++)
|
|
8538
8563
|
R = R || le >= G[ye] - 2 && le <= G[ye] + 2 && ce >= G[ye] - 2 && ce <= G[ye] + 2;
|
|
@@ -8540,12 +8565,12 @@ class Le {
|
|
|
8540
8565
|
if (T.strokeStyle = ve ? this.options.colorDark : this.options.colorLight, T.lineWidth = 0.5, T.fillStyle = ve ? this.options.colorDark : this.options.colorLight, G.length === 0)
|
|
8541
8566
|
R || T.fillRect(q, oe, (R ? 1 : H) * k, (R ? 1 : H) * k);
|
|
8542
8567
|
else {
|
|
8543
|
-
const ye = ce <
|
|
8568
|
+
const ye = ce < _ - 4 && ce >= _ - 4 - 5 && le < _ - 4 && le >= _ - 4 - 5;
|
|
8544
8569
|
!R && !ye && T.fillRect(q, oe, (R ? 1 : H) * k, (R ? 1 : H) * k);
|
|
8545
8570
|
}
|
|
8546
8571
|
}
|
|
8547
8572
|
const me = G[G.length - 1], J = this.options.colorLight;
|
|
8548
|
-
if (T.fillStyle = J, T.fillRect(0, 0, 8 * k, 8 * k), T.fillRect(0, (
|
|
8573
|
+
if (T.fillStyle = J, T.fillRect(0, 0, 8 * k, 8 * k), T.fillRect(0, (_ - 8) * k, 8 * k, 8 * k), T.fillRect((_ - 8) * k, 0, 8 * k, 8 * k), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (T.fillRect(8 * k, 6 * k, (_ - 8 - 8) * k, k), T.fillRect(6 * k, 8 * k, k, (_ - 8 - 8) * k)), !((u = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || u === void 0) && u.protectors && Le._drawAlignProtector(T, me, me, k), !((d = (i = this.options.components) === null || i === void 0 ? void 0 : i.alignment) === null || d === void 0) && d.protectors)
|
|
8549
8574
|
for (let le = 0; le < G.length; le++)
|
|
8550
8575
|
for (let ce = 0; ce < G.length; ce++) {
|
|
8551
8576
|
const ve = G[ce], we = G[le];
|
|
@@ -8557,12 +8582,12 @@ class Le {
|
|
|
8557
8582
|
Le._drawAlignProtector(T, ve, we, k);
|
|
8558
8583
|
}
|
|
8559
8584
|
}
|
|
8560
|
-
T.fillStyle = this.options.colorDark, T.fillRect(0, 0, 7 * k, k), T.fillRect((
|
|
8561
|
-
const
|
|
8562
|
-
for (let le = 0; le <
|
|
8563
|
-
Le._drawDot(T, 8 + le, 6, k, Re,
|
|
8564
|
-
const
|
|
8565
|
-
Le._drawAlign(T, me, me, k, ge,
|
|
8585
|
+
T.fillStyle = this.options.colorDark, T.fillRect(0, 0, 7 * k, k), T.fillRect((_ - 7) * k, 0, 7 * k, k), T.fillRect(0, 6 * k, 7 * k, k), T.fillRect((_ - 7) * k, 6 * k, 7 * k, k), T.fillRect(0, (_ - 7) * k, 7 * k, k), T.fillRect(0, (_ - 7 + 6) * k, 7 * k, k), T.fillRect(0, 0, k, 7 * k), T.fillRect(6 * k, 0, k, 7 * k), T.fillRect((_ - 7) * k, 0, k, 7 * k), T.fillRect((_ - 7 + 6) * k, 0, k, 7 * k), T.fillRect(0, (_ - 7) * k, k, 7 * k), T.fillRect(6 * k, (_ - 7) * k, k, 7 * k), T.fillRect(2 * k, 2 * k, 3 * k, 3 * k), T.fillRect((_ - 7 + 2) * k, 2 * k, 3 * k, 3 * k), T.fillRect(2 * k, (_ - 7 + 2) * k, 3 * k, 3 * k);
|
|
8586
|
+
const Me = ((c = (s = this.options.components) === null || s === void 0 ? void 0 : s.timing) === null || c === void 0 ? void 0 : c.scale) || hn, Re = (1 - Me) * 0.5;
|
|
8587
|
+
for (let le = 0; le < _ - 8; le += 2)
|
|
8588
|
+
Le._drawDot(T, 8 + le, 6, k, Re, Me), Le._drawDot(T, 6, 8 + le, k, Re, Me);
|
|
8589
|
+
const _e = ((p = (f = this.options.components) === null || f === void 0 ? void 0 : f.cornerAlignment) === null || p === void 0 ? void 0 : p.scale) || hn, ge = (1 - _e) * 0.5;
|
|
8590
|
+
Le._drawAlign(T, me, me, k, ge, _e, this.options.colorDark, ((N = (y = this.options.components) === null || y === void 0 ? void 0 : y.cornerAlignment) === null || N === void 0 ? void 0 : N.protectors) || !1);
|
|
8566
8591
|
const Ie = ((E = (j = this.options.components) === null || j === void 0 ? void 0 : j.alignment) === null || E === void 0 ? void 0 : E.scale) || hn, $e = (1 - Ie) * 0.5;
|
|
8567
8592
|
for (let le = 0; le < G.length; le++)
|
|
8568
8593
|
for (let ce = 0; ce < G.length; ce++) {
|
|
@@ -8839,7 +8864,7 @@ function Wi(n, e, t, o, a, l) {
|
|
|
8839
8864
|
src: a.imgUrl
|
|
8840
8865
|
}, null, 8, Ki)) : X("", !0);
|
|
8841
8866
|
}
|
|
8842
|
-
const Yi = /* @__PURE__ */
|
|
8867
|
+
const Yi = /* @__PURE__ */ ht(Hi, [["render", Wi]]);
|
|
8843
8868
|
function Ra(n = {}) {
|
|
8844
8869
|
const e = Y(!1);
|
|
8845
8870
|
return {
|
|
@@ -8872,8 +8897,8 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8872
8897
|
],
|
|
8873
8898
|
setup(n, { emit: e }) {
|
|
8874
8899
|
const { T: t } = ke(), { reload: o, reloadFlag: a } = Ra(), l = n, r = e, u = V(() => {
|
|
8875
|
-
var I, m, w,
|
|
8876
|
-
return (m = (I = l.board) == null ? void 0 : I.tableData) != null && m.keyName ? (
|
|
8900
|
+
var I, m, w, M;
|
|
8901
|
+
return (m = (I = l.board) == null ? void 0 : I.tableData) != null && m.keyName ? (M = (w = l.board) == null ? void 0 : w.tableData) == null ? void 0 : M.keyName : "";
|
|
8877
8902
|
}), i = Y([]);
|
|
8878
8903
|
function d(I, m) {
|
|
8879
8904
|
i.value = I, r("return-selected-key", i.value), r("return-selected-row", m.selectedRowData);
|
|
@@ -8896,7 +8921,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8896
8921
|
function p(I, m) {
|
|
8897
8922
|
if (I.value != "")
|
|
8898
8923
|
try {
|
|
8899
|
-
return
|
|
8924
|
+
return dt.render(I.value, { item: m });
|
|
8900
8925
|
} catch (w) {
|
|
8901
8926
|
console.error("GTable returnValue Error", w);
|
|
8902
8927
|
}
|
|
@@ -8904,31 +8929,31 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8904
8929
|
return Object.keys(f.value) ? Xl(m[I.keyName], f.value) : m[I.keyName];
|
|
8905
8930
|
}
|
|
8906
8931
|
function y(I) {
|
|
8907
|
-
return !
|
|
8932
|
+
return !mt(I) && I !== "";
|
|
8908
8933
|
}
|
|
8909
8934
|
const N = () => "<span class='empty'>----</span>";
|
|
8910
8935
|
function j(I, m) {
|
|
8911
8936
|
var w;
|
|
8912
8937
|
if (!We(I.enums)) {
|
|
8913
|
-
let
|
|
8938
|
+
let M = I.enums.filter((U) => {
|
|
8914
8939
|
if (m[I.keyName] == null && (m[I.keyName] = ""), U.value == String(m[I.keyName]))
|
|
8915
8940
|
return U.text;
|
|
8916
8941
|
});
|
|
8917
|
-
return
|
|
8942
|
+
return M.length ? (w = M.shift()) == null ? void 0 : w.text : y(m[I.keyName]) ? m[I.keyName] : N();
|
|
8918
8943
|
}
|
|
8919
8944
|
}
|
|
8920
8945
|
function E(I, m) {
|
|
8921
8946
|
if (I.value != "")
|
|
8922
|
-
return
|
|
8947
|
+
return dt.render(I.value, { item: m });
|
|
8923
8948
|
if (I.value == "")
|
|
8924
8949
|
return y(m[I.keyName]) ? ct(m[I.keyName]).format("YYYY-MM-DD HH:mm:ss") : N();
|
|
8925
8950
|
}
|
|
8926
8951
|
function D(I, m) {
|
|
8927
8952
|
return I.filter((w) => {
|
|
8928
8953
|
if (w.showIf != "1") {
|
|
8929
|
-
let
|
|
8954
|
+
let M, U;
|
|
8930
8955
|
try {
|
|
8931
|
-
|
|
8956
|
+
M = dt.render(w.showIf, { item: m }), U = qn(M, { item: m });
|
|
8932
8957
|
} catch (P) {
|
|
8933
8958
|
console.warn(P);
|
|
8934
8959
|
}
|
|
@@ -8940,7 +8965,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8940
8965
|
function L(I, m) {
|
|
8941
8966
|
r("table-button-action", I, m);
|
|
8942
8967
|
}
|
|
8943
|
-
function
|
|
8968
|
+
function _(I, m) {
|
|
8944
8969
|
r("table-form-confirm", I, m);
|
|
8945
8970
|
}
|
|
8946
8971
|
return De(
|
|
@@ -8948,7 +8973,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8948
8973
|
() => o(),
|
|
8949
8974
|
{ deep: !0 }
|
|
8950
8975
|
), (I, m) => {
|
|
8951
|
-
const w = Q("t-button"),
|
|
8976
|
+
const w = Q("t-button"), M = Q("t-popup"), U = Q("t-image"), P = Q("t-image-viewer"), k = Q("t-space");
|
|
8952
8977
|
return h(a) ? X("", !0) : (v(), $(h(fa), {
|
|
8953
8978
|
key: 0,
|
|
8954
8979
|
class: "g-table",
|
|
@@ -8986,7 +9011,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
8986
9011
|
}, null, 8, Ji)
|
|
8987
9012
|
]),
|
|
8988
9013
|
QR_CODE: C(({ col: x, row: S }) => [
|
|
8989
|
-
F(
|
|
9014
|
+
F(M, null, {
|
|
8990
9015
|
content: C(() => [
|
|
8991
9016
|
F(Yi, {
|
|
8992
9017
|
text: p(x, S),
|
|
@@ -9014,7 +9039,7 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9014
9039
|
viewName: I.viewName,
|
|
9015
9040
|
col: x,
|
|
9016
9041
|
row: S,
|
|
9017
|
-
onBlur:
|
|
9042
|
+
onBlur: _
|
|
9018
9043
|
}, null, 8, ["viewName", "col", "row"])
|
|
9019
9044
|
]),
|
|
9020
9045
|
IMAGE: C(({ col: x, row: S }) => [
|
|
@@ -9095,14 +9120,14 @@ const qi = { key: 0 }, Qi = ["innerHTML"], Xi = ["innerHTML"], Zi = ["innerHTML"
|
|
|
9095
9120
|
};
|
|
9096
9121
|
}
|
|
9097
9122
|
});
|
|
9098
|
-
const ou = /* @__PURE__ */
|
|
9123
|
+
const ou = /* @__PURE__ */ ht(nu, [["__scopeId", "data-v-45aeff49"]]), au = /* @__PURE__ */ ue({
|
|
9099
9124
|
__name: "index",
|
|
9100
9125
|
props: {
|
|
9101
9126
|
viewName: {},
|
|
9102
9127
|
board: {}
|
|
9103
9128
|
},
|
|
9104
9129
|
setup(n) {
|
|
9105
|
-
const e = n, t = kt(), o = rt(), a =
|
|
9130
|
+
const e = n, t = kt(), o = rt(), a = ft(), l = V(() => o.fullPath), r = V(() => {
|
|
9106
9131
|
var p;
|
|
9107
9132
|
return (p = e == null ? void 0 : e.board) == null ? void 0 : p.tabs;
|
|
9108
9133
|
}), u = Y(0), i = V(() => t.returnTabMenuItemActiveTab(l.value));
|
|
@@ -9178,7 +9203,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9178
9203
|
},
|
|
9179
9204
|
emits: ["close-dialog"],
|
|
9180
9205
|
setup(n, { emit: e }) {
|
|
9181
|
-
const { T: t } = ke(), o =
|
|
9206
|
+
const { T: t } = ke(), o = ft(), a = rt(), l = Ve(), r = oo(), u = ao(), i = n, { reload: d } = Ra(), s = e, c = V(() => {
|
|
9182
9207
|
var O;
|
|
9183
9208
|
return (O = i.board) == null ? void 0 : O.boardType;
|
|
9184
9209
|
}), f = V(() => {
|
|
@@ -9199,7 +9224,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9199
9224
|
const { viewName: O, ...K } = a.query;
|
|
9200
9225
|
return K;
|
|
9201
9226
|
}
|
|
9202
|
-
}),
|
|
9227
|
+
}), _ = Y({
|
|
9203
9228
|
count: 15,
|
|
9204
9229
|
page: 0,
|
|
9205
9230
|
totalCount: 0,
|
|
@@ -9207,24 +9232,24 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9207
9232
|
}), I = V(() => {
|
|
9208
9233
|
var K, se;
|
|
9209
9234
|
let O = {};
|
|
9210
|
-
return N.value && j.value && Object.assign(O, j.value), i.dialogProps && ((K = Object.keys(i.dialogProps)) != null && K.length) && Object.assign(O, i.dialogProps), c.value === "table" && Object.assign(O,
|
|
9235
|
+
return N.value && j.value && Object.assign(O, j.value), i.dialogProps && ((K = Object.keys(i.dialogProps)) != null && K.length) && Object.assign(O, i.dialogProps), c.value === "table" && Object.assign(O, _.value), i.serverProps && ((se = Object.keys(i.serverProps)) != null && se.length) && Object.assign(O, i.serverProps), Object.assign(O, L.value), O;
|
|
9211
9236
|
}), m = Y(!1), w = Y(!0);
|
|
9212
|
-
async function
|
|
9237
|
+
async function M() {
|
|
9213
9238
|
var O;
|
|
9214
9239
|
try {
|
|
9215
9240
|
if (m.value = !0, w.value && i.from == "view" && c.value == "table") {
|
|
9216
9241
|
const K = P.getFormData(a.fullPath);
|
|
9217
|
-
K != null && K.pagination && (
|
|
9242
|
+
K != null && K.pagination && (_.value = {
|
|
9218
9243
|
...K.pagination
|
|
9219
9244
|
});
|
|
9220
9245
|
}
|
|
9221
|
-
if (!
|
|
9246
|
+
if (!mt(f.value) && !mt(i.viewName)) {
|
|
9222
9247
|
const K = await tn({
|
|
9223
9248
|
dataId: f.value,
|
|
9224
9249
|
viewName: i.viewName,
|
|
9225
9250
|
props: I.value
|
|
9226
9251
|
});
|
|
9227
|
-
K.state === 200 && K.data && (c.value == "table" && (
|
|
9252
|
+
K.state === 200 && K.data && (c.value == "table" && (_.value = {
|
|
9228
9253
|
count: K.data.count,
|
|
9229
9254
|
page: K.data.page,
|
|
9230
9255
|
pageCount: K.data.pageCount,
|
|
@@ -9238,15 +9263,15 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9238
9263
|
}
|
|
9239
9264
|
}
|
|
9240
9265
|
Ue(() => {
|
|
9241
|
-
w.value = !0,
|
|
9266
|
+
w.value = !0, M(), ve(), window.addEventListener("onUpdateMessage", (O) => {
|
|
9242
9267
|
var se;
|
|
9243
9268
|
const K = (se = O == null ? void 0 : O.detail) == null ? void 0 : se.args.dataId;
|
|
9244
|
-
f.value === K &&
|
|
9269
|
+
f.value === K && M();
|
|
9245
9270
|
});
|
|
9246
9271
|
});
|
|
9247
9272
|
const U = kt(), P = Ln();
|
|
9248
9273
|
function k(O) {
|
|
9249
|
-
const K = Xe(j.value), se = Xe(
|
|
9274
|
+
const K = Xe(j.value), se = Xe(_.value);
|
|
9250
9275
|
U.findExistTabMenuItem({ path: O }) && P.setFormData(O, {
|
|
9251
9276
|
formData: K,
|
|
9252
9277
|
pagination: se
|
|
@@ -9259,7 +9284,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9259
9284
|
}), De(
|
|
9260
9285
|
() => i.board,
|
|
9261
9286
|
async () => {
|
|
9262
|
-
await
|
|
9287
|
+
await M();
|
|
9263
9288
|
},
|
|
9264
9289
|
{
|
|
9265
9290
|
deep: !0
|
|
@@ -9300,7 +9325,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9300
9325
|
}
|
|
9301
9326
|
case "CONFIRM": {
|
|
9302
9327
|
let pe;
|
|
9303
|
-
O.confirmMessage && O.confirmMessage != "" ? pe =
|
|
9328
|
+
O.confirmMessage && O.confirmMessage != "" ? pe = dt.render(O.confirmMessage, { item: K }) : pe = `${t.t("是否进行%s")}`.replace("%s", `${O.name}`);
|
|
9304
9329
|
let be = {};
|
|
9305
9330
|
O.props ? O.props.forEach((Je) => {
|
|
9306
9331
|
Je.keyName && (K[Je.keyName] ?? "") != "" && (be[Je.keyName] = K[Je.keyName]);
|
|
@@ -9391,7 +9416,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9391
9416
|
(Ce = O == null ? void 0 : O.props) == null || Ce.forEach((xe) => {
|
|
9392
9417
|
xe.keyName && (K[xe.keyName] ?? "") != "" && (pe[xe.keyName] = K[xe.keyName]);
|
|
9393
9418
|
});
|
|
9394
|
-
const be =
|
|
9419
|
+
const be = Mo.decode(dt.render(O.link, { item: K }));
|
|
9395
9420
|
if (O.outLink) {
|
|
9396
9421
|
const xe = wt(`${location.origin}${be}`, {
|
|
9397
9422
|
...pe,
|
|
@@ -9422,8 +9447,8 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9422
9447
|
let pe = {};
|
|
9423
9448
|
if (O.props && O.props.forEach((be) => {
|
|
9424
9449
|
be.keyName && (K[be.keyName] ?? "") != "" && (pe[be.keyName] = K[be.keyName]);
|
|
9425
|
-
}),
|
|
9426
|
-
|
|
9450
|
+
}), Me.value && Me.value.length > 0 && O.props && O.props.forEach((be) => {
|
|
9451
|
+
Me.value.forEach((xe) => {
|
|
9427
9452
|
if (be.keyName && fe(xe, be.keyName)) {
|
|
9428
9453
|
const Je = fe(xe, be.keyName);
|
|
9429
9454
|
pe[be.keyName] ? pe[be.keyName] = [
|
|
@@ -9442,7 +9467,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9442
9467
|
Ao(xe, Je, "blob");
|
|
9443
9468
|
}
|
|
9444
9469
|
} else if ((O.downloadUrl ?? "") != "") {
|
|
9445
|
-
const be =
|
|
9470
|
+
const be = Mo.decode(dt.render(O.downloadUrl, { item: K })), xe = wt(be, pe, !1);
|
|
9446
9471
|
if ((be ?? "") != "" && (xe ?? !1)) {
|
|
9447
9472
|
const Je = be.split("/").slice(-1)[0];
|
|
9448
9473
|
Ao(xe, Je, "file");
|
|
@@ -9460,12 +9485,12 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9460
9485
|
}
|
|
9461
9486
|
function ae(O) {
|
|
9462
9487
|
var se, ee;
|
|
9463
|
-
j.value = O,
|
|
9488
|
+
j.value = O, _.value = {
|
|
9464
9489
|
count: 15,
|
|
9465
9490
|
page: 0,
|
|
9466
9491
|
totalCount: 0,
|
|
9467
9492
|
pageCount: 0
|
|
9468
|
-
},
|
|
9493
|
+
}, M();
|
|
9469
9494
|
let K = Xe(O);
|
|
9470
9495
|
if (Object.keys(K).length)
|
|
9471
9496
|
for (const Ce in K)
|
|
@@ -9476,13 +9501,13 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9476
9501
|
function J(O) {
|
|
9477
9502
|
me.value = O;
|
|
9478
9503
|
}
|
|
9479
|
-
const
|
|
9504
|
+
const Me = Y([]);
|
|
9480
9505
|
function Re(O) {
|
|
9481
|
-
|
|
9506
|
+
Me.value = O;
|
|
9482
9507
|
}
|
|
9483
|
-
const
|
|
9508
|
+
const _e = Y([]), ge = V(() => $e.value.length ? _e.value.filter(
|
|
9484
9509
|
(K) => K.colKey == "row-select" || $e.value.indexOf(K.colKey) !== -1
|
|
9485
|
-
) :
|
|
9510
|
+
) : _e.value), Ie = Y([]), $e = Y([]), le = sa();
|
|
9486
9511
|
async function ce(O) {
|
|
9487
9512
|
const K = `${i.viewName}_${c.value}`;
|
|
9488
9513
|
await le.setColumnData(K, O) && ($e.value = O, he.success(t.t("设置成功")), d());
|
|
@@ -9496,7 +9521,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9496
9521
|
} catch (be) {
|
|
9497
9522
|
console.error("生成tableColumn出错", be);
|
|
9498
9523
|
}
|
|
9499
|
-
|
|
9524
|
+
_e.value = ee, Ie.value = Ql(
|
|
9500
9525
|
(se = i.board) == null ? void 0 : se.columns
|
|
9501
9526
|
);
|
|
9502
9527
|
const Ce = `${i.viewName}_${c.value}`, pe = le.getColumnData(Ce);
|
|
@@ -9506,10 +9531,10 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9506
9531
|
}
|
|
9507
9532
|
}
|
|
9508
9533
|
function we(O) {
|
|
9509
|
-
Object.assign(
|
|
9534
|
+
Object.assign(_.value, {
|
|
9510
9535
|
page: O.current - 1,
|
|
9511
9536
|
count: O.pageSize
|
|
9512
|
-
}),
|
|
9537
|
+
}), M();
|
|
9513
9538
|
}
|
|
9514
9539
|
async function Ae(O, K) {
|
|
9515
9540
|
G.value && (G.value.formOkButtonLoading || (G.value.formOkButtonLoading = !0));
|
|
@@ -9617,7 +9642,7 @@ const lu = /* @__PURE__ */ ue({
|
|
|
9617
9642
|
tableColumns: ge.value,
|
|
9618
9643
|
displayColumns: $e.value,
|
|
9619
9644
|
tableData: p.value,
|
|
9620
|
-
paginationProps:
|
|
9645
|
+
paginationProps: _.value,
|
|
9621
9646
|
headerFilterProps: E.value,
|
|
9622
9647
|
onTableButtonAction: H,
|
|
9623
9648
|
onTableFormConfirm: R,
|
|
@@ -9661,7 +9686,7 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9661
9686
|
config: {}
|
|
9662
9687
|
},
|
|
9663
9688
|
setup(n) {
|
|
9664
|
-
const e =
|
|
9689
|
+
const e = ft(), t = rt(), o = Ve(), a = kt(), l = oo(), r = n, u = Y(""), i = V(() => o.isUserLogin), d = V(() => o.homeUrl);
|
|
9665
9690
|
Jt(async () => {
|
|
9666
9691
|
i.value || (await o.initUserConfig(r.config), await a.initTabMenu());
|
|
9667
9692
|
}), Ue(async () => {
|
|
@@ -9693,16 +9718,16 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9693
9718
|
immediate: !0
|
|
9694
9719
|
}
|
|
9695
9720
|
);
|
|
9696
|
-
async function y(D, L,
|
|
9721
|
+
async function y(D, L, _ = void 0) {
|
|
9697
9722
|
var w;
|
|
9698
9723
|
const I = {};
|
|
9699
9724
|
I.viewName = D;
|
|
9700
9725
|
let m = "";
|
|
9701
9726
|
We(L) || (m = JSON.stringify(L)), I.props = m;
|
|
9702
9727
|
try {
|
|
9703
|
-
const
|
|
9704
|
-
if (
|
|
9705
|
-
f.value =
|
|
9728
|
+
const M = await ga(I);
|
|
9729
|
+
if (M.state === 200 && M.data) {
|
|
9730
|
+
f.value = M.data, u.value = (w = M.data) == null ? void 0 : w.title;
|
|
9706
9731
|
const U = decodeURIComponent(t.fullPath);
|
|
9707
9732
|
a.appendTabMenuItem({
|
|
9708
9733
|
title: u.value,
|
|
@@ -9710,8 +9735,8 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9710
9735
|
query: t.query
|
|
9711
9736
|
});
|
|
9712
9737
|
}
|
|
9713
|
-
} catch (
|
|
9714
|
-
console.log("getOneViewApi",
|
|
9738
|
+
} catch (M) {
|
|
9739
|
+
console.log("getOneViewApi", M);
|
|
9715
9740
|
}
|
|
9716
9741
|
}
|
|
9717
9742
|
const N = V(() => o.isGlobalLoaded), j = V(() => {
|
|
@@ -9727,9 +9752,9 @@ const kn = Ye(lu), ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
9727
9752
|
});
|
|
9728
9753
|
return At(ia, u), (D, L) => (v(), $(h(ca), Ee({ key: u.value }, E.value), {
|
|
9729
9754
|
default: C(() => {
|
|
9730
|
-
var
|
|
9755
|
+
var _;
|
|
9731
9756
|
return [
|
|
9732
|
-
N.value ? (v(!0), W(de, { key: 0 }, Se((
|
|
9757
|
+
N.value ? (v(!0), W(de, { key: 0 }, Se((_ = f.value) == null ? void 0 : _.boards, (I) => {
|
|
9733
9758
|
var m, w;
|
|
9734
9759
|
return v(), $(h(kn), {
|
|
9735
9760
|
key: `${(m = f.value) == null ? void 0 : m.viewName}_${I.boardType}`,
|
|
@@ -9985,13 +10010,13 @@ var iu = {
|
|
|
9985
10010
|
* (c) 2023 tdesign
|
|
9986
10011
|
* @license MIT
|
|
9987
10012
|
*/
|
|
9988
|
-
function
|
|
10013
|
+
function Mn(n) {
|
|
9989
10014
|
"@babel/helpers - typeof";
|
|
9990
|
-
return
|
|
10015
|
+
return Mn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9991
10016
|
return typeof e;
|
|
9992
10017
|
} : function(e) {
|
|
9993
10018
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9994
|
-
},
|
|
10019
|
+
}, Mn(n);
|
|
9995
10020
|
}
|
|
9996
10021
|
/**
|
|
9997
10022
|
* tdesign v1.5.1
|
|
@@ -10014,7 +10039,7 @@ var za = { exports: {} };
|
|
|
10014
10039
|
}, L = function(A, T, B) {
|
|
10015
10040
|
var g = String(A);
|
|
10016
10041
|
return !g || g.length >= T ? A : "" + Array(T + 1 - g.length).join(B) + A;
|
|
10017
|
-
},
|
|
10042
|
+
}, _ = {
|
|
10018
10043
|
s: L,
|
|
10019
10044
|
z: function(A) {
|
|
10020
10045
|
var T = -A.utcOffset(), B = Math.abs(T), g = Math.floor(B / 60), b = B % 60;
|
|
@@ -10050,7 +10075,7 @@ var za = { exports: {} };
|
|
|
10050
10075
|
m[I] = D;
|
|
10051
10076
|
var w = function(A) {
|
|
10052
10077
|
return A instanceof k;
|
|
10053
|
-
},
|
|
10078
|
+
}, M = function S(A, T, B) {
|
|
10054
10079
|
var g;
|
|
10055
10080
|
if (!A)
|
|
10056
10081
|
return I;
|
|
@@ -10068,10 +10093,10 @@ var za = { exports: {} };
|
|
|
10068
10093
|
}, U = function(A, T) {
|
|
10069
10094
|
if (w(A))
|
|
10070
10095
|
return A.clone();
|
|
10071
|
-
var B =
|
|
10096
|
+
var B = Mn(T) == "object" ? T : {};
|
|
10072
10097
|
return B.date = A, B.args = arguments, new k(B);
|
|
10073
|
-
}, P =
|
|
10074
|
-
P.l =
|
|
10098
|
+
}, P = _;
|
|
10099
|
+
P.l = M, P.i = w, P.w = function(S, A) {
|
|
10075
10100
|
return U(S, {
|
|
10076
10101
|
locale: A.$L,
|
|
10077
10102
|
utc: A.$u,
|
|
@@ -10081,7 +10106,7 @@ var za = { exports: {} };
|
|
|
10081
10106
|
};
|
|
10082
10107
|
var k = function() {
|
|
10083
10108
|
function S(T) {
|
|
10084
|
-
this.$L =
|
|
10109
|
+
this.$L = M(T.locale, null, !0), this.parse(T);
|
|
10085
10110
|
}
|
|
10086
10111
|
var A = S.prototype;
|
|
10087
10112
|
return A.parse = function(T) {
|
|
@@ -10128,24 +10153,24 @@ var za = { exports: {} };
|
|
|
10128
10153
|
return b ? le : le.endOf(d);
|
|
10129
10154
|
}, H = function(Ie, $e) {
|
|
10130
10155
|
return P.w(g.toDate()[Ie].apply(g.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($e)), g);
|
|
10131
|
-
}, ae = this.$W, me = this.$M, J = this.$D,
|
|
10156
|
+
}, ae = this.$W, me = this.$M, J = this.$D, Me = "set" + (this.$u ? "UTC" : "");
|
|
10132
10157
|
switch (z) {
|
|
10133
10158
|
case p:
|
|
10134
10159
|
return b ? G(1, 0) : G(31, 11);
|
|
10135
10160
|
case c:
|
|
10136
10161
|
return b ? G(1, me) : G(0, me + 1);
|
|
10137
10162
|
case s:
|
|
10138
|
-
var Re = this.$locale().weekStart || 0,
|
|
10139
|
-
return G(b ? J -
|
|
10163
|
+
var Re = this.$locale().weekStart || 0, _e = (ae < Re ? ae + 7 : ae) - Re;
|
|
10164
|
+
return G(b ? J - _e : J + (6 - _e), me);
|
|
10140
10165
|
case d:
|
|
10141
10166
|
case y:
|
|
10142
|
-
return H(
|
|
10167
|
+
return H(Me + "Hours", 0);
|
|
10143
10168
|
case i:
|
|
10144
|
-
return H(
|
|
10169
|
+
return H(Me + "Minutes", 1);
|
|
10145
10170
|
case u:
|
|
10146
|
-
return H(
|
|
10171
|
+
return H(Me + "Seconds", 2);
|
|
10147
10172
|
case r:
|
|
10148
|
-
return H(
|
|
10173
|
+
return H(Me + "Milliseconds", 3);
|
|
10149
10174
|
default:
|
|
10150
10175
|
return this.clone();
|
|
10151
10176
|
}
|
|
@@ -10167,8 +10192,8 @@ var za = { exports: {} };
|
|
|
10167
10192
|
var g, b = this;
|
|
10168
10193
|
T = Number(T);
|
|
10169
10194
|
var z = P.p(B), G = function(J) {
|
|
10170
|
-
var
|
|
10171
|
-
return P.w(
|
|
10195
|
+
var Me = U(b);
|
|
10196
|
+
return P.w(Me.date(Me.date() + Math.round(J * T)), b);
|
|
10172
10197
|
};
|
|
10173
10198
|
if (z === c)
|
|
10174
10199
|
return this.set(c, this.$M + T);
|
|
@@ -10186,11 +10211,11 @@ var za = { exports: {} };
|
|
|
10186
10211
|
var B = this, g = this.$locale();
|
|
10187
10212
|
if (!this.isValid())
|
|
10188
10213
|
return g.invalidDate || N;
|
|
10189
|
-
var b = T || "YYYY-MM-DDTHH:mm:ssZ", z = P.z(this), G = this.$H, H = this.$m, ae = this.$M, me = g.weekdays, J = g.months,
|
|
10214
|
+
var b = T || "YYYY-MM-DDTHH:mm:ssZ", z = P.z(this), G = this.$H, H = this.$m, ae = this.$M, me = g.weekdays, J = g.months, Me = g.meridiem, Re = function($e, le, ce, ve) {
|
|
10190
10215
|
return $e && ($e[le] || $e(B, b)) || ce[le].slice(0, ve);
|
|
10191
|
-
},
|
|
10216
|
+
}, _e = function($e) {
|
|
10192
10217
|
return P.s(G % 12 || 12, $e, "0");
|
|
10193
|
-
}, ge =
|
|
10218
|
+
}, ge = Me || function(Ie, $e, le) {
|
|
10194
10219
|
var ce = Ie < 12 ? "AM" : "PM";
|
|
10195
10220
|
return le ? ce.toLowerCase() : ce;
|
|
10196
10221
|
};
|
|
@@ -10226,9 +10251,9 @@ var za = { exports: {} };
|
|
|
10226
10251
|
case "HH":
|
|
10227
10252
|
return P.s(G, 2, "0");
|
|
10228
10253
|
case "h":
|
|
10229
|
-
return
|
|
10254
|
+
return _e(1);
|
|
10230
10255
|
case "hh":
|
|
10231
|
-
return
|
|
10256
|
+
return _e(2);
|
|
10232
10257
|
case "a":
|
|
10233
10258
|
return ge(G, H, !0);
|
|
10234
10259
|
case "A":
|
|
@@ -10291,7 +10316,7 @@ var za = { exports: {} };
|
|
|
10291
10316
|
}, A.locale = function(T, B) {
|
|
10292
10317
|
if (!T)
|
|
10293
10318
|
return this.$L;
|
|
10294
|
-
var g = this.clone(), b =
|
|
10319
|
+
var g = this.clone(), b = M(T, B, !0);
|
|
10295
10320
|
return b && (g.$L = b), g;
|
|
10296
10321
|
}, A.clone = function() {
|
|
10297
10322
|
return P.w(this.$d, this);
|
|
@@ -10311,7 +10336,7 @@ var za = { exports: {} };
|
|
|
10311
10336
|
};
|
|
10312
10337
|
}), U.extend = function(S, A) {
|
|
10313
10338
|
return S.$i || (S(A, k, U), S.$i = !0), U;
|
|
10314
|
-
}, U.locale =
|
|
10339
|
+
}, U.locale = M, U.isDayjs = w, U.unix = function(S) {
|
|
10315
10340
|
return U(1e3 * S);
|
|
10316
10341
|
}, U.en = m[I], U.Ls = m, U.p = {}, U;
|
|
10317
10342
|
});
|
|
@@ -10327,7 +10352,7 @@ var uu = { exports: {} };
|
|
|
10327
10352
|
n.exports = o(za.exports);
|
|
10328
10353
|
})(mo, function(t) {
|
|
10329
10354
|
function o(r) {
|
|
10330
|
-
return r &&
|
|
10355
|
+
return r && Mn(r) == "object" && "default" in r ? r : {
|
|
10331
10356
|
default: r
|
|
10332
10357
|
};
|
|
10333
10358
|
}
|
|
@@ -10628,7 +10653,7 @@ const du = { class: "gConfigProvider" }, mu = /* @__PURE__ */ ue({
|
|
|
10628
10653
|
}, 8, ["globalConfig"])
|
|
10629
10654
|
]));
|
|
10630
10655
|
}
|
|
10631
|
-
}), fu = Ye(mu), pu = "@gonsin/gview", hu = "2.0.
|
|
10656
|
+
}), fu = Ye(mu), pu = "@gonsin/gview", hu = "2.0.90", vu = "dist/index.mjs", gu = "dist/types/index.d.ts", yu = [
|
|
10632
10657
|
"dist",
|
|
10633
10658
|
"README.md",
|
|
10634
10659
|
"CHANGELOG.md"
|
|
@@ -10723,10 +10748,10 @@ function Cu(n) {
|
|
|
10723
10748
|
function ku() {
|
|
10724
10749
|
return Ze.post(fo.getMenus);
|
|
10725
10750
|
}
|
|
10726
|
-
function
|
|
10751
|
+
function Mu() {
|
|
10727
10752
|
return Ze.post(fo.getMenus, Xo.stringify({ currentMenu: !1 }));
|
|
10728
10753
|
}
|
|
10729
|
-
const
|
|
10754
|
+
const _u = [
|
|
10730
10755
|
{
|
|
10731
10756
|
stem: "app",
|
|
10732
10757
|
icon: "App"
|
|
@@ -11346,7 +11371,7 @@ const Mu = [
|
|
|
11346
11371
|
}, N = Y(), j = V(() => N.value.tTableRef), E = Y(), D = V(() => E.value.tFormRef), L = V(() => {
|
|
11347
11372
|
var R;
|
|
11348
11373
|
return (R = j.value) == null ? void 0 : R.getTreeNode();
|
|
11349
|
-
}),
|
|
11374
|
+
}), _ = V(() => {
|
|
11350
11375
|
switch (d.value) {
|
|
11351
11376
|
case "addGroup":
|
|
11352
11377
|
return `${e.t("添加菜单组")}`;
|
|
@@ -11364,10 +11389,10 @@ const Mu = [
|
|
|
11364
11389
|
label: R.title,
|
|
11365
11390
|
value: R.name
|
|
11366
11391
|
}))
|
|
11367
|
-
), w = rt(),
|
|
11392
|
+
), w = rt(), M = kt();
|
|
11368
11393
|
function U() {
|
|
11369
11394
|
const { fullPath: R, query: q } = w, oe = decodeURIComponent(R);
|
|
11370
|
-
|
|
11395
|
+
M.appendTabMenuItem({
|
|
11371
11396
|
title: o.value,
|
|
11372
11397
|
path: oe,
|
|
11373
11398
|
query: q
|
|
@@ -11385,7 +11410,7 @@ const Mu = [
|
|
|
11385
11410
|
return P.value.length ? P.value.some((q) => q.url === R.url) : !1;
|
|
11386
11411
|
}
|
|
11387
11412
|
async function A() {
|
|
11388
|
-
const R = await
|
|
11413
|
+
const R = await Mu();
|
|
11389
11414
|
R.state == 200 ? P.value = k(R.data) : console.error(`getInnerMenuOptionList ${R.message}`);
|
|
11390
11415
|
}
|
|
11391
11416
|
Ue(() => {
|
|
@@ -11484,7 +11509,7 @@ const Mu = [
|
|
|
11484
11509
|
function J(R) {
|
|
11485
11510
|
p.value = Xe(R), i.value = !0, d.value = "moveItemTo";
|
|
11486
11511
|
}
|
|
11487
|
-
function
|
|
11512
|
+
function Me() {
|
|
11488
11513
|
i.value = !1, setTimeout(() => {
|
|
11489
11514
|
Re();
|
|
11490
11515
|
}, 100);
|
|
@@ -11504,7 +11529,7 @@ const Mu = [
|
|
|
11504
11529
|
children: []
|
|
11505
11530
|
};
|
|
11506
11531
|
}
|
|
11507
|
-
function
|
|
11532
|
+
function _e() {
|
|
11508
11533
|
var R;
|
|
11509
11534
|
(R = D.value) == null || R.validate().then((q) => {
|
|
11510
11535
|
var oe, ye, Te, ie, O, K, se;
|
|
@@ -11520,7 +11545,7 @@ const Mu = [
|
|
|
11520
11545
|
), he.success(`${e.t("编辑菜单成功!")}`))) : d.value == "moveItemTo" && (ge(
|
|
11521
11546
|
p.value.name,
|
|
11522
11547
|
p.value.parent
|
|
11523
|
-
), he.success(`${e.t("转移组成功!")}`)), b(),
|
|
11548
|
+
), he.success(`${e.t("转移组成功!")}`)), b(), Me();
|
|
11524
11549
|
else {
|
|
11525
11550
|
const ee = (se = (K = Object.values(q)[0]) == null ? void 0 : K.filter(
|
|
11526
11551
|
(Ce) => Ce.result === !1
|
|
@@ -11717,10 +11742,10 @@ const Mu = [
|
|
|
11717
11742
|
}
|
|
11718
11743
|
}, {
|
|
11719
11744
|
treeExpandAndFoldIcon: C(({ type: ee }) => [
|
|
11720
|
-
ee === "expand" ? (v(), $(h(kl), { key: 0 })) : (v(), $(h(
|
|
11745
|
+
ee === "expand" ? (v(), $(h(kl), { key: 0 })) : (v(), $(h(Ml), { key: 1 }))
|
|
11721
11746
|
]),
|
|
11722
11747
|
drag: C(() => [
|
|
11723
|
-
F(h(
|
|
11748
|
+
F(h(_l))
|
|
11724
11749
|
]),
|
|
11725
11750
|
title: C(({ row: ee }) => [
|
|
11726
11751
|
ne("span", Iu, [
|
|
@@ -11733,7 +11758,7 @@ const Mu = [
|
|
|
11733
11758
|
class: "title-icon",
|
|
11734
11759
|
name: ee.icon,
|
|
11735
11760
|
size: "large"
|
|
11736
|
-
}, null, 8, ["name"])) : (v(), $(h(
|
|
11761
|
+
}, null, 8, ["name"])) : (v(), $(h(gt), {
|
|
11737
11762
|
key: 1,
|
|
11738
11763
|
class: "title-icon",
|
|
11739
11764
|
size: "large"
|
|
@@ -11805,8 +11830,8 @@ const Mu = [
|
|
|
11805
11830
|
F(h(ma), {
|
|
11806
11831
|
commonDialogProps: {
|
|
11807
11832
|
visible: i.value,
|
|
11808
|
-
onClose:
|
|
11809
|
-
header:
|
|
11833
|
+
onClose: Me,
|
|
11834
|
+
header: _.value,
|
|
11810
11835
|
footer: !1,
|
|
11811
11836
|
width: "650px"
|
|
11812
11837
|
}
|
|
@@ -11825,14 +11850,14 @@ const Mu = [
|
|
|
11825
11850
|
footer: C(() => [
|
|
11826
11851
|
F(oe, {
|
|
11827
11852
|
theme: "default",
|
|
11828
|
-
onClick:
|
|
11853
|
+
onClick: Me
|
|
11829
11854
|
}, {
|
|
11830
11855
|
default: C(() => [
|
|
11831
11856
|
re(te(h(e).t("取消")), 1)
|
|
11832
11857
|
]),
|
|
11833
11858
|
_: 1
|
|
11834
11859
|
}),
|
|
11835
|
-
F(oe, { onClick:
|
|
11860
|
+
F(oe, { onClick: _e }, {
|
|
11836
11861
|
default: C(() => [
|
|
11837
11862
|
re(te(h(e).t("确定")), 1)
|
|
11838
11863
|
]),
|
|
@@ -11899,7 +11924,7 @@ const Mu = [
|
|
|
11899
11924
|
])) : (v(), W("span", Eu, te(h(e).t("请选择图标标识")), 1))
|
|
11900
11925
|
]),
|
|
11901
11926
|
default: C(() => [
|
|
11902
|
-
(v(!0), W(de, null, Se(h(
|
|
11927
|
+
(v(!0), W(de, null, Se(h(_u), (ee) => (v(), $(O, {
|
|
11903
11928
|
value: ee.stem,
|
|
11904
11929
|
key: ee.stem,
|
|
11905
11930
|
class: "overlay-options"
|
|
@@ -12182,7 +12207,7 @@ const Sc = Ye(Au), Fu = /* @__PURE__ */ ue({
|
|
|
12182
12207
|
subTitle: { default: "Gonsin Conference affairs management system" }
|
|
12183
12208
|
},
|
|
12184
12209
|
setup(n) {
|
|
12185
|
-
const e = `${
|
|
12210
|
+
const e = `${_t}__title`;
|
|
12186
12211
|
return (t, o) => (v(), W("div", {
|
|
12187
12212
|
class: Z(`${e}`)
|
|
12188
12213
|
}, [
|
|
@@ -12197,7 +12222,7 @@ const Sc = Ye(Au), Fu = /* @__PURE__ */ ue({
|
|
|
12197
12222
|
}), $u = /* @__PURE__ */ ue({
|
|
12198
12223
|
__name: "GLoginForm",
|
|
12199
12224
|
setup(n) {
|
|
12200
|
-
const { T: e } = ke(), t = `${
|
|
12225
|
+
const { T: e } = ke(), t = `${_t}__form`;
|
|
12201
12226
|
return (o, a) => (v(), W("div", {
|
|
12202
12227
|
class: Z(`${t}`)
|
|
12203
12228
|
}, [
|
|
@@ -12217,13 +12242,13 @@ const Sc = Ye(Au), Fu = /* @__PURE__ */ ue({
|
|
|
12217
12242
|
copyrightLogoSrc: { default: Bu }
|
|
12218
12243
|
},
|
|
12219
12244
|
setup(n) {
|
|
12220
|
-
const e = `${
|
|
12245
|
+
const e = `${_t}__footer`;
|
|
12221
12246
|
return (t, o) => (v(), W("div", {
|
|
12222
12247
|
class: Z(`${e}`)
|
|
12223
12248
|
}, [
|
|
12224
12249
|
ne("span", {
|
|
12225
12250
|
class: Z(`${e}--logo`),
|
|
12226
|
-
style:
|
|
12251
|
+
style: bt({ backgroundImage: `url(${t.copyrightLogoSrc})` })
|
|
12227
12252
|
}, null, 6),
|
|
12228
12253
|
ne("div", {
|
|
12229
12254
|
class: Z(`${e}--copyright`)
|
|
@@ -12247,11 +12272,11 @@ const Sc = Ye(Au), Fu = /* @__PURE__ */ ue({
|
|
|
12247
12272
|
},
|
|
12248
12273
|
setup(n) {
|
|
12249
12274
|
return (e, t) => (v(), W("div", {
|
|
12250
|
-
class: Z(`${h(
|
|
12275
|
+
class: Z(`${h(_t)}`)
|
|
12251
12276
|
}, [
|
|
12252
12277
|
ne("video", {
|
|
12253
|
-
class: Z(`${h(
|
|
12254
|
-
style:
|
|
12278
|
+
class: Z(`${h(_t)}__bgVideo`),
|
|
12279
|
+
style: bt({ backgroundImage: `url(${e.bgImgSrc})` }),
|
|
12255
12280
|
poster: e.bgImgSrc,
|
|
12256
12281
|
autoplay: "",
|
|
12257
12282
|
muted: "",
|
|
@@ -12267,10 +12292,10 @@ const Sc = Ye(Au), Fu = /* @__PURE__ */ ue({
|
|
|
12267
12292
|
}, null, 8, Ru)
|
|
12268
12293
|
], 14, Ou),
|
|
12269
12294
|
ne("div", {
|
|
12270
|
-
class: Z(`${h(
|
|
12295
|
+
class: Z(`${h(_t)}__overlay`)
|
|
12271
12296
|
}, null, 2),
|
|
12272
12297
|
ne("div", {
|
|
12273
|
-
class: Z(`${h(
|
|
12298
|
+
class: Z(`${h(_t)}__container`)
|
|
12274
12299
|
}, [
|
|
12275
12300
|
F(Fu, {
|
|
12276
12301
|
title: e.title,
|
|
@@ -12337,11 +12362,11 @@ export {
|
|
|
12337
12362
|
Xt as LOCAL_SESSION_ID,
|
|
12338
12363
|
on as LOCAL_SIDE_MENU_CONFIG,
|
|
12339
12364
|
xn as LOCAL_TAB_MENU,
|
|
12340
|
-
|
|
12365
|
+
_o as LOCAL_THEME_CONFIG,
|
|
12341
12366
|
Nl as LOCAL_USER,
|
|
12342
12367
|
xc as NProgress,
|
|
12343
12368
|
pc as PROJECT_PREFIX,
|
|
12344
|
-
|
|
12369
|
+
_c as RequestConfig,
|
|
12345
12370
|
or as RequestHttp,
|
|
12346
12371
|
ln as SESSION_COLUMN_DATA,
|
|
12347
12372
|
an as SESSION_FORM_DATA_CACHE,
|
|
@@ -12367,7 +12392,7 @@ export {
|
|
|
12367
12392
|
Yn as flattenMenuData,
|
|
12368
12393
|
Ol as formClass,
|
|
12369
12394
|
Do as formItemClass,
|
|
12370
|
-
|
|
12395
|
+
_t as gLoginClass,
|
|
12371
12396
|
bn as generateMenuTree,
|
|
12372
12397
|
na as getBrandColor,
|
|
12373
12398
|
Jo as getHomeUrl,
|
|
@@ -12381,7 +12406,7 @@ export {
|
|
|
12381
12406
|
ql as initTableColumns,
|
|
12382
12407
|
Ql as initTableDisplayColumns,
|
|
12383
12408
|
aa as initTreeSelectorData,
|
|
12384
|
-
|
|
12409
|
+
pt as is,
|
|
12385
12410
|
Ct as isArray,
|
|
12386
12411
|
bc as isAsyncFunction,
|
|
12387
12412
|
Yl as isBoolean,
|
|
@@ -12391,7 +12416,7 @@ export {
|
|
|
12391
12416
|
kc as isElement,
|
|
12392
12417
|
wn as isFormVoid,
|
|
12393
12418
|
Dt as isFunction,
|
|
12394
|
-
|
|
12419
|
+
mt as isNull,
|
|
12395
12420
|
No as isNullAndUnDef,
|
|
12396
12421
|
We as isNullOrUnDef,
|
|
12397
12422
|
yc as isNumber,
|
|
@@ -12399,7 +12424,7 @@ export {
|
|
|
12399
12424
|
en as isOuterUrl,
|
|
12400
12425
|
Wl as isPromise,
|
|
12401
12426
|
Zl as isResourceUrl,
|
|
12402
|
-
|
|
12427
|
+
Mc as isServer,
|
|
12403
12428
|
wc as isString,
|
|
12404
12429
|
oa as isUnDef,
|
|
12405
12430
|
Cc as isWindow,
|