hrp-ui-base 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.es.js
CHANGED
|
@@ -67,8 +67,8 @@ const Dt = { style: { width: "100%", height: "100%" } }, Wt = {
|
|
|
67
67
|
r.value = !1;
|
|
68
68
|
};
|
|
69
69
|
return (l, g) => {
|
|
70
|
-
const G = Z("el-button"),
|
|
71
|
-
return e(), C(
|
|
70
|
+
const G = Z("el-button"), w = Z("el-dialog");
|
|
71
|
+
return e(), C(w, {
|
|
72
72
|
modelValue: r.value,
|
|
73
73
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => r.value = y),
|
|
74
74
|
title: A.value,
|
|
@@ -341,7 +341,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
341
341
|
n([]), n([]);
|
|
342
342
|
const m = () => {
|
|
343
343
|
J.value.url = "", J.value.srcList = [];
|
|
344
|
-
}, l = n(!1), g = n([]), G = n(""),
|
|
344
|
+
}, l = n(!1), g = n([]), G = n(""), w = async (i) => {
|
|
345
345
|
if (T(!0), !(i.size / 1024 / 1024 < 20))
|
|
346
346
|
return T(!1), rA.error("上传文件大小不能超过 20MB!"), !1;
|
|
347
347
|
G.value = i.name;
|
|
@@ -407,8 +407,8 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
407
407
|
var K, H;
|
|
408
408
|
if (F(i.url) === "jpg" || F(i.url) === "png" || F(i.url) === "bmp" || F(i.url) === "jpeg" || F(i.url) === "raw" || F(i.url) === "heif" || F(i.url) === "tiff" || F(i.url) === "gif")
|
|
409
409
|
J.value.url = i.url, J.value.srcList = [i.url], OA(() => {
|
|
410
|
-
var
|
|
411
|
-
(
|
|
410
|
+
var U;
|
|
411
|
+
(U = AA.value) == null || U.showPreview();
|
|
412
412
|
});
|
|
413
413
|
else if (F(i.url) === "mp3")
|
|
414
414
|
(K = M.value) == null || K.open("mp3", i);
|
|
@@ -418,12 +418,12 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
418
418
|
_A(i);
|
|
419
419
|
else
|
|
420
420
|
try {
|
|
421
|
-
let
|
|
422
|
-
|
|
421
|
+
let U = sessionStorage.getItem("userConfig") ? JSON.parse(sessionStorage.getItem("userConfig")) : null;
|
|
422
|
+
U && U.fileUploadType === "oss" ? await KA.getFilePreview(i.fileId).then((B) => {
|
|
423
423
|
B.code == 200 && B.res ? re(
|
|
424
424
|
window.location.origin + window.location.pathname + "ay-doc/index.html?url=" + B.res.webOfficeUrl + "&token=" + B.res.accessToken
|
|
425
425
|
) : rA.error("预览失败,请稍后再试!");
|
|
426
|
-
}) :
|
|
426
|
+
}) : U && U.fileUploadType === "minio" && KA.getMinioFilePreview(i.fileId).then((B) => {
|
|
427
427
|
B.code == 200 && B.res && window.open(
|
|
428
428
|
window.location.origin + window.location.pathname + "preview/onlinePreview?url=" + B.res
|
|
429
429
|
);
|
|
@@ -439,7 +439,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
439
439
|
clearFileList: D,
|
|
440
440
|
sendFileList: f
|
|
441
441
|
}), (i, q) => {
|
|
442
|
-
const K = Z("el-button"), H = Z("el-upload"),
|
|
442
|
+
const K = Z("el-button"), H = Z("el-upload"), U = Z("el-image"), B = Z("el-tooltip"), S = FA("loading");
|
|
443
443
|
return e(), u("div", Gt, [
|
|
444
444
|
A.formType != "detail" ? (e(), C(H, {
|
|
445
445
|
key: 0,
|
|
@@ -449,7 +449,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
449
449
|
"onUpdate:fileList": q[0] || (q[0] = (P) => g.value = P),
|
|
450
450
|
"auto-upload": !0,
|
|
451
451
|
accept: ".docx,.doc,.xls,.xlsx,.jpg,.pdf,.png,.bmp,.ppt,.pptx,.jpeg,.tiff,.raw,.heif,.gif,.mp3,.mp4,.rar,.zip,.7z,.wps,.DOCX,.DOC,.XLS,.XLSX,.JPG,.PDF,.PNG,.BMP,.PPT,.PPTX,.JPEG,.TIFF,.RAW,.HEIF,.GIF,.MP3,.MP4,.dcm,.DCM,.RAR,.ZIP,.7Z,.WPS",
|
|
452
|
-
"before-upload":
|
|
452
|
+
"before-upload": w,
|
|
453
453
|
action: c,
|
|
454
454
|
"show-file-list": !1,
|
|
455
455
|
data: { pageId: A.pageId },
|
|
@@ -490,7 +490,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
490
490
|
}, [
|
|
491
491
|
o("div", Et, [
|
|
492
492
|
o("div", qt, [
|
|
493
|
-
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(
|
|
493
|
+
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(U, {
|
|
494
494
|
key: 0,
|
|
495
495
|
class: "file-list-item-icon",
|
|
496
496
|
src: P.url,
|
|
@@ -559,7 +559,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
559
559
|
], 8, Zt))), 128)),
|
|
560
560
|
A.formType == "detail" && !(f.value && Array.isArray(f.value) && f.value.length > 0) ? (e(), u("div", tn, " 暂无附件 ")) : L("", !0)
|
|
561
561
|
]),
|
|
562
|
-
b(
|
|
562
|
+
b(U, {
|
|
563
563
|
style: { display: "none" },
|
|
564
564
|
ref_key: "previewImgRef",
|
|
565
565
|
ref: AA,
|
|
@@ -591,8 +591,8 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
591
591
|
r.value = !1;
|
|
592
592
|
};
|
|
593
593
|
return (l, g) => {
|
|
594
|
-
const G = Z("el-button"),
|
|
595
|
-
return e(), C(
|
|
594
|
+
const G = Z("el-button"), w = Z("el-dialog");
|
|
595
|
+
return e(), C(w, {
|
|
596
596
|
modelValue: r.value,
|
|
597
597
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => r.value = y),
|
|
598
598
|
title: A.value,
|
|
@@ -737,7 +737,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
737
737
|
n([]), n([]);
|
|
738
738
|
const m = () => {
|
|
739
739
|
J.value.url = "", J.value.srcList = [];
|
|
740
|
-
}, l = n(!1), g = n([]), G = n(""),
|
|
740
|
+
}, l = n(!1), g = n([]), G = n(""), w = async (i) => {
|
|
741
741
|
if (T(!0), !(i.size / 1024 / 1024 < 20))
|
|
742
742
|
return T(!1), rA.error("上传文件大小不能超过 20MB!"), !1;
|
|
743
743
|
G.value = i.name;
|
|
@@ -782,12 +782,12 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
782
782
|
const Q = async (i, q) => {
|
|
783
783
|
var K, H;
|
|
784
784
|
F(i.url) === "jpg" || F(i.url) === "png" || F(i.url) === "bmp" || F(i.url) === "jpeg" || F(i.url) === "raw" || F(i.url) === "heif" || F(i.url) === "tiff" || F(i.url) === "gif" ? (J.value.url = i.url, J.value.srcList = [i.url], OA(() => {
|
|
785
|
-
var
|
|
786
|
-
(
|
|
787
|
-
})) : F(i.url) === "mp3" ? (K = M.value) == null || K.open("mp3", i) : F(i.url) === "mp4" ? (H = M.value) == null || H.open("mp4", i) : A.type === "oss" ? await KA.getFilePreview(i.fileId).then((
|
|
788
|
-
|
|
789
|
-
}) : A.type === "minio" && KA.getMinioFilePreview(i.fileId).then((
|
|
790
|
-
|
|
785
|
+
var U;
|
|
786
|
+
(U = AA.value) == null || U.showPreview();
|
|
787
|
+
})) : F(i.url) === "mp3" ? (K = M.value) == null || K.open("mp3", i) : F(i.url) === "mp4" ? (H = M.value) == null || H.open("mp4", i) : A.type === "oss" ? await KA.getFilePreview(i.fileId).then((U) => {
|
|
788
|
+
U.code == 200 && U.res ? re(window.location.origin + window.location.pathname + "ay-doc/index.html?url=" + U.res.webOfficeUrl + "&token=" + U.res.accessToken) : rA.error("预览失败,请稍后再试!");
|
|
789
|
+
}) : A.type === "minio" && KA.getMinioFilePreview(i.fileId).then((U) => {
|
|
790
|
+
U.code == 200 && U.res && window.open(window.location.origin + window.location.pathname + "preview/onlinePreview?url=" + U.res);
|
|
791
791
|
});
|
|
792
792
|
}, AA = n(), J = n({
|
|
793
793
|
url: "",
|
|
@@ -797,7 +797,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
797
797
|
clearFileList: D,
|
|
798
798
|
sendFileList: f
|
|
799
799
|
}), (i, q) => {
|
|
800
|
-
const K = Z("el-button"), H = Z("el-upload"),
|
|
800
|
+
const K = Z("el-button"), H = Z("el-upload"), U = Z("el-image"), B = Z("el-tooltip"), S = FA("loading");
|
|
801
801
|
return e(), u("div", gn, [
|
|
802
802
|
A.formType != "detail" ? (e(), C(H, {
|
|
803
803
|
key: 0,
|
|
@@ -807,7 +807,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
807
807
|
"onUpdate:fileList": q[0] || (q[0] = (P) => g.value = P),
|
|
808
808
|
"auto-upload": !0,
|
|
809
809
|
accept: ".jpg,.png,.jpeg,.JPG,.PNG,.JPEG",
|
|
810
|
-
"before-upload":
|
|
810
|
+
"before-upload": w,
|
|
811
811
|
action: c,
|
|
812
812
|
"show-file-list": !1,
|
|
813
813
|
data: { pageId: A.pageId },
|
|
@@ -847,7 +847,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
847
847
|
}, [
|
|
848
848
|
o("div", Xn, [
|
|
849
849
|
o("div", Mn, [
|
|
850
|
-
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(
|
|
850
|
+
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(U, {
|
|
851
851
|
key: 0,
|
|
852
852
|
class: "file-list-item-icon",
|
|
853
853
|
src: P.url,
|
|
@@ -916,7 +916,7 @@ const Gt = { class: "upload-attachments" }, Lt = { class: "el-upload__tip" }, Ot
|
|
|
916
916
|
]))), 128)),
|
|
917
917
|
A.formType == "detail" && !(f.value && Array.isArray(f.value) && f.value.length > 0) ? (e(), u("div", Zn, " 暂无附件 ")) : L("", !0)
|
|
918
918
|
]),
|
|
919
|
-
b(
|
|
919
|
+
b(U, {
|
|
920
920
|
style: { display: "none" },
|
|
921
921
|
ref_key: "previewImgRef",
|
|
922
922
|
ref: AA,
|
|
@@ -1017,7 +1017,7 @@ const qn = /* @__PURE__ */ mA({
|
|
|
1017
1017
|
fieldConditionBO: x.tagsList,
|
|
1018
1018
|
keyValue: x.keyValue
|
|
1019
1019
|
};
|
|
1020
|
-
},
|
|
1020
|
+
}, w = async () => {
|
|
1021
1021
|
if (!(!g.value || !await g.value.validate())) {
|
|
1022
1022
|
c.value = !0;
|
|
1023
1023
|
try {
|
|
@@ -1053,7 +1053,7 @@ const qn = /* @__PURE__ */ mA({
|
|
|
1053
1053
|
b(Q, {
|
|
1054
1054
|
disabled: c.value,
|
|
1055
1055
|
type: "primary",
|
|
1056
|
-
onClick:
|
|
1056
|
+
onClick: w
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: v(() => [...x[3] || (x[3] = [
|
|
1059
1059
|
tA(" 保 存 ", -1)
|
|
@@ -1200,7 +1200,7 @@ const Nn = { style: { "font-size": "var(--font-size-body)", color: "var(--custom
|
|
|
1200
1200
|
} finally {
|
|
1201
1201
|
d.value = !1;
|
|
1202
1202
|
}
|
|
1203
|
-
},
|
|
1203
|
+
}, w = n({
|
|
1204
1204
|
animation: 200,
|
|
1205
1205
|
group: "description",
|
|
1206
1206
|
disabled: !1,
|
|
@@ -1284,14 +1284,14 @@ const Nn = { style: { "font-size": "var(--font-size-body)", color: "var(--custom
|
|
|
1284
1284
|
tag: "transition-group",
|
|
1285
1285
|
modelValue: l.value.viewVOList,
|
|
1286
1286
|
"onUpdate:modelValue": D[0] || (D[0] = (H) => l.value.viewVOList = H)
|
|
1287
|
-
},
|
|
1287
|
+
}, w.value, {
|
|
1288
1288
|
onStart: D[1] || (D[1] = (H) => y.value = !0),
|
|
1289
1289
|
onEnd: D[2] || (D[2] = (H) => y.value = !1),
|
|
1290
1290
|
"item-key": "group",
|
|
1291
1291
|
onSort: j,
|
|
1292
1292
|
style: { height: "100%", width: "100%" }
|
|
1293
1293
|
}), {
|
|
1294
|
-
item: v(({ element: H, index:
|
|
1294
|
+
item: v(({ element: H, index: U }) => [
|
|
1295
1295
|
o("div", {
|
|
1296
1296
|
class: jA("view-package-item flex-row-between " + (H.ifSystemDefault ? "" : "drggViewPackageManageDialig"))
|
|
1297
1297
|
}, [
|
|
@@ -1388,28 +1388,28 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1388
1388
|
};
|
|
1389
1389
|
t({ open: c, clearFieldByFieldName: (x) => {
|
|
1390
1390
|
var p, f;
|
|
1391
|
-
if (
|
|
1392
|
-
for (let E = 0; E <
|
|
1393
|
-
if (((f = (p =
|
|
1394
|
-
|
|
1391
|
+
if (w.value && Array.isArray(w.value)) {
|
|
1392
|
+
for (let E = 0; E < w.value.length; E++)
|
|
1393
|
+
if (((f = (p = w.value[E]) == null ? void 0 : p.originData) == null ? void 0 : f.field) === x) {
|
|
1394
|
+
w.value[E].currentData = "", w.value[E].currentShowData = "";
|
|
1395
1395
|
break;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
} });
|
|
1399
|
-
const
|
|
1399
|
+
const w = n([]), y = n([]), j = () => {
|
|
1400
1400
|
let x = [];
|
|
1401
|
-
if (
|
|
1402
|
-
for (let p = 0; p <
|
|
1403
|
-
|
|
1404
|
-
name:
|
|
1405
|
-
id:
|
|
1406
|
-
value:
|
|
1407
|
-
valueShow:
|
|
1408
|
-
}) :
|
|
1409
|
-
name:
|
|
1410
|
-
id:
|
|
1411
|
-
value:
|
|
1412
|
-
valueShow:
|
|
1401
|
+
if (w.value && Array.isArray(w.value) && w.value.length > 0)
|
|
1402
|
+
for (let p = 0; p < w.value.length; p++)
|
|
1403
|
+
w.value[p].originData.type === "date-range" || w.value[p].originData.type === "date-time-range" || w.value[p].originData.type === "input-number" || w.value[p].originData.type === "multiple_select" ? w.value[p].currentData && w.value[p].currentData.length > 0 && x.push({
|
|
1404
|
+
name: w.value[p].originData.name,
|
|
1405
|
+
id: w.value[p].originData.id,
|
|
1406
|
+
value: w.value[p].currentData,
|
|
1407
|
+
valueShow: w.value[p].currentShowData
|
|
1408
|
+
}) : w.value[p].currentData && x.push({
|
|
1409
|
+
name: w.value[p].originData.name,
|
|
1410
|
+
id: w.value[p].originData.id,
|
|
1411
|
+
value: w.value[p].currentData,
|
|
1412
|
+
valueShow: w.value[p].currentShowData
|
|
1413
1413
|
});
|
|
1414
1414
|
y.value = x;
|
|
1415
1415
|
};
|
|
@@ -1443,7 +1443,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1443
1443
|
style: { width: "100%" },
|
|
1444
1444
|
ref_for: !0,
|
|
1445
1445
|
ref_key: "sonComponent",
|
|
1446
|
-
ref:
|
|
1446
|
+
ref: w
|
|
1447
1447
|
}, null, 40, ["option", "index"])) : qA(x.$slots, T.slotName, { key: 1 }, void 0, !0)
|
|
1448
1448
|
])
|
|
1449
1449
|
])) : L("", !0)
|
|
@@ -1512,7 +1512,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1512
1512
|
});
|
|
1513
1513
|
};
|
|
1514
1514
|
n(0);
|
|
1515
|
-
const G = n({ total: 0, pageNum: 1, pageSize: A.defaultPageSizeValue }),
|
|
1515
|
+
const G = n({ total: 0, pageNum: 1, pageSize: A.defaultPageSizeValue }), w = n(0), y = dt(() => {
|
|
1516
1516
|
let X = document.getElementsByClassName("normal-list-box")[0] ? document.getElementsByClassName("normal-list-box")[0].clientHeight : 0, O = document.getElementsByClassName(
|
|
1517
1517
|
"list-search-content-box"
|
|
1518
1518
|
)[0] ? document.getElementsByClassName("list-search-content-box")[0].clientHeight : 0, I = document.getElementsByClassName(
|
|
@@ -1520,7 +1520,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1520
1520
|
)[0] ? document.getElementsByClassName("list-tag-list")[0].clientHeight : 0, k = document.getElementsByClassName(
|
|
1521
1521
|
"list-page-content-footer-box"
|
|
1522
1522
|
)[0] ? document.getElementsByClassName("list-page-content-footer-box")[0].clientHeight : 0;
|
|
1523
|
-
|
|
1523
|
+
w.value = X && O && k ? X - O - k - I - 20 : 0;
|
|
1524
1524
|
}, 500), j = n(!0);
|
|
1525
1525
|
CA(() => {
|
|
1526
1526
|
y(), window.addEventListener("resize", y), g(void 0), setTimeout(() => {
|
|
@@ -1580,7 +1580,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1580
1580
|
}, K = () => {
|
|
1581
1581
|
var X;
|
|
1582
1582
|
(X = H.value) == null || X.open(l.value.searchList || [], P.value);
|
|
1583
|
-
}, H = n(),
|
|
1583
|
+
}, H = n(), U = (X) => {
|
|
1584
1584
|
P.value = X, yA();
|
|
1585
1585
|
}, B = (X) => {
|
|
1586
1586
|
a("filterValueChange", X);
|
|
@@ -1909,7 +1909,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1909
1909
|
})
|
|
1910
1910
|
])) : L("", !0),
|
|
1911
1911
|
o("div", {
|
|
1912
|
-
style: RA({ height:
|
|
1912
|
+
style: RA({ height: w.value + "px" }),
|
|
1913
1913
|
class: "list-search-content-list"
|
|
1914
1914
|
}, [
|
|
1915
1915
|
qA(X.$slots, "list", {}, void 0, !0)
|
|
@@ -1947,7 +1947,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1947
1947
|
ref: H,
|
|
1948
1948
|
baseOptionConfig: l.value,
|
|
1949
1949
|
style: { position: "absolute", top: "62px", left: "11px", width: "98%" },
|
|
1950
|
-
onSuccess:
|
|
1950
|
+
onSuccess: U,
|
|
1951
1951
|
onFilterValueChange: B
|
|
1952
1952
|
}, et({ _: 2 }, [
|
|
1953
1953
|
UA(S.value, (R) => ({
|
|
@@ -1977,8 +1977,8 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
1977
1977
|
r.value = !1;
|
|
1978
1978
|
};
|
|
1979
1979
|
return (l, g) => {
|
|
1980
|
-
const G = Z("el-button"),
|
|
1981
|
-
return e(), C(
|
|
1980
|
+
const G = Z("el-button"), w = Z("el-dialog");
|
|
1981
|
+
return e(), C(w, {
|
|
1982
1982
|
modelValue: r.value,
|
|
1983
1983
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => r.value = y),
|
|
1984
1984
|
title: A.value,
|
|
@@ -2129,7 +2129,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2129
2129
|
n([]), n([]);
|
|
2130
2130
|
const m = () => {
|
|
2131
2131
|
J.value.url = "", J.value.srcList = [];
|
|
2132
|
-
}, l = n(!1), g = n([]), G = n(""),
|
|
2132
|
+
}, l = n(!1), g = n([]), G = n(""), w = async (i) => {
|
|
2133
2133
|
if (T(!0), !(i.size / 1024 / 1024 < 50))
|
|
2134
2134
|
return T(!1), rA.error("上传文件大小不能超过 50MB!"), !1;
|
|
2135
2135
|
G.value = i.name;
|
|
@@ -2195,8 +2195,8 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2195
2195
|
var K, H;
|
|
2196
2196
|
if (F(i.url) === "jpg" || F(i.url) === "png" || F(i.url) === "bmp" || F(i.url) === "jpeg" || F(i.url) === "raw" || F(i.url) === "heif" || F(i.url) === "tiff" || F(i.url) === "gif")
|
|
2197
2197
|
J.value.url = i.url, J.value.srcList = [i.url], OA(() => {
|
|
2198
|
-
var
|
|
2199
|
-
(
|
|
2198
|
+
var U;
|
|
2199
|
+
(U = AA.value) == null || U.showPreview();
|
|
2200
2200
|
});
|
|
2201
2201
|
else if (F(i.url) === "mp3")
|
|
2202
2202
|
(K = M.value) == null || K.open("mp3", i);
|
|
@@ -2206,12 +2206,12 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2206
2206
|
_A(i);
|
|
2207
2207
|
else
|
|
2208
2208
|
try {
|
|
2209
|
-
let
|
|
2210
|
-
|
|
2209
|
+
let U = sessionStorage.getItem("userConfig") ? JSON.parse(sessionStorage.getItem("userConfig")) : null;
|
|
2210
|
+
U && U.fileUploadType === "oss" ? await KA.getFilePreview(i.fileId).then((B) => {
|
|
2211
2211
|
B.code == 200 && B.res ? re(
|
|
2212
2212
|
window.location.origin + window.location.pathname + "ay-doc/index.html?url=" + B.res.webOfficeUrl + "&token=" + B.res.accessToken
|
|
2213
2213
|
) : rA.error("预览失败,请稍后再试!");
|
|
2214
|
-
}) :
|
|
2214
|
+
}) : U && U.fileUploadType === "minio" && KA.getMinioFilePreview(i.fileId).then((B) => {
|
|
2215
2215
|
B.code == 200 && B.res && window.open(
|
|
2216
2216
|
window.location.origin + window.location.pathname + "preview/onlinePreview?url=" + B.res
|
|
2217
2217
|
);
|
|
@@ -2227,7 +2227,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2227
2227
|
clearFileList: D,
|
|
2228
2228
|
sendFileList: f
|
|
2229
2229
|
}), (i, q) => {
|
|
2230
|
-
const K = Z("el-button"), H = Z("el-upload"),
|
|
2230
|
+
const K = Z("el-button"), H = Z("el-upload"), U = Z("el-image"), B = Z("el-tooltip"), S = FA("loading");
|
|
2231
2231
|
return e(), u("div", Nr, [
|
|
2232
2232
|
A.formType != "detail" ? (e(), C(H, {
|
|
2233
2233
|
key: 0,
|
|
@@ -2237,7 +2237,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2237
2237
|
"onUpdate:fileList": q[0] || (q[0] = (P) => g.value = P),
|
|
2238
2238
|
"auto-upload": !0,
|
|
2239
2239
|
accept: ".docx,.doc,.xls,.xlsx,.jpg,.pdf,.png,.bmp,.ppt,.pptx,.jpeg,.tiff,.raw,.heif,.gif,.mp3,.mp4,.rar,.zip,.7z,.wps,.dcm,.DOCX,.DOC,.XLS,.XLSX,.JPG,.PDF,.PNG,.BMP,.PPT,.PPTX,.JPEG,.TIFF,.RAW,.HEIF,.GIF,.MP3,.MP4,.RAR,.ZIP,.7Z,.WPS,.DCM",
|
|
2240
|
-
"before-upload":
|
|
2240
|
+
"before-upload": w,
|
|
2241
2241
|
action: c,
|
|
2242
2242
|
"show-file-list": !1,
|
|
2243
2243
|
data: { pageId: A.pageId },
|
|
@@ -2278,7 +2278,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2278
2278
|
}, [
|
|
2279
2279
|
o("div", Rr, [
|
|
2280
2280
|
o("div", Ir, [
|
|
2281
|
-
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(
|
|
2281
|
+
N(F)(P.url) === "jpg" || N(F)(P.url) === "png" || N(F)(P.url) === "bmp" || N(F)(P.url) === "jpeg" || N(F)(P.url) === "raw" || N(F)(P.url) === "heif" || N(F)(P.url) === "tiff" || N(F)(P.url) === "gif" ? BA((e(), C(U, {
|
|
2282
2282
|
key: 0,
|
|
2283
2283
|
class: "file-list-item-icon",
|
|
2284
2284
|
src: P.url,
|
|
@@ -2347,7 +2347,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2347
2347
|
], 8, Qr))), 128)),
|
|
2348
2348
|
A.formType == "detail" && !(f.value && Array.isArray(f.value) && f.value.length > 0) ? (e(), u("div", uo, " 暂无附件 ")) : L("", !0)
|
|
2349
2349
|
]),
|
|
2350
|
-
b(
|
|
2350
|
+
b(U, {
|
|
2351
2351
|
style: { display: "none" },
|
|
2352
2352
|
ref_key: "previewImgRef",
|
|
2353
2353
|
ref: AA,
|
|
@@ -2447,7 +2447,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2447
2447
|
]);
|
|
2448
2448
|
};
|
|
2449
2449
|
}
|
|
2450
|
-
}), Be = /* @__PURE__ */ zA(bo, [["__scopeId", "data-v-
|
|
2450
|
+
}), Be = /* @__PURE__ */ zA(bo, [["__scopeId", "data-v-066302f3"]]), po = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3e%3cg%20id='组_984'%20data-name='组%20984'%20transform='translate(-228.923%20-135.922)'%3e%3crect%20id='BG'%20width='34'%20height='34'%20rx='4'%20transform='translate(228.923%20135.922)'%20fill='none'/%3e%3cg%20id='_021_待办事项'%20data-name='021_待办事项'%20transform='translate(84.342%20-60.988)'%3e%3cpath%20id='路径_194'%20data-name='路径%20194'%20d='M175.317,430H151.361a.877.877,0,1,1,0-1.752h23.955a.877.877,0,1,1,0,1.752Z'%20transform='translate(-1.804%20-217.227)'%20fill='%23909399'/%3e%3cpath%20id='路径_195'%20data-name='路径%20195'%20d='M170.863,294.253H152.3c-2.052,0-3.715-1.948-3.717-4.349V275.029c0-2.4,1.665-4.346,3.717-4.349h18.565c2.052,0,3.715,1.948,3.717,4.349V289.9C174.578,292.3,172.915,294.25,170.863,294.253ZM152.3,272.812a2.077,2.077,0,0,0-1.9,2.217V289.9a2.077,2.077,0,0,0,1.9,2.217h18.565a2.075,2.075,0,0,0,1.9-2.217V275.029a2.075,2.075,0,0,0-1.9-2.217Z'%20transform='translate(0%20-66.843)'%20fill='%23909399'/%3e%3cpath%20id='路径_196'%20data-name='路径%20196'%20d='M316.574,207.988a.912.912,0,0,1-.944-.876v-4.826a.946.946,0,0,1,1.887,0v4.826A.912.912,0,0,1,316.574,207.988Zm12.084,0a.912.912,0,0,1-.944-.876v-4.826a.946.946,0,0,1,1.887,0v4.826A.912.912,0,0,1,328.657,207.988Z'%20transform='translate(-161.196)'%20fill='%23909399'/%3e%3cpath%20id='路径_197'%20data-name='路径%20197'%20d='M365.189,608.967a.873.873,0,0,1-.606-.245l-2.768-2.653a.876.876,0,1,1,1.212-1.265l2.768,2.653a.876.876,0,0,1-.606,1.509Z'%20transform='translate(-205.138%20-386.825)'%20fill='%23909399'/%3e%3cpath%20id='路径_198'%20data-name='路径%20198'%20d='M441.752,532.249a.876.876,0,0,1-.606-1.509l5.686-5.446a.876.876,0,1,1,1.212,1.265l-5.686,5.446A.873.873,0,0,1,441.752,532.249Z'%20transform='translate(-281.47%20-310.102)'%20fill='%23909399'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", go = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3e%3cg%20id='组_984'%20data-name='组%20984'%20transform='translate(-228.923%20-135.922)'%3e%3crect%20id='BG'%20width='34'%20height='34'%20rx='4'%20transform='translate(228.923%20135.922)'%20fill='none'/%3e%3cg%20id='_021_待办事项'%20data-name='021_待办事项'%20transform='translate(84.342%20-60.988)'%3e%3cpath%20id='路径_194'%20data-name='路径%20194'%20d='M175.317,430H151.361a.877.877,0,1,1,0-1.752h23.955a.877.877,0,1,1,0,1.752Z'%20transform='translate(-1.804%20-217.227)'%20fill='%23409eff'/%3e%3cpath%20id='路径_195'%20data-name='路径%20195'%20d='M170.863,294.253H152.3c-2.052,0-3.715-1.948-3.717-4.349V275.029c0-2.4,1.665-4.346,3.717-4.349h18.565c2.052,0,3.715,1.948,3.717,4.349V289.9C174.578,292.3,172.915,294.25,170.863,294.253ZM152.3,272.812a2.077,2.077,0,0,0-1.9,2.217V289.9a2.077,2.077,0,0,0,1.9,2.217h18.565a2.075,2.075,0,0,0,1.9-2.217V275.029a2.075,2.075,0,0,0-1.9-2.217Z'%20transform='translate(0%20-66.843)'%20fill='%23409eff'/%3e%3cpath%20id='路径_196'%20data-name='路径%20196'%20d='M316.574,207.988a.912.912,0,0,1-.944-.876v-4.826a.946.946,0,0,1,1.887,0v4.826A.912.912,0,0,1,316.574,207.988Zm12.084,0a.912.912,0,0,1-.944-.876v-4.826a.946.946,0,0,1,1.887,0v4.826A.912.912,0,0,1,328.657,207.988Z'%20transform='translate(-161.196)'%20fill='%23409eff'/%3e%3cpath%20id='路径_197'%20data-name='路径%20197'%20d='M365.189,608.967a.873.873,0,0,1-.606-.245l-2.768-2.653a.876.876,0,1,1,1.212-1.265l2.768,2.653a.876.876,0,0,1-.606,1.509Z'%20transform='translate(-205.138%20-386.825)'%20fill='%23409eff'/%3e%3cpath%20id='路径_198'%20data-name='路径%20198'%20d='M441.752,532.249a.876.876,0,0,1-.606-1.509l5.686-5.446a.876.876,0,1,1,1.212,1.265l-5.686,5.446A.873.873,0,0,1,441.752,532.249Z'%20transform='translate(-281.47%20-310.102)'%20fill='%23409eff'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", xo = ["src"], Po = ["src"], Xo = {
|
|
2451
2451
|
class: "popover-tooltip-custom",
|
|
2452
2452
|
ref: "popoverTooptipRef"
|
|
2453
2453
|
}, Mo = /* @__PURE__ */ mA({
|
|
@@ -2474,7 +2474,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2474
2474
|
d.value = !d.value, A("click");
|
|
2475
2475
|
};
|
|
2476
2476
|
return (g, G) => {
|
|
2477
|
-
const
|
|
2477
|
+
const w = Z("el-badge");
|
|
2478
2478
|
return e(), u("div", null, [
|
|
2479
2479
|
o("div", {
|
|
2480
2480
|
class: jA("icon-box " + (d.value ? "icon-box-active" : "")),
|
|
@@ -2485,7 +2485,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2485
2485
|
onMousemove: c,
|
|
2486
2486
|
style: { overflow: "visible" }
|
|
2487
2487
|
}, [
|
|
2488
|
-
b(
|
|
2488
|
+
b(w, {
|
|
2489
2489
|
value: m.value,
|
|
2490
2490
|
class: "item",
|
|
2491
2491
|
max: 99,
|
|
@@ -2526,12 +2526,12 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2526
2526
|
emits: ["click"],
|
|
2527
2527
|
setup(s, { expose: t, emit: r }) {
|
|
2528
2528
|
const A = s, a = r, d = n(!1), c = n(A.active || !1);
|
|
2529
|
-
bA(() => A.active, (
|
|
2530
|
-
c.value = !!
|
|
2529
|
+
bA(() => A.active, (w) => {
|
|
2530
|
+
c.value = !!w;
|
|
2531
2531
|
});
|
|
2532
2532
|
const z = n(A.noticeCount || 0);
|
|
2533
|
-
bA(() => A.noticeCount, (
|
|
2534
|
-
z.value =
|
|
2533
|
+
bA(() => A.noticeCount, (w) => {
|
|
2534
|
+
z.value = w || 0;
|
|
2535
2535
|
});
|
|
2536
2536
|
const m = () => {
|
|
2537
2537
|
d.value = !0;
|
|
@@ -2542,7 +2542,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2542
2542
|
};
|
|
2543
2543
|
return t({ close: () => {
|
|
2544
2544
|
c.value = !1;
|
|
2545
|
-
} }), (
|
|
2545
|
+
} }), (w, y) => {
|
|
2546
2546
|
const j = Z("el-badge");
|
|
2547
2547
|
return e(), u("div", Bo, [
|
|
2548
2548
|
o("div", {
|
|
@@ -2651,7 +2651,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2651
2651
|
a.value = !1;
|
|
2652
2652
|
}, G = () => {
|
|
2653
2653
|
A("change-follow-system", z.value);
|
|
2654
|
-
},
|
|
2654
|
+
}, w = () => {
|
|
2655
2655
|
A("change-dark", m.value, c.value);
|
|
2656
2656
|
}, y = n(), j = n(), x = (p) => {
|
|
2657
2657
|
d.value = p, a.value = !1;
|
|
@@ -2686,7 +2686,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2686
2686
|
modelValue: m.value,
|
|
2687
2687
|
"onUpdate:modelValue": f[1] || (f[1] = (D) => m.value = D),
|
|
2688
2688
|
style: { "--el-switch-on-color": "#333333", "--el-switch-off-color": "var(--custom-theme-info-normal)", "--switch-border-color": "#f3f3f3", margin: "0 12px" },
|
|
2689
|
-
onChange:
|
|
2689
|
+
onChange: w,
|
|
2690
2690
|
"active-action-icon": "Moon",
|
|
2691
2691
|
"inactive-action-icon": "Sunny",
|
|
2692
2692
|
"active-value": "night",
|
|
@@ -2741,8 +2741,8 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2741
2741
|
emits: ["change"],
|
|
2742
2742
|
setup(s, { emit: t }) {
|
|
2743
2743
|
const r = s, A = t, a = n(r.fontSize);
|
|
2744
|
-
bA(() => r.fontSize, (
|
|
2745
|
-
a.value =
|
|
2744
|
+
bA(() => r.fontSize, (w) => {
|
|
2745
|
+
a.value = w;
|
|
2746
2746
|
});
|
|
2747
2747
|
const d = n([
|
|
2748
2748
|
{ label: "小", value: "small" },
|
|
@@ -2752,12 +2752,12 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2752
2752
|
c.value = !0;
|
|
2753
2753
|
}, l = () => {
|
|
2754
2754
|
c.value = !1;
|
|
2755
|
-
}, g = (
|
|
2756
|
-
z.value =
|
|
2757
|
-
}, G = (
|
|
2758
|
-
A("change",
|
|
2755
|
+
}, g = (w) => {
|
|
2756
|
+
z.value = w, c.value = !1;
|
|
2757
|
+
}, G = (w) => {
|
|
2758
|
+
A("change", w);
|
|
2759
2759
|
};
|
|
2760
|
-
return (
|
|
2760
|
+
return (w, y) => {
|
|
2761
2761
|
const j = Z("el-segmented"), x = Z("el-dropdown");
|
|
2762
2762
|
return e(), u("div", null, [
|
|
2763
2763
|
b(x, {
|
|
@@ -2822,7 +2822,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2822
2822
|
c.value = !1;
|
|
2823
2823
|
}, G = (y) => {
|
|
2824
2824
|
z.value = y, c.value = !1;
|
|
2825
|
-
},
|
|
2825
|
+
}, w = (y) => {
|
|
2826
2826
|
A("change", y);
|
|
2827
2827
|
};
|
|
2828
2828
|
return (y, j) => {
|
|
@@ -2840,7 +2840,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2840
2840
|
"onUpdate:modelValue": j[0] || (j[0] = (f) => a.value = f),
|
|
2841
2841
|
options: d.value,
|
|
2842
2842
|
size: "default",
|
|
2843
|
-
onChange:
|
|
2843
|
+
onChange: w
|
|
2844
2844
|
}, null, 8, ["modelValue", "options"])
|
|
2845
2845
|
])
|
|
2846
2846
|
]),
|
|
@@ -2902,13 +2902,13 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2902
2902
|
return CA(() => {
|
|
2903
2903
|
ct.env.platform !== "notInDingTalk" ? a.value = !0 : a.value = !1, window.oaTool && window.oaTool.isOA ? d.value = !0 : d.value = !1;
|
|
2904
2904
|
}), (g, G) => {
|
|
2905
|
-
const
|
|
2905
|
+
const w = Z("el-dropdown-item"), y = Z("el-dropdown-menu"), j = Z("el-dropdown");
|
|
2906
2906
|
return e(), u("div", null, [
|
|
2907
2907
|
b(j, null, {
|
|
2908
2908
|
dropdown: v(() => [
|
|
2909
2909
|
b(y, null, {
|
|
2910
2910
|
default: v(() => [
|
|
2911
|
-
b(
|
|
2911
|
+
b(w, { onClick: z }, {
|
|
2912
2912
|
default: v(() => [...G[0] || (G[0] = [
|
|
2913
2913
|
tA("个人签名", -1)
|
|
2914
2914
|
])]),
|
|
@@ -2919,7 +2919,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2919
2919
|
}),
|
|
2920
2920
|
b(y, null, {
|
|
2921
2921
|
default: v(() => [
|
|
2922
|
-
b(
|
|
2922
|
+
b(w, { onClick: m }, {
|
|
2923
2923
|
default: v(() => [...G[1] || (G[1] = [
|
|
2924
2924
|
tA("清理缓存", -1)
|
|
2925
2925
|
])]),
|
|
@@ -2930,7 +2930,7 @@ const Sn = { key: 0 }, _n = ["title"], $n = { class: "search-condition-box" }, A
|
|
|
2930
2930
|
}),
|
|
2931
2931
|
!a.value && !d.value ? (e(), C(y, { key: 0 }, {
|
|
2932
2932
|
default: v(() => [
|
|
2933
|
-
b(
|
|
2933
|
+
b(w, { onClick: l }, {
|
|
2934
2934
|
default: v(() => [...G[2] || (G[2] = [
|
|
2935
2935
|
tA("退出登录", -1)
|
|
2936
2936
|
])]),
|
|
@@ -3183,9 +3183,9 @@ const p2 = {
|
|
|
3183
3183
|
__name: "message-notification-drawer",
|
|
3184
3184
|
emits: ["close", "update-count", "navigate", "download"],
|
|
3185
3185
|
setup(s, { expose: t, emit: r }) {
|
|
3186
|
-
const A = r, a = n(!1), d = n(!1), c = n(!1), z = n("all"), m = n(!1), l = n(!1), g = n(!1), G = n(!1),
|
|
3186
|
+
const A = r, a = n(!1), d = n(!1), c = n(!1), z = n("all"), m = n(!1), l = n(!1), g = n(!1), G = n(!1), w = async () => {
|
|
3187
3187
|
a.value = !0, c.value = !0, q(), await E();
|
|
3188
|
-
}, y = async (
|
|
3188
|
+
}, y = async (U) => {
|
|
3189
3189
|
}, j = async () => {
|
|
3190
3190
|
f.value > x.value.offset + 10 && (d.value = !0, x.value.offset += 10, await E());
|
|
3191
3191
|
}, x = n({
|
|
@@ -3195,17 +3195,17 @@ const p2 = {
|
|
|
3195
3195
|
pageSize: 10,
|
|
3196
3196
|
pageNum: 1
|
|
3197
3197
|
}), p = n([]), f = n(0), E = async () => {
|
|
3198
|
-
x.value.noticeType = z.value, x.value.timeStamp = ve.unix(ve().unix()).format("YYYY-MM-DD HH:mm:ss"), await VA.selectNoticePage(x.value).then((
|
|
3199
|
-
|
|
3198
|
+
x.value.noticeType = z.value, x.value.timeStamp = ve.unix(ve().unix()).format("YYYY-MM-DD HH:mm:ss"), await VA.selectNoticePage(x.value).then((U) => {
|
|
3199
|
+
U.code === 200 && U.res ? (U.res.records && p.value.push(...U.res.records), f.value = U.res.total, m.value = p.value.length === 0, l.value = !0, g.value = f.value > x.value.offset + 10) : U.code === 200 && U.res === null && (p.value = [], m.value = !0, l.value = !0, g.value = f.value > x.value.offset + 10);
|
|
3200
3200
|
}).finally(() => {
|
|
3201
3201
|
a.value = !1, d.value = !1;
|
|
3202
3202
|
});
|
|
3203
|
-
}, T = (
|
|
3204
|
-
let B = new Date(
|
|
3203
|
+
}, T = (U) => {
|
|
3204
|
+
let B = new Date(U);
|
|
3205
3205
|
return B.getFullYear() + "年" + ("0" + (B.getMonth() + 1)).slice(-2) + "月" + ("0" + B.getDate()).slice(-2) + "日 " + B.getHours() + ":" + ("0" + B.getMinutes()).slice(-2);
|
|
3206
3206
|
};
|
|
3207
|
-
document.addEventListener("mouseup", function(
|
|
3208
|
-
let B =
|
|
3207
|
+
document.addEventListener("mouseup", function(U) {
|
|
3208
|
+
let B = U.target, S = document.querySelectorAll(".el-notification__closeBtn");
|
|
3209
3209
|
if (S)
|
|
3210
3210
|
for (let P = 0; P < S.length; P++)
|
|
3211
3211
|
S[P].id = "el-notification__closeBtn";
|
|
@@ -3215,28 +3215,28 @@ const p2 = {
|
|
|
3215
3215
|
}, !0);
|
|
3216
3216
|
const D = async () => {
|
|
3217
3217
|
x.value.pageNum = 1, p.value = [], x.value.offset = 0, l.value = !1, a.value = !0, await E();
|
|
3218
|
-
}, Q = (
|
|
3219
|
-
VA.deleteNoticeInfoByNoticeIds([
|
|
3220
|
-
B.code === 200 && B && (p.value = p.value.filter((S) => S.noticeId !==
|
|
3218
|
+
}, Q = (U) => {
|
|
3219
|
+
VA.deleteNoticeInfoByNoticeIds([U.noticeId]).then((B) => {
|
|
3220
|
+
B.code === 200 && B && (p.value = p.value.filter((S) => S.noticeId !== U.noticeId), x.value.offset = x.value.offset - 1, m.value = p.value.length === 0 && !g.value, A("update-count"));
|
|
3221
3221
|
});
|
|
3222
3222
|
}, AA = async () => {
|
|
3223
|
-
await VA.readNoticeInfoByNoticeType(z.value).then(async (
|
|
3224
|
-
|
|
3223
|
+
await VA.readNoticeInfoByNoticeType(z.value).then(async (U) => {
|
|
3224
|
+
U.code === 200 && U && (p.value = [], x.value.pageNum = 1, x.value.offset = 0, await E(), A("update-count"));
|
|
3225
3225
|
});
|
|
3226
3226
|
}, J = async () => {
|
|
3227
|
-
await VA.deleteReadNoticeInfoByNoticeType(z.value).then(async (
|
|
3228
|
-
|
|
3227
|
+
await VA.deleteReadNoticeInfoByNoticeType(z.value).then(async (U) => {
|
|
3228
|
+
U.code === 200 && U && (rA({ type: "success", message: "删除成功" }), p.value = [], x.value.pageNum = 1, x.value.offset = 0, await E());
|
|
3229
3229
|
});
|
|
3230
|
-
}, M = async (
|
|
3231
|
-
await VA.readNoticeInfo(
|
|
3232
|
-
}, i = async (
|
|
3233
|
-
|
|
3230
|
+
}, M = async (U) => {
|
|
3231
|
+
await VA.readNoticeInfo(U.noticeId), U.ifRead = !0, A("navigate", U), A("update-count"), K();
|
|
3232
|
+
}, i = async (U) => {
|
|
3233
|
+
U.ifRead || (U.ifRead = !0, await VA.readNoticeInfo(U.noticeId), A("update-count")), A("download", U), K();
|
|
3234
3234
|
}, q = () => {
|
|
3235
3235
|
z.value = "all", x.value.pageNum = 1, x.value.offset = 0, x.value.timeStamp = "", p.value = [];
|
|
3236
3236
|
}, K = () => {
|
|
3237
3237
|
c.value = !1, A("close");
|
|
3238
3238
|
};
|
|
3239
|
-
t({ open:
|
|
3239
|
+
t({ open: w, close: K });
|
|
3240
3240
|
let H = Ae("messageInfo", n({
|
|
3241
3241
|
noticeId: "",
|
|
3242
3242
|
noticeType: "",
|
|
@@ -3246,9 +3246,9 @@ const p2 = {
|
|
|
3246
3246
|
ifRead: !1,
|
|
3247
3247
|
noticeTime: ""
|
|
3248
3248
|
}));
|
|
3249
|
-
return bA(() => H.value, (
|
|
3249
|
+
return bA(() => H.value, (U) => {
|
|
3250
3250
|
(H.value.noticeType === z.value || z.value === "all" || z.value === "unread") && (p.value.unshift(H.value), m.value = p.value.length === 0);
|
|
3251
|
-
}, { immediate: !0, deep: !0 }), (
|
|
3251
|
+
}, { immediate: !0, deep: !0 }), (U, B) => {
|
|
3252
3252
|
const S = Z("el-icon"), P = Z("el-option"), PA = Z("el-select"), xA = Z("el-button"), ZA = Z("el-dropdown-item"), hA = Z("el-dropdown-menu"), EA = Z("el-dropdown"), WA = Z("el-badge"), yA = FA("loading");
|
|
3253
3253
|
return e(), u("div", null, [
|
|
3254
3254
|
b(SA, { name: "slide-left" }, {
|
|
@@ -3709,7 +3709,7 @@ const p2 = {
|
|
|
3709
3709
|
(e(!0), u(pA, null, UA(m.children, (g, G) => (e(), u("div", {
|
|
3710
3710
|
key: G,
|
|
3711
3711
|
class: jA(["menu-item", { "is-active": a(g.url) }]),
|
|
3712
|
-
onClick: (
|
|
3712
|
+
onClick: (w) => d(g)
|
|
3713
3713
|
}, [
|
|
3714
3714
|
o("span", ml, $(g.menuName), 1),
|
|
3715
3715
|
z[0] || (z[0] = o("i", { class: "el-icon-arrow-right menu-arrow" }, null, -1))
|
|
@@ -3773,7 +3773,7 @@ const p2 = {
|
|
|
3773
3773
|
setup(s, { emit: t }) {
|
|
3774
3774
|
const r = s, A = t, a = HA(() => r.menuList), d = HA(() => r.menuPosition), c = HA(
|
|
3775
3775
|
() => d.value === "left" && r.navigationBar
|
|
3776
|
-
), z = n(null), m = n(null), l = n(null), g = n(!1), G = n(!1),
|
|
3776
|
+
), z = n(null), m = n(null), l = n(null), g = n(!1), G = n(!1), w = n(null), y = n([]), j = n([]), x = n(/* @__PURE__ */ new Set()), p = n({}), f = n(null), E = n(0), T = n([]), D = HA(() => f.value === null ? null : a.value[f.value] || null), Q = HA(() => {
|
|
3777
3777
|
const Y = r.currentPath;
|
|
3778
3778
|
for (let _ = 0; _ < a.value.length; _++) {
|
|
3779
3779
|
const dA = a.value[_];
|
|
@@ -3809,11 +3809,11 @@ const p2 = {
|
|
|
3809
3809
|
}
|
|
3810
3810
|
let q = null, K = null;
|
|
3811
3811
|
function H() {
|
|
3812
|
-
|
|
3812
|
+
U(), q = setTimeout(() => {
|
|
3813
3813
|
oA();
|
|
3814
3814
|
}, 150);
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function U() {
|
|
3817
3817
|
q && (clearTimeout(q), q = null);
|
|
3818
3818
|
}
|
|
3819
3819
|
function B() {
|
|
@@ -3821,12 +3821,12 @@ const p2 = {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
function S(Y, _) {
|
|
3823
3823
|
if (!(d.value === "left" || !r.showSubmenuDrawer)) {
|
|
3824
|
-
if (
|
|
3824
|
+
if (U(), B(), !Y.children || Y.children.length === 0) {
|
|
3825
3825
|
oA();
|
|
3826
3826
|
return;
|
|
3827
3827
|
}
|
|
3828
3828
|
K = setTimeout(() => {
|
|
3829
|
-
|
|
3829
|
+
w.value = _, j.value = Y.children, G.value = !0;
|
|
3830
3830
|
}, 500);
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
@@ -3834,7 +3834,7 @@ const p2 = {
|
|
|
3834
3834
|
d.value !== "left" && (B(), H());
|
|
3835
3835
|
}
|
|
3836
3836
|
function PA() {
|
|
3837
|
-
|
|
3837
|
+
U(), B();
|
|
3838
3838
|
}
|
|
3839
3839
|
function xA() {
|
|
3840
3840
|
H();
|
|
@@ -3974,7 +3974,7 @@ const p2 = {
|
|
|
3974
3974
|
A("collapse-change", !r.navigationBar);
|
|
3975
3975
|
}
|
|
3976
3976
|
function oA() {
|
|
3977
|
-
G.value = !1,
|
|
3977
|
+
G.value = !1, w.value = null;
|
|
3978
3978
|
}
|
|
3979
3979
|
function R(Y) {
|
|
3980
3980
|
Y.key === "Escape" && G.value && oA(), Y.key === "Escape" && d.value === "left" && (y.value = [], wA());
|
|
@@ -3990,7 +3990,7 @@ const p2 = {
|
|
|
3990
3990
|
AA();
|
|
3991
3991
|
}), NA.observe(m.value)), document.addEventListener("keydown", R), document.addEventListener("click", DA);
|
|
3992
3992
|
}), $A(() => {
|
|
3993
|
-
|
|
3993
|
+
U(), B(), NA && (NA.disconnect(), NA = null), document.removeEventListener("keydown", R), document.removeEventListener("click", DA);
|
|
3994
3994
|
}), bA(() => r.menuList, () => {
|
|
3995
3995
|
wA(), OA(() => {
|
|
3996
3996
|
AA();
|
|
@@ -4044,7 +4044,7 @@ const p2 = {
|
|
|
4044
4044
|
}, [
|
|
4045
4045
|
o("div", {
|
|
4046
4046
|
title: c.value ? sA.menuName : void 0,
|
|
4047
|
-
class: jA(["menu-tab-item", { "is-active":
|
|
4047
|
+
class: jA(["menu-tab-item", { "is-active": w.value === cA || yA(cA) || f.value === cA || !G.value && Q.value === cA }]),
|
|
4048
4048
|
onMouseenter: (fA) => S(sA, cA),
|
|
4049
4049
|
onClick: (fA) => ZA(sA, cA, fA)
|
|
4050
4050
|
}, [
|
|
@@ -4060,7 +4060,7 @@ const p2 = {
|
|
|
4060
4060
|
c.value ? L("", !0) : (e(), u("span", Ml, $(sA.menuName), 1)),
|
|
4061
4061
|
O(sA) ? (e(), C(dA, {
|
|
4062
4062
|
key: 2,
|
|
4063
|
-
class: jA(["menu-tab-arrow", { "is-open": d.value === "left" ? yA(cA) :
|
|
4063
|
+
class: jA(["menu-tab-arrow", { "is-open": d.value === "left" ? yA(cA) : w.value === cA && G.value }])
|
|
4064
4064
|
}, {
|
|
4065
4065
|
default: v(() => [
|
|
4066
4066
|
b(N(xe))
|
|
@@ -4248,8 +4248,8 @@ const p2 = {
|
|
|
4248
4248
|
setup(s, { emit: t }) {
|
|
4249
4249
|
const r = s, A = t, a = n(null), d = n(null), c = n(null), z = n(null), m = n(0), l = () => {
|
|
4250
4250
|
if (!a.value || !d.value || !c.value) return;
|
|
4251
|
-
const G = a.value.offsetWidth,
|
|
4252
|
-
m.value = Math.max(G -
|
|
4251
|
+
const G = a.value.offsetWidth, w = d.value.offsetWidth, y = c.value.offsetWidth, j = 16;
|
|
4252
|
+
m.value = Math.max(G - w - y - j, 0);
|
|
4253
4253
|
}, g = () => {
|
|
4254
4254
|
l();
|
|
4255
4255
|
};
|
|
@@ -4259,7 +4259,7 @@ const p2 = {
|
|
|
4259
4259
|
await OA(), l();
|
|
4260
4260
|
}), $A(() => {
|
|
4261
4261
|
window.removeEventListener("resize", g);
|
|
4262
|
-
}), (G,
|
|
4262
|
+
}), (G, w) => (e(), u("div", {
|
|
4263
4263
|
class: "sys-header-left",
|
|
4264
4264
|
ref_key: "headerLeftRef",
|
|
4265
4265
|
ref: a
|
|
@@ -4269,7 +4269,7 @@ const p2 = {
|
|
|
4269
4269
|
ref: d,
|
|
4270
4270
|
src: dl,
|
|
4271
4271
|
style: { width: "30px", height: "30px", cursor: "pointer" },
|
|
4272
|
-
onClick:
|
|
4272
|
+
onClick: w[0] || (w[0] = (y) => A("logo-click"))
|
|
4273
4273
|
}, null, 512),
|
|
4274
4274
|
o("span", {
|
|
4275
4275
|
class: "sys-left-area-title",
|
|
@@ -4285,18 +4285,16 @@ const p2 = {
|
|
|
4285
4285
|
}, [
|
|
4286
4286
|
b(ue, {
|
|
4287
4287
|
menuList: s.menuList,
|
|
4288
|
-
menuPosition:
|
|
4288
|
+
menuPosition: "top",
|
|
4289
4289
|
"show-submenu-drawer": s.showSubmenuDrawer,
|
|
4290
4290
|
currentPath: s.currentPath,
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
onCollapseChange: U[3] || (U[3] = (y) => A("collapse-change", y))
|
|
4295
|
-
}, null, 8, ["menuList", "menuPosition", "show-submenu-drawer", "currentPath", "navigationBar"])
|
|
4291
|
+
onParentClick: w[1] || (w[1] = (y, j) => A("parent-click", y, j)),
|
|
4292
|
+
onMenuItemClick: w[2] || (w[2] = (y) => A("menu-item-click", y))
|
|
4293
|
+
}, null, 8, ["menuList", "show-submenu-drawer", "currentPath"])
|
|
4296
4294
|
], 4)) : L("", !0)
|
|
4297
4295
|
], 512));
|
|
4298
4296
|
}
|
|
4299
|
-
}), Ql = /* @__PURE__ */ zA(Vl, [["__scopeId", "data-v-
|
|
4297
|
+
}), Ql = /* @__PURE__ */ zA(Vl, [["__scopeId", "data-v-41646e5d"]]), Rl = { class: "system-header flex-row-between" }, Il = /* @__PURE__ */ mA({
|
|
4300
4298
|
__name: "SysHeader",
|
|
4301
4299
|
props: {
|
|
4302
4300
|
userConfig: { type: Object, required: !0 },
|
|
@@ -4370,7 +4368,7 @@ const p2 = {
|
|
|
4370
4368
|
function G(M, i) {
|
|
4371
4369
|
z.value["tag" + M] = i;
|
|
4372
4370
|
}
|
|
4373
|
-
function
|
|
4371
|
+
function w(M) {
|
|
4374
4372
|
a("tab-click", M);
|
|
4375
4373
|
}
|
|
4376
4374
|
function y(M) {
|
|
@@ -4440,20 +4438,20 @@ const p2 = {
|
|
|
4440
4438
|
ref: c,
|
|
4441
4439
|
class: "scrollbar-flex-content"
|
|
4442
4440
|
}, [
|
|
4443
|
-
(e(!0), u(pA, null, UA(s.tabs, (
|
|
4444
|
-
key:
|
|
4441
|
+
(e(!0), u(pA, null, UA(s.tabs, (U) => (e(), u("div", {
|
|
4442
|
+
key: U.path,
|
|
4445
4443
|
ref_for: !0,
|
|
4446
|
-
ref: (B) => G(
|
|
4447
|
-
class: jA([{ active: s.activeTab ===
|
|
4444
|
+
ref: (B) => G(U.path, B),
|
|
4445
|
+
class: jA([{ active: s.activeTab === U.path }, "tags-view-item"])
|
|
4448
4446
|
}, [
|
|
4449
4447
|
o("span", {
|
|
4450
4448
|
class: "tags-view-item-link",
|
|
4451
|
-
onClick: (B) => U
|
|
4452
|
-
onContextmenu: TA((B) => j(
|
|
4453
|
-
}, $(
|
|
4454
|
-
|
|
4449
|
+
onClick: (B) => w(U),
|
|
4450
|
+
onContextmenu: TA((B) => j(U, B), ["prevent"])
|
|
4451
|
+
}, $(U.name || U.title), 41, Cl),
|
|
4452
|
+
U.path !== s.homeUrl ? (e(), C(K, {
|
|
4455
4453
|
key: 0,
|
|
4456
|
-
onClick: (B) => y(
|
|
4454
|
+
onClick: (B) => y(U)
|
|
4457
4455
|
}, {
|
|
4458
4456
|
default: v(() => [
|
|
4459
4457
|
b(q)
|
|
@@ -4471,7 +4469,7 @@ const p2 = {
|
|
|
4471
4469
|
}, [
|
|
4472
4470
|
((H = g.value) == null ? void 0 : H.path) !== s.homeUrl ? (e(), u("li", {
|
|
4473
4471
|
key: 0,
|
|
4474
|
-
onClick: i[0] || (i[0] = (
|
|
4472
|
+
onClick: i[0] || (i[0] = (U) => y(g.value))
|
|
4475
4473
|
}, " 关闭当前 ")) : L("", !0),
|
|
4476
4474
|
o("li", { onClick: p }, "关闭其他"),
|
|
4477
4475
|
D() ? L("", !0) : (e(), u("li", {
|
|
@@ -4507,7 +4505,7 @@ const p2 = {
|
|
|
4507
4505
|
{ key: "menuPosition", title: "菜单栏位置", desc: "选择左侧后,菜单会移动到页面左侧。", targetId: "tourMenuPositionId" },
|
|
4508
4506
|
{ key: "fontSize", title: "字体大小", desc: "可以先预览显示效果,完成后会保存到个性化配置。", targetId: "tourFontSizeId" },
|
|
4509
4507
|
{ key: "colorMode", title: "黑夜模式", desc: "完成后仍然可以在右上角图标中继续调整。", targetId: "tourDarkId" }
|
|
4510
|
-
],
|
|
4508
|
+
], w = HA(() => G[c.value]), y = HA(() => c.value === G.length - 1), j = pe({
|
|
4511
4509
|
menuPosition: "top",
|
|
4512
4510
|
fontSize: "medium",
|
|
4513
4511
|
colorMode: "day"
|
|
@@ -4516,9 +4514,9 @@ const p2 = {
|
|
|
4516
4514
|
fontSize: "medium",
|
|
4517
4515
|
followSystem: !1,
|
|
4518
4516
|
dayOrNight: "day"
|
|
4519
|
-
}), p = (K, H,
|
|
4517
|
+
}), p = (K, H, U) => Math.min(Math.max(K, H), U), f = () => new Promise((K) => {
|
|
4520
4518
|
window.requestAnimationFrame(() => K());
|
|
4521
|
-
}), E = () => document.getElementById(
|
|
4519
|
+
}), E = () => document.getElementById(w.value.targetId), T = () => {
|
|
4522
4520
|
j.menuPosition = r.menuPosition || "top", j.fontSize = r.fontSize || "medium", j.colorMode = r.dayOrNight || "day", x.value = {
|
|
4523
4521
|
menuPosition: j.menuPosition,
|
|
4524
4522
|
fontSize: j.fontSize,
|
|
@@ -4528,12 +4526,12 @@ const p2 = {
|
|
|
4528
4526
|
}, D = () => {
|
|
4529
4527
|
var h;
|
|
4530
4528
|
if (!a.value) return;
|
|
4531
|
-
const K = E(), H = 344,
|
|
4529
|
+
const K = E(), H = 344, U = 16, B = 10;
|
|
4532
4530
|
if (!K) {
|
|
4533
4531
|
m.value = { display: "none" }, l.value = { top: "88px", right: "24px", width: `${H}px` }, g.value = { display: "none" };
|
|
4534
4532
|
return;
|
|
4535
4533
|
}
|
|
4536
|
-
const S = K.getBoundingClientRect(), P = 6, PA = ((h = z.value) == null ? void 0 : h.offsetHeight) || 220, xA = S.left + S.width / 2, ZA = p(xA - H / 2,
|
|
4534
|
+
const S = K.getBoundingClientRect(), P = 6, PA = ((h = z.value) == null ? void 0 : h.offsetHeight) || 220, xA = S.left + S.width / 2, ZA = p(xA - H / 2, U, window.innerWidth - H - U), hA = S.bottom + B + P, EA = S.top - PA - B - P, WA = hA + PA + U > window.innerHeight ? Math.max(U, EA) : hA, yA = p(xA - ZA - 7, 18, H - 28);
|
|
4537
4535
|
m.value = { top: `${S.top - P}px`, left: `${S.left - P}px`, width: `${S.width + P * 2}px`, height: `${S.height + P * 2}px` }, l.value = { top: `${WA}px`, left: `${ZA}px`, width: `${H}px` }, g.value = { left: `${yA}px`, display: "block" };
|
|
4538
4536
|
}, Q = async () => {
|
|
4539
4537
|
for (let K = 0; K < 20; K += 1)
|
|
@@ -4579,7 +4577,7 @@ const p2 = {
|
|
|
4579
4577
|
}), $A(() => {
|
|
4580
4578
|
window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
|
|
4581
4579
|
}), (K, H) => {
|
|
4582
|
-
const
|
|
4580
|
+
const U = Z("el-radio-button"), B = Z("el-radio-group"), S = Z("el-button");
|
|
4583
4581
|
return e(), C(te, { to: "body" }, [
|
|
4584
4582
|
a.value ? (e(), u("div", Jl, [
|
|
4585
4583
|
o("div", {
|
|
@@ -4600,7 +4598,7 @@ const p2 = {
|
|
|
4600
4598
|
o("div", _l, [
|
|
4601
4599
|
o("div", null, [
|
|
4602
4600
|
o("div", $l, "步骤 " + $(c.value + 1) + " / " + $(G.length), 1),
|
|
4603
|
-
o("div", Aa, $(
|
|
4601
|
+
o("div", Aa, $(w.value.title), 1)
|
|
4604
4602
|
]),
|
|
4605
4603
|
o("div", ea, [
|
|
4606
4604
|
(e(), u(pA, null, UA(G, (P, PA) => o("span", {
|
|
@@ -4609,7 +4607,7 @@ const p2 = {
|
|
|
4609
4607
|
}, null, 2)), 64))
|
|
4610
4608
|
])
|
|
4611
4609
|
]),
|
|
4612
|
-
|
|
4610
|
+
w.value.key === "menuPosition" ? (e(), C(B, {
|
|
4613
4611
|
key: 0,
|
|
4614
4612
|
modelValue: j.menuPosition,
|
|
4615
4613
|
"onUpdate:modelValue": H[0] || (H[0] = (P) => j.menuPosition = P),
|
|
@@ -4617,13 +4615,13 @@ const p2 = {
|
|
|
4617
4615
|
onChange: J
|
|
4618
4616
|
}, {
|
|
4619
4617
|
default: v(() => [
|
|
4620
|
-
b(
|
|
4618
|
+
b(U, { label: "top" }, {
|
|
4621
4619
|
default: v(() => [...H[3] || (H[3] = [
|
|
4622
4620
|
tA("顶部", -1)
|
|
4623
4621
|
])]),
|
|
4624
4622
|
_: 1
|
|
4625
4623
|
}),
|
|
4626
|
-
b(
|
|
4624
|
+
b(U, { label: "left" }, {
|
|
4627
4625
|
default: v(() => [...H[4] || (H[4] = [
|
|
4628
4626
|
tA("左侧", -1)
|
|
4629
4627
|
])]),
|
|
@@ -4632,7 +4630,7 @@ const p2 = {
|
|
|
4632
4630
|
]),
|
|
4633
4631
|
_: 1
|
|
4634
4632
|
}, 8, ["modelValue"])) : L("", !0),
|
|
4635
|
-
|
|
4633
|
+
w.value.key === "fontSize" ? (e(), C(B, {
|
|
4636
4634
|
key: 1,
|
|
4637
4635
|
modelValue: j.fontSize,
|
|
4638
4636
|
"onUpdate:modelValue": H[1] || (H[1] = (P) => j.fontSize = P),
|
|
@@ -4640,19 +4638,19 @@ const p2 = {
|
|
|
4640
4638
|
onChange: J
|
|
4641
4639
|
}, {
|
|
4642
4640
|
default: v(() => [
|
|
4643
|
-
b(
|
|
4641
|
+
b(U, { label: "small" }, {
|
|
4644
4642
|
default: v(() => [...H[5] || (H[5] = [
|
|
4645
4643
|
tA("小", -1)
|
|
4646
4644
|
])]),
|
|
4647
4645
|
_: 1
|
|
4648
4646
|
}),
|
|
4649
|
-
b(
|
|
4647
|
+
b(U, { label: "medium" }, {
|
|
4650
4648
|
default: v(() => [...H[6] || (H[6] = [
|
|
4651
4649
|
tA("中", -1)
|
|
4652
4650
|
])]),
|
|
4653
4651
|
_: 1
|
|
4654
4652
|
}),
|
|
4655
|
-
b(
|
|
4653
|
+
b(U, { label: "large" }, {
|
|
4656
4654
|
default: v(() => [...H[7] || (H[7] = [
|
|
4657
4655
|
tA("大", -1)
|
|
4658
4656
|
])]),
|
|
@@ -4661,7 +4659,7 @@ const p2 = {
|
|
|
4661
4659
|
]),
|
|
4662
4660
|
_: 1
|
|
4663
4661
|
}, 8, ["modelValue"])) : L("", !0),
|
|
4664
|
-
|
|
4662
|
+
w.value.key === "colorMode" ? (e(), C(B, {
|
|
4665
4663
|
key: 2,
|
|
4666
4664
|
modelValue: j.colorMode,
|
|
4667
4665
|
"onUpdate:modelValue": H[2] || (H[2] = (P) => j.colorMode = P),
|
|
@@ -4669,13 +4667,13 @@ const p2 = {
|
|
|
4669
4667
|
onChange: J
|
|
4670
4668
|
}, {
|
|
4671
4669
|
default: v(() => [
|
|
4672
|
-
b(
|
|
4670
|
+
b(U, { label: "day" }, {
|
|
4673
4671
|
default: v(() => [...H[8] || (H[8] = [
|
|
4674
4672
|
tA("日间", -1)
|
|
4675
4673
|
])]),
|
|
4676
4674
|
_: 1
|
|
4677
4675
|
}),
|
|
4678
|
-
b(
|
|
4676
|
+
b(U, { label: "night" }, {
|
|
4679
4677
|
default: v(() => [...H[9] || (H[9] = [
|
|
4680
4678
|
tA("黑夜", -1)
|
|
4681
4679
|
])]),
|
|
@@ -4684,7 +4682,7 @@ const p2 = {
|
|
|
4684
4682
|
]),
|
|
4685
4683
|
_: 1
|
|
4686
4684
|
}, 8, ["modelValue"])) : L("", !0),
|
|
4687
|
-
o("div", ta, $(
|
|
4685
|
+
o("div", ta, $(w.value.desc), 1)
|
|
4688
4686
|
]),
|
|
4689
4687
|
o("div", na, [
|
|
4690
4688
|
b(S, {
|
|
@@ -5333,7 +5331,7 @@ const Qe = ee(
|
|
|
5333
5331
|
bA(
|
|
5334
5332
|
() => r.visible,
|
|
5335
5333
|
(x) => {
|
|
5336
|
-
d.value = x, x && (l.value = 1,
|
|
5334
|
+
d.value = x, x && (l.value = 1, w());
|
|
5337
5335
|
}
|
|
5338
5336
|
), bA(
|
|
5339
5337
|
() => d.value,
|
|
@@ -5343,7 +5341,7 @@ const Qe = ee(
|
|
|
5343
5341
|
);
|
|
5344
5342
|
const G = () => {
|
|
5345
5343
|
A("update:visible", !1);
|
|
5346
|
-
},
|
|
5344
|
+
}, w = async () => {
|
|
5347
5345
|
c.value = !0;
|
|
5348
5346
|
try {
|
|
5349
5347
|
const x = new Ve();
|
|
@@ -5356,7 +5354,7 @@ const Qe = ee(
|
|
|
5356
5354
|
c.value = !1;
|
|
5357
5355
|
}
|
|
5358
5356
|
}, y = () => {
|
|
5359
|
-
|
|
5357
|
+
w();
|
|
5360
5358
|
}, j = async (x) => {
|
|
5361
5359
|
var E, T;
|
|
5362
5360
|
const p = a.userConfig.fileUploadType;
|
|
@@ -5637,21 +5635,21 @@ const Re = ee("layout-tabs", () => {
|
|
|
5637
5635
|
(K) => K.path === M.path
|
|
5638
5636
|
) === -1 && (A.value.push(i), D()), y(M.path), sessionStorage.setItem(z(), M.path), M.name && M.cachedCode === "0" && j(M.name);
|
|
5639
5637
|
}
|
|
5640
|
-
function
|
|
5638
|
+
function w(M, i, q) {
|
|
5641
5639
|
const K = A.value.findIndex(
|
|
5642
5640
|
(H) => H.path === M
|
|
5643
5641
|
);
|
|
5644
5642
|
if (K !== -1)
|
|
5645
5643
|
if (a.value === M) {
|
|
5646
|
-
let H = q,
|
|
5644
|
+
let H = q, U;
|
|
5647
5645
|
if (H) {
|
|
5648
5646
|
const S = A.value.find(
|
|
5649
5647
|
(P) => P.path === H
|
|
5650
5648
|
);
|
|
5651
|
-
|
|
5649
|
+
U = S == null ? void 0 : S.query;
|
|
5652
5650
|
} else {
|
|
5653
5651
|
const S = A.value[K + 1] || A.value[K - 1];
|
|
5654
|
-
S ? (H = S.path,
|
|
5652
|
+
S ? (H = S.path, U = S.query) : H = "/application-entry";
|
|
5655
5653
|
}
|
|
5656
5654
|
const B = () => {
|
|
5657
5655
|
a.value = H;
|
|
@@ -5662,11 +5660,11 @@ const Re = ee("layout-tabs", () => {
|
|
|
5662
5660
|
(P) => P.path !== M
|
|
5663
5661
|
), S != null && S.name && x(S.name), D();
|
|
5664
5662
|
};
|
|
5665
|
-
i ? i.push({ path: H, query:
|
|
5663
|
+
i ? i.push({ path: H, query: U }).then(B) : B();
|
|
5666
5664
|
} else {
|
|
5667
5665
|
const H = A.value[K];
|
|
5668
5666
|
H != null && H.name && x(H.name), A.value = A.value.filter(
|
|
5669
|
-
(
|
|
5667
|
+
(U) => U.path !== M
|
|
5670
5668
|
), D();
|
|
5671
5669
|
}
|
|
5672
5670
|
}
|
|
@@ -5763,7 +5761,7 @@ const Re = ee("layout-tabs", () => {
|
|
|
5763
5761
|
tabsMenuValue: a,
|
|
5764
5762
|
reset: g,
|
|
5765
5763
|
addTabs: G,
|
|
5766
|
-
removeTabs:
|
|
5764
|
+
removeTabs: w,
|
|
5767
5765
|
setTabsMenuValue: y,
|
|
5768
5766
|
setKeepAlive: j,
|
|
5769
5767
|
delKeepAlive: x,
|
|
@@ -5922,7 +5920,7 @@ const xa = { class: "approval-drawer-content" }, Pa = {
|
|
|
5922
5920
|
p || A("update:visible", !1);
|
|
5923
5921
|
}
|
|
5924
5922
|
);
|
|
5925
|
-
const
|
|
5923
|
+
const w = () => {
|
|
5926
5924
|
A("update:visible", !1);
|
|
5927
5925
|
}, y = async () => {
|
|
5928
5926
|
z.value = !0;
|
|
@@ -5950,7 +5948,7 @@ const xa = { class: "approval-drawer-content" }, Pa = {
|
|
|
5950
5948
|
direction: "rtl",
|
|
5951
5949
|
size: "560px",
|
|
5952
5950
|
"append-to-body": !0,
|
|
5953
|
-
onClose:
|
|
5951
|
+
onClose: w
|
|
5954
5952
|
}, {
|
|
5955
5953
|
default: v(() => [
|
|
5956
5954
|
BA((e(), u("div", xa, [
|
|
@@ -6085,7 +6083,7 @@ const xa = { class: "approval-drawer-content" }, Pa = {
|
|
|
6085
6083
|
const D = new FileReader();
|
|
6086
6084
|
D.readAsDataURL(f), D.onload = () => E(D.result), D.onerror = (Q) => T(Q);
|
|
6087
6085
|
});
|
|
6088
|
-
function
|
|
6086
|
+
function w(f, E) {
|
|
6089
6087
|
const T = atob(f.split(",")[1]), D = new ArrayBuffer(T.length), Q = new Uint8Array(D);
|
|
6090
6088
|
for (let AA = 0; AA < T.length; AA++)
|
|
6091
6089
|
Q[AA] = T.charCodeAt(AA);
|
|
@@ -6097,7 +6095,7 @@ const xa = { class: "approval-drawer-content" }, Pa = {
|
|
|
6097
6095
|
try {
|
|
6098
6096
|
(f = m.value) == null || f.getCropData((E) => {
|
|
6099
6097
|
if (E) {
|
|
6100
|
-
const T =
|
|
6098
|
+
const T = w(E, "image/png");
|
|
6101
6099
|
A("success", T), z.value = !1, c.value = !1;
|
|
6102
6100
|
}
|
|
6103
6101
|
a.value = !1;
|
|
@@ -6280,7 +6278,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6280
6278
|
}, Ca = { class: "qrCodeBtnBox" }, ka = { class: "dialog-footer" }, be = 5 * 1024 * 1024, Ja = /* @__PURE__ */ mA({
|
|
6281
6279
|
__name: "PersonalSignDialog",
|
|
6282
6280
|
setup(s, { expose: t }) {
|
|
6283
|
-
const r = n(!1), A = n(""), a = n(""), d = n(!1), c = n(!0), z = n(""), m = n(""), l = n(""), g = n(!1), G = n(!1),
|
|
6281
|
+
const r = n(!1), A = n(""), a = n(""), d = n(!1), c = n(!0), z = n(""), m = n(""), l = n(""), g = n(!1), G = n(!1), w = n(), y = n(), j = n(), x = n(), p = ["image/jpeg", "image/png", "image/bmp", "image/raw", "image/heif", "image/tiff", "image/gif"], f = [".jpg", ".jpeg", ".png", ".bmp", ".raw", ".heif", ".tiff", ".gif"];
|
|
6284
6282
|
bA(A, () => {
|
|
6285
6283
|
c.value = !0;
|
|
6286
6284
|
}), bA(r, (h) => {
|
|
@@ -6295,7 +6293,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6295
6293
|
}, D = async () => {
|
|
6296
6294
|
K(), await P("unscanned"), S(), c.value = !1;
|
|
6297
6295
|
}, Q = async () => {
|
|
6298
|
-
await P("expired"), clearInterval(
|
|
6296
|
+
await P("expired"), clearInterval(w.value), clearInterval(y.value), c.value = !0;
|
|
6299
6297
|
}, AA = () => {
|
|
6300
6298
|
j.value && j.value.click();
|
|
6301
6299
|
}, J = async (h) => {
|
|
@@ -6341,14 +6339,14 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6341
6339
|
const h = `${window.location.origin}/mobile/login/index.html?host=${localStorage.getItem("TenantHost")}&url=/full-screen-sign-process?qrCodeUUID=${l.value}`;
|
|
6342
6340
|
m.value = h;
|
|
6343
6341
|
}, H = () => {
|
|
6344
|
-
|
|
6342
|
+
w.value = setInterval(async () => {
|
|
6345
6343
|
try {
|
|
6346
6344
|
const h = await JA.startPolling(l.value);
|
|
6347
|
-
h.code === 200 && h.res && (clearInterval(
|
|
6345
|
+
h.code === 200 && h.res && (clearInterval(w.value), A.value = h.res.url, a.value = h.res.url, z.value = h.res.fileId);
|
|
6348
6346
|
} catch {
|
|
6349
6347
|
}
|
|
6350
6348
|
}, 2e3);
|
|
6351
|
-
},
|
|
6349
|
+
}, U = () => {
|
|
6352
6350
|
JA.personalSignSave(z.value).then((h) => {
|
|
6353
6351
|
h.code === 200 && rA.success("个人签名上传成功");
|
|
6354
6352
|
}).catch(() => {
|
|
@@ -6371,7 +6369,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6371
6369
|
X.code === 200 && X.res ? console.log("二维码状态更新成功") : X.code === 200 && !X.res && rA.error(X.msg || "二维码失效请刷新后重试");
|
|
6372
6370
|
});
|
|
6373
6371
|
}, PA = () => {
|
|
6374
|
-
clearInterval(
|
|
6372
|
+
clearInterval(w.value), clearInterval(y.value), g.value = !1, G.value = !1, c.value = !0;
|
|
6375
6373
|
}, xA = () => {
|
|
6376
6374
|
r.value = !0, B();
|
|
6377
6375
|
}, ZA = (h) => new Promise((X, O) => {
|
|
@@ -6485,7 +6483,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6485
6483
|
}),
|
|
6486
6484
|
b(I, {
|
|
6487
6485
|
type: "primary",
|
|
6488
|
-
onClick:
|
|
6486
|
+
onClick: U
|
|
6489
6487
|
}, {
|
|
6490
6488
|
default: v(() => [...X[9] || (X[9] = [
|
|
6491
6489
|
tA("保存", -1)
|
|
@@ -6672,7 +6670,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6672
6670
|
for (let nA = 0; nA < a.routerData.length; nA++)
|
|
6673
6671
|
W.push(...a.routerData[nA].children || []);
|
|
6674
6672
|
return W;
|
|
6675
|
-
}), G = HA(() => a.currentApplication),
|
|
6673
|
+
}), G = HA(() => a.currentApplication), w = HA(() => {
|
|
6676
6674
|
var W, nA;
|
|
6677
6675
|
return ((nA = (W = t == null ? void 0 : t.currentRoute) == null ? void 0 : W.value) == null ? void 0 : nA.path) || "";
|
|
6678
6676
|
}), y = HA(() => d.tabsMenuList), j = HA(() => d.tabsMenuValue), x = HA(() => ({
|
|
@@ -6698,7 +6696,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6698
6696
|
var oA;
|
|
6699
6697
|
return J(W.url, nA) ? !0 : !!((oA = W.children) != null && oA.some((R) => AA(R, nA)));
|
|
6700
6698
|
}, J = (W, nA) => !W || !nA ? !1 : W.split("?")[0] === nA.split("?")[0], M = (W) => {
|
|
6701
|
-
W.url &&
|
|
6699
|
+
W.url && w.value !== W.url && (t == null || t.push({ path: W.url }));
|
|
6702
6700
|
}, i = (W, nA) => {
|
|
6703
6701
|
a.changeCurrentSecondIndex(nA, !0, t);
|
|
6704
6702
|
}, q = () => {
|
|
@@ -6713,7 +6711,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6713
6711
|
clientY: nA.getBoundingClientRect().y
|
|
6714
6712
|
} : void 0
|
|
6715
6713
|
);
|
|
6716
|
-
},
|
|
6714
|
+
}, U = (W) => {
|
|
6717
6715
|
A.followSystemColorModel(W);
|
|
6718
6716
|
}, B = (W) => {
|
|
6719
6717
|
A.changeFontSize(W);
|
|
@@ -6739,11 +6737,11 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6739
6737
|
}, h = () => {
|
|
6740
6738
|
a.doExitLogin();
|
|
6741
6739
|
}, X = (W) => {
|
|
6742
|
-
W.path !==
|
|
6740
|
+
W.path !== w.value && (t == null || t.push({ path: W.path, query: W.query }));
|
|
6743
6741
|
}, O = (W) => {
|
|
6744
6742
|
d.removeTabs(W.path, t);
|
|
6745
6743
|
}, I = (W) => {
|
|
6746
|
-
d.closeMultipleTab(W.path),
|
|
6744
|
+
d.closeMultipleTab(W.path), w.value !== W.path && (t == null || t.push({ path: W.path, query: W.query }));
|
|
6747
6745
|
}, k = () => {
|
|
6748
6746
|
d.closeAllTabs(t);
|
|
6749
6747
|
}, aA = (W) => {
|
|
@@ -6825,7 +6823,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6825
6823
|
},
|
|
6826
6824
|
{ immediate: !0, deep: !0 }
|
|
6827
6825
|
), bA(
|
|
6828
|
-
[() =>
|
|
6826
|
+
[() => w.value, () => a.routerData],
|
|
6829
6827
|
([W]) => {
|
|
6830
6828
|
W && Q(W);
|
|
6831
6829
|
},
|
|
@@ -6837,7 +6835,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6837
6835
|
userConfig: x.value,
|
|
6838
6836
|
menuList: g.value,
|
|
6839
6837
|
currentApplication: G.value,
|
|
6840
|
-
currentPath:
|
|
6838
|
+
currentPath: w.value,
|
|
6841
6839
|
showSubmenuDrawer: !m.value,
|
|
6842
6840
|
noticeCount: N(c).unReadCount,
|
|
6843
6841
|
approvalCount: 0,
|
|
@@ -6848,7 +6846,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6848
6846
|
onLogoClick: q,
|
|
6849
6847
|
onCollapseChange: K,
|
|
6850
6848
|
onChangeDark: H,
|
|
6851
|
-
onChangeFollowSystem:
|
|
6849
|
+
onChangeFollowSystem: U,
|
|
6852
6850
|
onChangeFontSize: B,
|
|
6853
6851
|
onChangeMenuPosition: S,
|
|
6854
6852
|
onDownloadClick: P,
|
|
@@ -6880,7 +6878,7 @@ const Ea = { class: "personal-sign-content" }, qa = {
|
|
|
6880
6878
|
key: 0,
|
|
6881
6879
|
menuList: l.value,
|
|
6882
6880
|
menuPosition: "left",
|
|
6883
|
-
currentPath:
|
|
6881
|
+
currentPath: w.value,
|
|
6884
6882
|
navigationBar: N(A).userConfig.navigationBar,
|
|
6885
6883
|
onMenuItemClick: M,
|
|
6886
6884
|
onParentClick: () => {
|