@huyooo/ui 0.7.5 → 0.7.6
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/{MessageHandle-BJVN7hp7.js → MessageHandle-CdBq2aDG.js} +263 -255
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-C6amsoZP.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-JL-A5Mot.js} +1 -1
- package/dist/{UserAccountMenu-C3KwDPVb.js → UserAccountMenu-B8HuXICE.js} +1 -1
- package/dist/{WidthContainer-BmgqeRLU.js → WidthContainer-BMroU2bt.js} +1 -1
- package/dist/common.js +1 -1
- package/dist/index.js +4 -4
- package/dist/message.js +2 -2
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as p, defineComponent as x, createBlock as
|
|
1
|
+
import { ref as p, defineComponent as x, createBlock as _, openBlock as s, unref as i, withCtx as f, createVNode as $, createCommentVNode as A, createElementBlock as b, normalizeClass as K, createElementVNode as L, renderSlot as D, toDisplayString as T, createTextVNode as w, Fragment as H, renderList as Z, createSlots as ne, mergeProps as F, watch as ie, computed as Q, mergeModels as W, useModel as oe, isRef as le } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -12,8 +12,8 @@ import { useIntersectionObserver as fe } from "@vueuse/core";
|
|
|
12
12
|
import { m as X, a as pe, b as ge, c as ve } from "./MessageNotifications-CJtKlzc3.js";
|
|
13
13
|
import { Icon as me } from "@iconify/vue";
|
|
14
14
|
import { u as ye } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
15
|
-
import { M as
|
|
16
|
-
function
|
|
15
|
+
import { M as _e } from "./Menu-BjWB9hre.js";
|
|
16
|
+
function he(e) {
|
|
17
17
|
return U({
|
|
18
18
|
url: `${O.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
|
|
19
19
|
method: "post",
|
|
@@ -36,7 +36,7 @@ function ae(e, l = {}) {
|
|
|
36
36
|
pageSize: a,
|
|
37
37
|
total: 0
|
|
38
38
|
});
|
|
39
|
-
async function
|
|
39
|
+
async function S() {
|
|
40
40
|
if (!o.value) {
|
|
41
41
|
o.value = !0;
|
|
42
42
|
try {
|
|
@@ -53,7 +53,7 @@ function ae(e, l = {}) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
async function
|
|
56
|
+
async function k() {
|
|
57
57
|
if (!(o.value || n.value)) {
|
|
58
58
|
c.value.current += 1, o.value = !0;
|
|
59
59
|
try {
|
|
@@ -70,24 +70,24 @@ function ae(e, l = {}) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
74
|
-
c.value.current = 1, n.value = !1, await
|
|
73
|
+
async function y() {
|
|
74
|
+
c.value.current = 1, n.value = !1, await S();
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function h() {
|
|
77
77
|
r.value = !0, t.value = "";
|
|
78
78
|
}
|
|
79
79
|
function z(M) {
|
|
80
80
|
t.value = M.id, r.value = !1, V(M.id);
|
|
81
81
|
}
|
|
82
82
|
function V(M) {
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const C = u.value.find((v) => v.id === M);
|
|
84
|
+
C && C.read !== void 0 && (C.read = !0);
|
|
85
85
|
}
|
|
86
86
|
function E(M) {
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const C = u.value.find((v) => v.id === M);
|
|
88
|
+
C && C.read !== void 0 && (C.read = !1);
|
|
89
89
|
}
|
|
90
|
-
return
|
|
90
|
+
return S(), {
|
|
91
91
|
// 状态
|
|
92
92
|
isList: r,
|
|
93
93
|
detailId: t,
|
|
@@ -96,10 +96,10 @@ function ae(e, l = {}) {
|
|
|
96
96
|
messageList: u,
|
|
97
97
|
pagination: c,
|
|
98
98
|
// 方法
|
|
99
|
-
loadData:
|
|
100
|
-
loadMore:
|
|
101
|
-
refresh:
|
|
102
|
-
toList:
|
|
99
|
+
loadData: S,
|
|
100
|
+
loadMore: k,
|
|
101
|
+
refresh: y,
|
|
102
|
+
toList: h,
|
|
103
103
|
openDetail: z,
|
|
104
104
|
markAsRead: V,
|
|
105
105
|
markAsUnread: E
|
|
@@ -129,13 +129,13 @@ const ke = /* @__PURE__ */ x({
|
|
|
129
129
|
function n(u) {
|
|
130
130
|
a.value = u, t("tableOfContentsUpdate", u);
|
|
131
131
|
}
|
|
132
|
-
return (u, c) => (s(),
|
|
132
|
+
return (u, c) => (s(), _(i(ee), {
|
|
133
133
|
loading: d.loading,
|
|
134
134
|
tip: "文档加载中...",
|
|
135
135
|
class: "Spin",
|
|
136
136
|
dot: ""
|
|
137
137
|
}, {
|
|
138
|
-
default: f(() => [
|
|
138
|
+
default: f(() => [$(i(de), {
|
|
139
139
|
ref_key: "TiptapEditorRef",
|
|
140
140
|
ref: o,
|
|
141
141
|
"model-value": d.content,
|
|
@@ -143,12 +143,12 @@ const ke = /* @__PURE__ */ x({
|
|
|
143
143
|
"tiptap-editor-content-class": "tiptapEditorContentClass",
|
|
144
144
|
onTableOfContentsUpdate: n
|
|
145
145
|
}, {
|
|
146
|
-
title: f(() => [
|
|
146
|
+
title: f(() => [$(i(ce), {
|
|
147
147
|
"model-value": d.title,
|
|
148
148
|
editable: r.value
|
|
149
149
|
}, null, 8, ["model-value", "editable"])]),
|
|
150
150
|
_: 1
|
|
151
|
-
}, 8, ["model-value", "editable"]),
|
|
151
|
+
}, 8, ["model-value", "editable"]), A("", !0)]),
|
|
152
152
|
_: 1
|
|
153
153
|
}, 8, ["loading"]));
|
|
154
154
|
}
|
|
@@ -173,7 +173,7 @@ const ke = /* @__PURE__ */ x({
|
|
|
173
173
|
console.error("获取变更日志详情失败:", o), l.value = !1;
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
return t(), (o, n) => (s(),
|
|
176
|
+
return t(), (o, n) => (s(), _(P, {
|
|
177
177
|
content: a.value,
|
|
178
178
|
title: d.value,
|
|
179
179
|
loading: l.value
|
|
@@ -225,15 +225,15 @@ const ke = /* @__PURE__ */ x({
|
|
|
225
225
|
!a.loading && !a.finished && d("infinite");
|
|
226
226
|
}, {
|
|
227
227
|
threshold: a.threshold
|
|
228
|
-
}), (t, o) => (s(),
|
|
228
|
+
}), (t, o) => (s(), b("div", {
|
|
229
229
|
ref_key: "container",
|
|
230
230
|
ref: r,
|
|
231
231
|
class: "infinite-loading"
|
|
232
|
-
}, [e.loading ? (s(),
|
|
232
|
+
}, [e.loading ? (s(), b("div", Ae, [$(i(ee), {
|
|
233
233
|
tip: e.loadingText
|
|
234
|
-
}, null, 8, ["tip"])])) :
|
|
234
|
+
}, null, 8, ["tip"])])) : A("", !0), e.finished && e.showFinishedText ? (s(), b("div", $e, [$(i(te), {
|
|
235
235
|
description: e.finishedText
|
|
236
|
-
}, null, 8, ["description"])])) :
|
|
236
|
+
}, null, 8, ["description"])])) : A("", !0)], 512));
|
|
237
237
|
}
|
|
238
238
|
}), we = /* @__PURE__ */ I(Ne, [["__scopeId", "data-v-b513f798"]]), Se = {
|
|
239
239
|
class: "message-item__content"
|
|
@@ -264,62 +264,62 @@ const ke = /* @__PURE__ */ x({
|
|
|
264
264
|
},
|
|
265
265
|
emits: ["click"],
|
|
266
266
|
setup(e) {
|
|
267
|
-
return (l, a) => (s(),
|
|
267
|
+
return (l, a) => (s(), b("div", {
|
|
268
268
|
class: K(["message-item", {
|
|
269
269
|
"message-item--unread": e.showReadStatus && !e.item.read
|
|
270
270
|
}]),
|
|
271
271
|
onClick: a[0] || (a[0] = (d) => l.$emit("click", e.item))
|
|
272
|
-
}, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(),
|
|
272
|
+
}, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(), b("span", {
|
|
273
273
|
key: 0,
|
|
274
274
|
class: K(["message-item__dot", {
|
|
275
275
|
"message-item__dot--unread": !e.item.read
|
|
276
276
|
}])
|
|
277
|
-
}, null, 2)) :
|
|
277
|
+
}, null, 2)) : A("", !0), D(l.$slots, "prefix", {
|
|
278
278
|
item: e.item
|
|
279
|
-
}, void 0, !0), L("span", xe, T(e.item.title), 1), L("div", Le, [e.item.pinned ? (s(),
|
|
279
|
+
}, void 0, !0), L("span", xe, T(e.item.title), 1), L("div", Le, [e.item.pinned ? (s(), _(i(B), {
|
|
280
280
|
key: 0,
|
|
281
281
|
color: "arcoblue",
|
|
282
282
|
size: "small"
|
|
283
283
|
}, {
|
|
284
|
-
default: f(() => [...a[1] || (a[1] = [
|
|
284
|
+
default: f(() => [...a[1] || (a[1] = [w("置顶", -1)])]),
|
|
285
285
|
_: 1
|
|
286
|
-
})) :
|
|
286
|
+
})) : A("", !0), D(l.$slots, "tags", {
|
|
287
287
|
item: e.item
|
|
288
|
-
}, () => [e.item.priority === "urgent" ? (s(),
|
|
288
|
+
}, () => [e.item.priority === "urgent" ? (s(), _(i(B), {
|
|
289
289
|
key: 0,
|
|
290
290
|
color: "red",
|
|
291
291
|
size: "small"
|
|
292
292
|
}, {
|
|
293
|
-
default: f(() => [...a[2] || (a[2] = [
|
|
293
|
+
default: f(() => [...a[2] || (a[2] = [w("紧急", -1)])]),
|
|
294
294
|
_: 1
|
|
295
|
-
})) : e.item.priority === "important" ? (s(),
|
|
295
|
+
})) : e.item.priority === "important" ? (s(), _(i(B), {
|
|
296
296
|
key: 1,
|
|
297
297
|
color: "orange",
|
|
298
298
|
size: "small"
|
|
299
299
|
}, {
|
|
300
|
-
default: f(() => [...a[3] || (a[3] = [
|
|
300
|
+
default: f(() => [...a[3] || (a[3] = [w("重要", -1)])]),
|
|
301
301
|
_: 1
|
|
302
|
-
})) : e.item.priority === "high" ? (s(),
|
|
302
|
+
})) : e.item.priority === "high" ? (s(), _(i(B), {
|
|
303
303
|
key: 2,
|
|
304
304
|
color: "orange",
|
|
305
305
|
size: "small"
|
|
306
306
|
}, {
|
|
307
|
-
default: f(() => [...a[4] || (a[4] = [
|
|
307
|
+
default: f(() => [...a[4] || (a[4] = [w("高", -1)])]),
|
|
308
308
|
_: 1
|
|
309
|
-
})) :
|
|
309
|
+
})) : A("", !0)], !0)])]), L("div", Te, [D(l.$slots, "description", {
|
|
310
310
|
item: e.item
|
|
311
|
-
}, () => [
|
|
311
|
+
}, () => [w(T(e.item.description), 1)], !0)]), L("div", Ie, [L("span", ze, T(e.item.createAt), 1), D(l.$slots, "footer", {
|
|
312
312
|
item: e.item
|
|
313
313
|
}, void 0, !0)])]), L("div", Be, [D(l.$slots, "actions", {
|
|
314
314
|
item: e.item
|
|
315
|
-
}, () => [e.showViewButton ? (s(),
|
|
315
|
+
}, () => [e.showViewButton ? (s(), _(i(re), {
|
|
316
316
|
key: 0,
|
|
317
317
|
type: "text",
|
|
318
318
|
size: "small"
|
|
319
319
|
}, {
|
|
320
|
-
default: f(() => [...a[5] || (a[5] = [
|
|
320
|
+
default: f(() => [...a[5] || (a[5] = [w("查看", -1)])]),
|
|
321
321
|
_: 1
|
|
322
|
-
})) :
|
|
322
|
+
})) : A("", !0)], !0)])], 2));
|
|
323
323
|
}
|
|
324
324
|
}), Re = /* @__PURE__ */ I(De, [["__scopeId", "data-v-1cf5087b"]]), Ue = {
|
|
325
325
|
class: "message-list"
|
|
@@ -351,11 +351,11 @@ const ke = /* @__PURE__ */ x({
|
|
|
351
351
|
function r(t) {
|
|
352
352
|
d("itemClick", t);
|
|
353
353
|
}
|
|
354
|
-
return (t, o) => (s(),
|
|
354
|
+
return (t, o) => (s(), b("div", Ue, [a.messageList.length === 0 && !a.loading ? (s(), b("div", Oe, [$(i(te), {
|
|
355
355
|
description: "暂无消息"
|
|
356
|
-
})])) : (s(),
|
|
356
|
+
})])) : (s(), b(H, {
|
|
357
357
|
key: 1
|
|
358
|
-
}, [(s(!0),
|
|
358
|
+
}, [(s(!0), b(H, null, Z(a.messageList, (n) => (s(), _(Re, {
|
|
359
359
|
key: n.id,
|
|
360
360
|
item: n,
|
|
361
361
|
"show-read-status": a.showReadStatus,
|
|
@@ -393,7 +393,7 @@ const ke = /* @__PURE__ */ x({
|
|
|
393
393
|
ref_for: !0
|
|
394
394
|
}, u), void 0, !0)]),
|
|
395
395
|
key: "4"
|
|
396
|
-
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)),
|
|
396
|
+
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), $(we, {
|
|
397
397
|
loading: a.loading,
|
|
398
398
|
finished: a.finished,
|
|
399
399
|
onInfinite: o[0] || (o[0] = (n) => t.$emit("loadMore"))
|
|
@@ -406,7 +406,10 @@ const ke = /* @__PURE__ */ x({
|
|
|
406
406
|
}, Fe = {
|
|
407
407
|
key: 0,
|
|
408
408
|
class: "publish-time"
|
|
409
|
-
}, Ke =
|
|
409
|
+
}, Ke = {
|
|
410
|
+
key: 2,
|
|
411
|
+
class: "message-panel__detail"
|
|
412
|
+
}, He = /* @__PURE__ */ x({
|
|
410
413
|
__name: "MessageChangelogNotifications",
|
|
411
414
|
setup(e) {
|
|
412
415
|
const {
|
|
@@ -418,40 +421,40 @@ const ke = /* @__PURE__ */ x({
|
|
|
418
421
|
loadMore: o,
|
|
419
422
|
toList: n,
|
|
420
423
|
openDetail: u
|
|
421
|
-
} = ae(
|
|
422
|
-
function c(
|
|
424
|
+
} = ae(he);
|
|
425
|
+
function c(k) {
|
|
423
426
|
return {
|
|
424
427
|
feature: "green",
|
|
425
428
|
improvement: "blue",
|
|
426
429
|
fix: "orange",
|
|
427
430
|
security: "red",
|
|
428
431
|
breaking: "magenta"
|
|
429
|
-
}[
|
|
432
|
+
}[k] || "blue";
|
|
430
433
|
}
|
|
431
|
-
function
|
|
434
|
+
function S(k) {
|
|
432
435
|
return {
|
|
433
436
|
feature: "新功能",
|
|
434
437
|
improvement: "优化",
|
|
435
438
|
fix: "修复",
|
|
436
439
|
security: "安全",
|
|
437
440
|
breaking: "重大变更"
|
|
438
|
-
}[
|
|
441
|
+
}[k] || "更新";
|
|
439
442
|
}
|
|
440
|
-
return (
|
|
443
|
+
return (k, y) => (s(), b("div", Ee, [i(l) ? A("", !0) : (s(), _(i(j), {
|
|
441
444
|
key: 0,
|
|
442
445
|
class: "message-panel__breadcrumb"
|
|
443
446
|
}, {
|
|
444
|
-
default: f(() => [
|
|
447
|
+
default: f(() => [$(i(R), {
|
|
445
448
|
onClick: i(n)
|
|
446
449
|
}, {
|
|
447
|
-
default: f(() => [...
|
|
450
|
+
default: f(() => [...y[0] || (y[0] = [w("更新日志", -1)])]),
|
|
448
451
|
_: 1
|
|
449
|
-
}, 8, ["onClick"]),
|
|
450
|
-
default: f(() => [...
|
|
452
|
+
}, 8, ["onClick"]), $(i(R), null, {
|
|
453
|
+
default: f(() => [...y[1] || (y[1] = [w("详情", -1)])]),
|
|
451
454
|
_: 1
|
|
452
455
|
})]),
|
|
453
456
|
_: 1
|
|
454
|
-
})), i(l) ? (s(),
|
|
457
|
+
})), i(l) ? (s(), _(G, {
|
|
455
458
|
key: 1,
|
|
456
459
|
"message-list": i(t),
|
|
457
460
|
loading: i(d),
|
|
@@ -460,42 +463,41 @@ const ke = /* @__PURE__ */ x({
|
|
|
460
463
|
onLoadMore: i(o)
|
|
461
464
|
}, {
|
|
462
465
|
prefix: f(({
|
|
463
|
-
item:
|
|
464
|
-
}) => [L("span", qe, T(
|
|
466
|
+
item: h
|
|
467
|
+
}) => [L("span", qe, T(h.version), 1)]),
|
|
465
468
|
tags: f(({
|
|
466
|
-
item:
|
|
467
|
-
}) => [
|
|
468
|
-
color: c(
|
|
469
|
+
item: h
|
|
470
|
+
}) => [$(i(B), {
|
|
471
|
+
color: c(h.changeType),
|
|
469
472
|
size: "small"
|
|
470
473
|
}, {
|
|
471
|
-
default: f(() => [
|
|
474
|
+
default: f(() => [w(T(S(h.changeType)), 1)]),
|
|
472
475
|
_: 2
|
|
473
476
|
}, 1032, ["color"])]),
|
|
474
477
|
footer: f(({
|
|
475
|
-
item:
|
|
476
|
-
}) => [
|
|
478
|
+
item: h
|
|
479
|
+
}) => [h.publishedAt ? (s(), b("span", Fe, " 发布于 " + T(h.publishedAt), 1)) : A("", !0)]),
|
|
477
480
|
_: 1
|
|
478
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(),
|
|
479
|
-
key: 2,
|
|
481
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), b("div", Ke, [$(Ce, {
|
|
480
482
|
id: i(a)
|
|
481
|
-
}, null, 8, ["id"]))]));
|
|
483
|
+
}, null, 8, ["id"])]))]));
|
|
482
484
|
}
|
|
483
|
-
}),
|
|
484
|
-
function
|
|
485
|
+
}), je = /* @__PURE__ */ I(He, [["__scopeId", "data-v-b50402cc"]]);
|
|
486
|
+
function Pe(e) {
|
|
485
487
|
return U({
|
|
486
488
|
url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
|
|
487
489
|
method: "post",
|
|
488
490
|
data: e
|
|
489
491
|
});
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function Ge(e) {
|
|
492
494
|
return U({
|
|
493
495
|
url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
|
|
494
496
|
method: "post",
|
|
495
497
|
data: e
|
|
496
498
|
});
|
|
497
499
|
}
|
|
498
|
-
const
|
|
500
|
+
const Je = /* @__PURE__ */ x({
|
|
499
501
|
__name: "MessageEventNotificationsDetails",
|
|
500
502
|
props: {
|
|
501
503
|
id: {
|
|
@@ -506,7 +508,7 @@ const Ge = /* @__PURE__ */ x({
|
|
|
506
508
|
setup(e) {
|
|
507
509
|
const l = p(!1), a = p(null), d = p(""), r = e;
|
|
508
510
|
function t() {
|
|
509
|
-
l.value = !0,
|
|
511
|
+
l.value = !0, Ge({
|
|
510
512
|
id: r.id
|
|
511
513
|
}).then(({
|
|
512
514
|
data: o
|
|
@@ -516,18 +518,21 @@ const Ge = /* @__PURE__ */ x({
|
|
|
516
518
|
console.error("获取事件通知详情失败:", o), l.value = !1;
|
|
517
519
|
});
|
|
518
520
|
}
|
|
519
|
-
return t(), (o, n) => (s(),
|
|
521
|
+
return t(), (o, n) => (s(), _(P, {
|
|
520
522
|
content: a.value,
|
|
521
523
|
title: d.value,
|
|
522
524
|
loading: l.value
|
|
523
525
|
}, null, 8, ["content", "title", "loading"]));
|
|
524
526
|
}
|
|
525
|
-
}),
|
|
527
|
+
}), Qe = {
|
|
526
528
|
class: "message-panel"
|
|
527
|
-
},
|
|
529
|
+
}, We = {
|
|
528
530
|
key: 0,
|
|
529
531
|
class: "time-range"
|
|
530
|
-
},
|
|
532
|
+
}, Xe = {
|
|
533
|
+
key: 2,
|
|
534
|
+
class: "message-panel__detail"
|
|
535
|
+
}, Ye = /* @__PURE__ */ x({
|
|
531
536
|
__name: "MessageEventNotifications",
|
|
532
537
|
setup(e) {
|
|
533
538
|
const {
|
|
@@ -539,43 +544,43 @@ const Ge = /* @__PURE__ */ x({
|
|
|
539
544
|
loadMore: o,
|
|
540
545
|
toList: n,
|
|
541
546
|
openDetail: u
|
|
542
|
-
} = ae((
|
|
543
|
-
...
|
|
547
|
+
} = ae((k) => Pe({
|
|
548
|
+
...k,
|
|
544
549
|
where: {
|
|
545
550
|
status: "published"
|
|
546
551
|
}
|
|
547
552
|
}));
|
|
548
|
-
function c(
|
|
553
|
+
function c(k) {
|
|
549
554
|
return {
|
|
550
555
|
upcoming: "blue",
|
|
551
556
|
ongoing: "green",
|
|
552
557
|
ended: "gray",
|
|
553
558
|
published: "arcoblue"
|
|
554
|
-
}[
|
|
559
|
+
}[k] || "gray";
|
|
555
560
|
}
|
|
556
|
-
function
|
|
561
|
+
function S(k) {
|
|
557
562
|
return {
|
|
558
563
|
upcoming: "即将开始",
|
|
559
564
|
ongoing: "进行中",
|
|
560
565
|
ended: "已结束",
|
|
561
566
|
published: "已发布"
|
|
562
|
-
}[
|
|
567
|
+
}[k] || "未知";
|
|
563
568
|
}
|
|
564
|
-
return (
|
|
569
|
+
return (k, y) => (s(), b("div", Qe, [i(l) ? A("", !0) : (s(), _(i(j), {
|
|
565
570
|
key: 0,
|
|
566
571
|
class: "message-panel__breadcrumb"
|
|
567
572
|
}, {
|
|
568
|
-
default: f(() => [
|
|
573
|
+
default: f(() => [$(i(R), {
|
|
569
574
|
onClick: i(n)
|
|
570
575
|
}, {
|
|
571
|
-
default: f(() => [...
|
|
576
|
+
default: f(() => [...y[0] || (y[0] = [w("活动通知", -1)])]),
|
|
572
577
|
_: 1
|
|
573
|
-
}, 8, ["onClick"]),
|
|
574
|
-
default: f(() => [...
|
|
578
|
+
}, 8, ["onClick"]), $(i(R), null, {
|
|
579
|
+
default: f(() => [...y[1] || (y[1] = [w("详情", -1)])]),
|
|
575
580
|
_: 1
|
|
576
581
|
})]),
|
|
577
582
|
_: 1
|
|
578
|
-
})), i(l) ? (s(),
|
|
583
|
+
})), i(l) ? (s(), _(G, {
|
|
579
584
|
key: 1,
|
|
580
585
|
"message-list": i(t),
|
|
581
586
|
loading: i(d),
|
|
@@ -584,29 +589,28 @@ const Ge = /* @__PURE__ */ x({
|
|
|
584
589
|
onLoadMore: i(o)
|
|
585
590
|
}, {
|
|
586
591
|
tags: f(({
|
|
587
|
-
item:
|
|
588
|
-
}) => [
|
|
589
|
-
color: c(
|
|
592
|
+
item: h
|
|
593
|
+
}) => [$(i(B), {
|
|
594
|
+
color: c(h.displayStatus),
|
|
590
595
|
size: "small"
|
|
591
596
|
}, {
|
|
592
|
-
default: f(() => [
|
|
597
|
+
default: f(() => [w(T(S(h.displayStatus)), 1)]),
|
|
593
598
|
_: 2
|
|
594
599
|
}, 1032, ["color"])]),
|
|
595
600
|
footer: f(({
|
|
596
|
-
item:
|
|
597
|
-
}) => [
|
|
601
|
+
item: h
|
|
602
|
+
}) => [h.startAt || h.endAt ? (s(), b("span", We, T(h.startAt || "无") + " ~ " + T(h.endAt || "无"), 1)) : A("", !0)]),
|
|
598
603
|
_: 1
|
|
599
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(),
|
|
600
|
-
key: 2,
|
|
604
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), b("div", Xe, [$(Je, {
|
|
601
605
|
id: i(a)
|
|
602
|
-
}, null, 8, ["id"]))]));
|
|
606
|
+
}, null, 8, ["id"])]))]));
|
|
603
607
|
}
|
|
604
|
-
}),
|
|
608
|
+
}), Ze = /* @__PURE__ */ I(Ye, [["__scopeId", "data-v-ec35e6c3"]]), et = {
|
|
605
609
|
style: {
|
|
606
610
|
display: "flex",
|
|
607
611
|
gap: "16px"
|
|
608
612
|
}
|
|
609
|
-
},
|
|
613
|
+
}, tt = ["onClick"], at = /* @__PURE__ */ x({
|
|
610
614
|
__name: "MessageCustomTabs",
|
|
611
615
|
props: {
|
|
612
616
|
modelValue: {
|
|
@@ -632,17 +636,17 @@ const Ge = /* @__PURE__ */ x({
|
|
|
632
636
|
function r(t) {
|
|
633
637
|
t !== a.modelValue && (d("update:modelValue", t), d("change", t));
|
|
634
638
|
}
|
|
635
|
-
return (t, o) => (s(),
|
|
639
|
+
return (t, o) => (s(), b("div", et, [(s(!0), b(H, null, Z(e.tabs, (n) => (s(), b("span", {
|
|
636
640
|
key: n.key,
|
|
637
641
|
class: K(["custom-tab", [{
|
|
638
642
|
active: e.modelValue === n.key
|
|
639
643
|
}]]),
|
|
640
644
|
onClick: (u) => r(n.key)
|
|
641
|
-
}, T(n.label), 11,
|
|
645
|
+
}, T(n.label), 11, tt))), 128))]));
|
|
642
646
|
}
|
|
643
|
-
}),
|
|
647
|
+
}), st = /* @__PURE__ */ I(at, [["__scopeId", "data-v-fafcc3ad"]]), nt = {
|
|
644
648
|
class: "tabs"
|
|
645
|
-
},
|
|
649
|
+
}, it = /* @__PURE__ */ x({
|
|
646
650
|
__name: "MessageTabs",
|
|
647
651
|
props: {
|
|
648
652
|
tabs: {
|
|
@@ -672,25 +676,28 @@ const Ge = /* @__PURE__ */ x({
|
|
|
672
676
|
function o() {
|
|
673
677
|
a.messageList.length !== 0 && d("readAll");
|
|
674
678
|
}
|
|
675
|
-
return (n, u) => (s(),
|
|
679
|
+
return (n, u) => (s(), b("div", nt, [$(st, {
|
|
676
680
|
modelValue: r.value,
|
|
677
681
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
|
|
678
682
|
tabs: e.tabs,
|
|
679
683
|
onChange: t
|
|
680
|
-
}, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(),
|
|
684
|
+
}, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(), b("div", {
|
|
681
685
|
key: 0,
|
|
682
686
|
class: K(["readAll", {
|
|
683
687
|
disabled: e.messageList.length === 0
|
|
684
688
|
}]),
|
|
685
689
|
onClick: o
|
|
686
|
-
}, [
|
|
690
|
+
}, [$(i(me), {
|
|
687
691
|
class: "icon",
|
|
688
692
|
icon: "icon-park-outline:clear"
|
|
689
|
-
}), u[1] || (u[1] = L("span", null, " 全部已读", -1))], 2)) :
|
|
693
|
+
}), u[1] || (u[1] = L("span", null, " 全部已读", -1))], 2)) : A("", !0)]));
|
|
690
694
|
}
|
|
691
|
-
}), se = /* @__PURE__ */ I(
|
|
695
|
+
}), se = /* @__PURE__ */ I(it, [["__scopeId", "data-v-47f7fce5"]]), ot = {
|
|
692
696
|
class: "message-panel"
|
|
693
|
-
},
|
|
697
|
+
}, lt = {
|
|
698
|
+
key: 3,
|
|
699
|
+
class: "message-panel__detail"
|
|
700
|
+
}, J = "system", rt = /* @__PURE__ */ x({
|
|
694
701
|
__name: "MessageNotifications",
|
|
695
702
|
setup(e) {
|
|
696
703
|
const l = p(!0), a = p(""), d = p(!1), r = p({
|
|
@@ -700,27 +707,27 @@ const Ge = /* @__PURE__ */ x({
|
|
|
700
707
|
current: 1,
|
|
701
708
|
pageSize: 10,
|
|
702
709
|
total: 0
|
|
703
|
-
}),
|
|
710
|
+
}), S = [{
|
|
704
711
|
label: "未读消息",
|
|
705
712
|
key: "unread"
|
|
706
713
|
}, {
|
|
707
714
|
label: "已读消息",
|
|
708
715
|
key: "read"
|
|
709
|
-
}],
|
|
710
|
-
async function
|
|
716
|
+
}], k = Q(() => u.value === "read");
|
|
717
|
+
async function y() {
|
|
711
718
|
t.value = !0;
|
|
712
719
|
try {
|
|
713
720
|
const {
|
|
714
|
-
data:
|
|
721
|
+
data: C
|
|
715
722
|
} = await X({
|
|
716
723
|
current: c.value.current,
|
|
717
724
|
pageSize: c.value.pageSize,
|
|
718
725
|
where: {
|
|
719
726
|
type: J,
|
|
720
|
-
read:
|
|
727
|
+
read: k.value
|
|
721
728
|
}
|
|
722
729
|
});
|
|
723
|
-
n.value =
|
|
730
|
+
n.value = C.items.map((v) => ({
|
|
724
731
|
id: v.id,
|
|
725
732
|
title: v.title,
|
|
726
733
|
description: v.description,
|
|
@@ -730,25 +737,25 @@ const Ge = /* @__PURE__ */ x({
|
|
|
730
737
|
priority: v.priority,
|
|
731
738
|
read: v.read ?? !1,
|
|
732
739
|
readAt: v.readAt ?? null
|
|
733
|
-
})), c.value.total =
|
|
740
|
+
})), c.value.total = C.count, o.value = C.items.length < c.value.pageSize;
|
|
734
741
|
} finally {
|
|
735
742
|
t.value = !1;
|
|
736
743
|
}
|
|
737
744
|
}
|
|
738
|
-
async function
|
|
745
|
+
async function h() {
|
|
739
746
|
if (!(t.value || o.value)) {
|
|
740
747
|
c.value.current += 1, t.value = !0;
|
|
741
748
|
try {
|
|
742
749
|
const {
|
|
743
|
-
data:
|
|
750
|
+
data: C
|
|
744
751
|
} = await X({
|
|
745
752
|
current: c.value.current,
|
|
746
753
|
pageSize: c.value.pageSize,
|
|
747
754
|
where: {
|
|
748
755
|
type: J,
|
|
749
|
-
read:
|
|
756
|
+
read: k.value
|
|
750
757
|
}
|
|
751
|
-
}), v =
|
|
758
|
+
}), v = C.items.map((g) => ({
|
|
752
759
|
id: g.id,
|
|
753
760
|
title: g.title,
|
|
754
761
|
description: g.description,
|
|
@@ -759,19 +766,19 @@ const Ge = /* @__PURE__ */ x({
|
|
|
759
766
|
read: g.read ?? !1,
|
|
760
767
|
readAt: g.readAt ?? null
|
|
761
768
|
}));
|
|
762
|
-
n.value = [...n.value, ...v], o.value =
|
|
769
|
+
n.value = [...n.value, ...v], o.value = C.items.length < c.value.pageSize;
|
|
763
770
|
} finally {
|
|
764
771
|
t.value = !1;
|
|
765
772
|
}
|
|
766
773
|
}
|
|
767
774
|
}
|
|
768
775
|
function z() {
|
|
769
|
-
c.value.current = 1, o.value = !1,
|
|
776
|
+
c.value.current = 1, o.value = !1, y();
|
|
770
777
|
}
|
|
771
778
|
async function V() {
|
|
772
779
|
n.value.length !== 0 && (await pe({
|
|
773
780
|
type: J
|
|
774
|
-
}),
|
|
781
|
+
}), y());
|
|
775
782
|
}
|
|
776
783
|
function E() {
|
|
777
784
|
l.value = !0, a.value = "", r.value = {
|
|
@@ -779,13 +786,13 @@ const Ge = /* @__PURE__ */ x({
|
|
|
779
786
|
content: null
|
|
780
787
|
};
|
|
781
788
|
}
|
|
782
|
-
async function M(
|
|
789
|
+
async function M(C) {
|
|
783
790
|
d.value = !0;
|
|
784
791
|
try {
|
|
785
792
|
const {
|
|
786
793
|
data: v
|
|
787
794
|
} = await ve({
|
|
788
|
-
id:
|
|
795
|
+
id: C
|
|
789
796
|
});
|
|
790
797
|
r.value = {
|
|
791
798
|
title: v.title,
|
|
@@ -795,34 +802,34 @@ const Ge = /* @__PURE__ */ x({
|
|
|
795
802
|
d.value = !1;
|
|
796
803
|
}
|
|
797
804
|
}
|
|
798
|
-
async function q(
|
|
799
|
-
a.value =
|
|
800
|
-
messageId:
|
|
801
|
-
}),
|
|
805
|
+
async function q(C) {
|
|
806
|
+
a.value = C.id, l.value = !1, C.read || (await ge({
|
|
807
|
+
messageId: C.id
|
|
808
|
+
}), k.value || (n.value = n.value.filter((v) => v.id !== C.id))), M(C.id);
|
|
802
809
|
}
|
|
803
|
-
return
|
|
810
|
+
return y(), (C, v) => (s(), b("div", ot, [l.value ? A("", !0) : (s(), _(i(j), {
|
|
804
811
|
key: 0,
|
|
805
812
|
class: "message-panel__breadcrumb"
|
|
806
813
|
}, {
|
|
807
|
-
default: f(() => [
|
|
814
|
+
default: f(() => [$(i(R), {
|
|
808
815
|
onClick: E
|
|
809
816
|
}, {
|
|
810
|
-
default: f(() => [...v[1] || (v[1] = [
|
|
817
|
+
default: f(() => [...v[1] || (v[1] = [w("消息通知", -1)])]),
|
|
811
818
|
_: 1
|
|
812
|
-
}),
|
|
813
|
-
default: f(() => [...v[2] || (v[2] = [
|
|
819
|
+
}), $(i(R), null, {
|
|
820
|
+
default: f(() => [...v[2] || (v[2] = [w("详情", -1)])]),
|
|
814
821
|
_: 1
|
|
815
822
|
})]),
|
|
816
823
|
_: 1
|
|
817
|
-
})), l.value ? (s(),
|
|
824
|
+
})), l.value ? (s(), _(se, {
|
|
818
825
|
key: 1,
|
|
819
826
|
"active-tab": u.value,
|
|
820
827
|
"onUpdate:activeTab": v[0] || (v[0] = (g) => u.value = g),
|
|
821
|
-
tabs:
|
|
828
|
+
tabs: S,
|
|
822
829
|
"message-list": n.value,
|
|
823
830
|
onChange: z,
|
|
824
831
|
onReadAll: V
|
|
825
|
-
}, null, 8, ["active-tab", "message-list"])) :
|
|
832
|
+
}, null, 8, ["active-tab", "message-list"])) : A("", !0), l.value ? (s(), _(G, {
|
|
826
833
|
key: 2,
|
|
827
834
|
"message-list": n.value,
|
|
828
835
|
loading: t.value,
|
|
@@ -830,35 +837,34 @@ const Ge = /* @__PURE__ */ x({
|
|
|
830
837
|
"show-read-status": !0,
|
|
831
838
|
"show-view-button": !1,
|
|
832
839
|
onItemClick: q,
|
|
833
|
-
onLoadMore:
|
|
840
|
+
onLoadMore: h
|
|
834
841
|
}, {
|
|
835
842
|
tags: f(({
|
|
836
843
|
item: g
|
|
837
|
-
}) => [g.priority === "urgent" ? (s(),
|
|
844
|
+
}) => [g.priority === "urgent" ? (s(), _(i(B), {
|
|
838
845
|
key: 0,
|
|
839
846
|
color: "red",
|
|
840
847
|
size: "small"
|
|
841
848
|
}, {
|
|
842
|
-
default: f(() => [...v[3] || (v[3] = [
|
|
849
|
+
default: f(() => [...v[3] || (v[3] = [w("紧急", -1)])]),
|
|
843
850
|
_: 1
|
|
844
|
-
})) : g.priority === "high" ? (s(),
|
|
851
|
+
})) : g.priority === "high" ? (s(), _(i(B), {
|
|
845
852
|
key: 1,
|
|
846
853
|
color: "orange",
|
|
847
854
|
size: "small"
|
|
848
855
|
}, {
|
|
849
|
-
default: f(() => [...v[4] || (v[4] = [
|
|
856
|
+
default: f(() => [...v[4] || (v[4] = [w("高", -1)])]),
|
|
850
857
|
_: 1
|
|
851
|
-
})) :
|
|
858
|
+
})) : A("", !0)]),
|
|
852
859
|
_: 1
|
|
853
|
-
}, 8, ["message-list", "loading", "finished"])) : (s(),
|
|
854
|
-
key: 3,
|
|
860
|
+
}, 8, ["message-list", "loading", "finished"])) : (s(), b("div", lt, [$(P, {
|
|
855
861
|
title: r.value.title,
|
|
856
862
|
content: r.value.content,
|
|
857
863
|
loading: d.value
|
|
858
|
-
}, null, 8, ["title", "content", "loading"]))]));
|
|
864
|
+
}, null, 8, ["title", "content", "loading"])]))]));
|
|
859
865
|
}
|
|
860
|
-
}),
|
|
861
|
-
function
|
|
866
|
+
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-118e16b5"]]);
|
|
867
|
+
function dt(e) {
|
|
862
868
|
return U({
|
|
863
869
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
|
|
864
870
|
method: "post",
|
|
@@ -872,26 +878,29 @@ function Y(e) {
|
|
|
872
878
|
data: e
|
|
873
879
|
});
|
|
874
880
|
}
|
|
875
|
-
function
|
|
881
|
+
function ct(e) {
|
|
876
882
|
return U({
|
|
877
883
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/read`,
|
|
878
884
|
method: "post",
|
|
879
885
|
data: e
|
|
880
886
|
});
|
|
881
887
|
}
|
|
882
|
-
function
|
|
888
|
+
function ft() {
|
|
883
889
|
return U({
|
|
884
890
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/readAll`,
|
|
885
891
|
method: "post",
|
|
886
892
|
data: {}
|
|
887
893
|
});
|
|
888
894
|
}
|
|
889
|
-
const
|
|
895
|
+
const pt = {
|
|
890
896
|
class: "message-panel"
|
|
891
|
-
},
|
|
897
|
+
}, gt = {
|
|
892
898
|
key: 0,
|
|
893
899
|
class: "expire-time"
|
|
894
|
-
},
|
|
900
|
+
}, vt = {
|
|
901
|
+
key: 3,
|
|
902
|
+
class: "message-panel__detail"
|
|
903
|
+
}, mt = /* @__PURE__ */ x({
|
|
895
904
|
__name: "MessageNoticeNotifications",
|
|
896
905
|
setup(e) {
|
|
897
906
|
const l = p(!0), a = p(""), d = p(!1), r = p({
|
|
@@ -901,14 +910,14 @@ const dt = {
|
|
|
901
910
|
current: 1,
|
|
902
911
|
pageSize: 10,
|
|
903
912
|
total: 0
|
|
904
|
-
}),
|
|
913
|
+
}), S = [{
|
|
905
914
|
label: "未读公告",
|
|
906
915
|
key: "unread"
|
|
907
916
|
}, {
|
|
908
917
|
label: "已读公告",
|
|
909
918
|
key: "read"
|
|
910
|
-
}],
|
|
911
|
-
async function
|
|
919
|
+
}], k = Q(() => u.value === "read");
|
|
920
|
+
async function y() {
|
|
912
921
|
t.value = !0;
|
|
913
922
|
try {
|
|
914
923
|
const {
|
|
@@ -917,28 +926,28 @@ const dt = {
|
|
|
917
926
|
current: c.value.current,
|
|
918
927
|
pageSize: c.value.pageSize,
|
|
919
928
|
where: {
|
|
920
|
-
read:
|
|
929
|
+
read: k.value
|
|
921
930
|
}
|
|
922
931
|
});
|
|
923
|
-
n.value = g.items.map((
|
|
924
|
-
id:
|
|
925
|
-
title:
|
|
926
|
-
description:
|
|
927
|
-
createAt:
|
|
928
|
-
updateAt:
|
|
929
|
-
pinned:
|
|
930
|
-
priority:
|
|
931
|
-
displayStatus:
|
|
932
|
-
expireAt:
|
|
933
|
-
requireConfirm:
|
|
934
|
-
read:
|
|
935
|
-
readAt:
|
|
932
|
+
n.value = g.items.map((m) => ({
|
|
933
|
+
id: m.id,
|
|
934
|
+
title: m.title,
|
|
935
|
+
description: m.description,
|
|
936
|
+
createAt: m.createAt,
|
|
937
|
+
updateAt: m.updateAt,
|
|
938
|
+
pinned: m.pinned,
|
|
939
|
+
priority: m.priority,
|
|
940
|
+
displayStatus: m.displayStatus,
|
|
941
|
+
expireAt: m.expireAt,
|
|
942
|
+
requireConfirm: m.requireConfirm,
|
|
943
|
+
read: m.read ?? !1,
|
|
944
|
+
readAt: m.readAt ?? null
|
|
936
945
|
})), c.value.total = g.count, o.value = g.items.length < c.value.pageSize;
|
|
937
946
|
} finally {
|
|
938
947
|
t.value = !1;
|
|
939
948
|
}
|
|
940
949
|
}
|
|
941
|
-
async function
|
|
950
|
+
async function h() {
|
|
942
951
|
if (!(t.value || o.value)) {
|
|
943
952
|
c.value.current += 1, t.value = !0;
|
|
944
953
|
try {
|
|
@@ -948,33 +957,33 @@ const dt = {
|
|
|
948
957
|
current: c.value.current,
|
|
949
958
|
pageSize: c.value.pageSize,
|
|
950
959
|
where: {
|
|
951
|
-
read:
|
|
960
|
+
read: k.value
|
|
952
961
|
}
|
|
953
|
-
}),
|
|
954
|
-
id:
|
|
955
|
-
title:
|
|
956
|
-
description:
|
|
957
|
-
createAt:
|
|
958
|
-
updateAt:
|
|
959
|
-
pinned:
|
|
960
|
-
priority:
|
|
961
|
-
displayStatus:
|
|
962
|
-
expireAt:
|
|
963
|
-
requireConfirm:
|
|
964
|
-
read:
|
|
965
|
-
readAt:
|
|
962
|
+
}), m = g.items.map((N) => ({
|
|
963
|
+
id: N.id,
|
|
964
|
+
title: N.title,
|
|
965
|
+
description: N.description,
|
|
966
|
+
createAt: N.createAt,
|
|
967
|
+
updateAt: N.updateAt,
|
|
968
|
+
pinned: N.pinned,
|
|
969
|
+
priority: N.priority,
|
|
970
|
+
displayStatus: N.displayStatus,
|
|
971
|
+
expireAt: N.expireAt,
|
|
972
|
+
requireConfirm: N.requireConfirm,
|
|
973
|
+
read: N.read ?? !1,
|
|
974
|
+
readAt: N.readAt ?? null
|
|
966
975
|
}));
|
|
967
|
-
n.value = [...n.value, ...
|
|
976
|
+
n.value = [...n.value, ...m], o.value = g.items.length < c.value.pageSize;
|
|
968
977
|
} finally {
|
|
969
978
|
t.value = !1;
|
|
970
979
|
}
|
|
971
980
|
}
|
|
972
981
|
}
|
|
973
982
|
function z() {
|
|
974
|
-
c.value.current = 1, o.value = !1,
|
|
983
|
+
c.value.current = 1, o.value = !1, y();
|
|
975
984
|
}
|
|
976
985
|
async function V() {
|
|
977
|
-
n.value.length !== 0 && (await
|
|
986
|
+
n.value.length !== 0 && (await ft(), y());
|
|
978
987
|
}
|
|
979
988
|
function E() {
|
|
980
989
|
l.value = !0, a.value = "", r.value = {
|
|
@@ -986,24 +995,24 @@ const dt = {
|
|
|
986
995
|
d.value = !0;
|
|
987
996
|
try {
|
|
988
997
|
const {
|
|
989
|
-
data:
|
|
990
|
-
} = await
|
|
998
|
+
data: m
|
|
999
|
+
} = await dt({
|
|
991
1000
|
id: g
|
|
992
1001
|
});
|
|
993
1002
|
r.value = {
|
|
994
|
-
title:
|
|
995
|
-
content:
|
|
1003
|
+
title: m.title,
|
|
1004
|
+
content: m.content
|
|
996
1005
|
};
|
|
997
1006
|
} finally {
|
|
998
1007
|
d.value = !1;
|
|
999
1008
|
}
|
|
1000
1009
|
}
|
|
1001
1010
|
async function q(g) {
|
|
1002
|
-
a.value = g.id, l.value = !1, g.read || (await
|
|
1011
|
+
a.value = g.id, l.value = !1, g.read || (await ct({
|
|
1003
1012
|
noticeId: g.id
|
|
1004
|
-
}),
|
|
1013
|
+
}), k.value || (n.value = n.value.filter((m) => m.id !== g.id))), M(g.id);
|
|
1005
1014
|
}
|
|
1006
|
-
function
|
|
1015
|
+
function C(g) {
|
|
1007
1016
|
return {
|
|
1008
1017
|
published: "green",
|
|
1009
1018
|
expired: "gray"
|
|
@@ -1015,29 +1024,29 @@ const dt = {
|
|
|
1015
1024
|
expired: "已过期"
|
|
1016
1025
|
}[g] || "未知";
|
|
1017
1026
|
}
|
|
1018
|
-
return
|
|
1027
|
+
return y(), (g, m) => (s(), b("div", pt, [l.value ? A("", !0) : (s(), _(i(j), {
|
|
1019
1028
|
key: 0,
|
|
1020
1029
|
class: "message-panel__breadcrumb"
|
|
1021
1030
|
}, {
|
|
1022
|
-
default: f(() => [
|
|
1031
|
+
default: f(() => [$(i(R), {
|
|
1023
1032
|
onClick: E
|
|
1024
1033
|
}, {
|
|
1025
|
-
default: f(() => [...
|
|
1034
|
+
default: f(() => [...m[1] || (m[1] = [w("公告通知", -1)])]),
|
|
1026
1035
|
_: 1
|
|
1027
|
-
}),
|
|
1028
|
-
default: f(() => [...
|
|
1036
|
+
}), $(i(R), null, {
|
|
1037
|
+
default: f(() => [...m[2] || (m[2] = [w("详情", -1)])]),
|
|
1029
1038
|
_: 1
|
|
1030
1039
|
})]),
|
|
1031
1040
|
_: 1
|
|
1032
|
-
})), l.value ? (s(),
|
|
1041
|
+
})), l.value ? (s(), _(se, {
|
|
1033
1042
|
key: 1,
|
|
1034
1043
|
"active-tab": u.value,
|
|
1035
|
-
"onUpdate:activeTab":
|
|
1036
|
-
tabs:
|
|
1044
|
+
"onUpdate:activeTab": m[0] || (m[0] = (N) => u.value = N),
|
|
1045
|
+
tabs: S,
|
|
1037
1046
|
"message-list": n.value,
|
|
1038
1047
|
onChange: z,
|
|
1039
1048
|
onReadAll: V
|
|
1040
|
-
}, null, 8, ["active-tab", "message-list"])) :
|
|
1049
|
+
}, null, 8, ["active-tab", "message-list"])) : A("", !0), l.value ? (s(), _(G, {
|
|
1041
1050
|
key: 2,
|
|
1042
1051
|
"message-list": n.value,
|
|
1043
1052
|
loading: t.value,
|
|
@@ -1045,47 +1054,46 @@ const dt = {
|
|
|
1045
1054
|
"show-read-status": !0,
|
|
1046
1055
|
"show-view-button": !1,
|
|
1047
1056
|
onItemClick: q,
|
|
1048
|
-
onLoadMore:
|
|
1057
|
+
onLoadMore: h
|
|
1049
1058
|
}, {
|
|
1050
1059
|
tags: f(({
|
|
1051
|
-
item:
|
|
1052
|
-
}) => [
|
|
1060
|
+
item: N
|
|
1061
|
+
}) => [N.priority === "urgent" ? (s(), _(i(B), {
|
|
1053
1062
|
key: 0,
|
|
1054
1063
|
color: "red",
|
|
1055
1064
|
size: "small"
|
|
1056
1065
|
}, {
|
|
1057
|
-
default: f(() => [...
|
|
1066
|
+
default: f(() => [...m[3] || (m[3] = [w("紧急", -1)])]),
|
|
1058
1067
|
_: 1
|
|
1059
|
-
})) :
|
|
1068
|
+
})) : N.priority === "important" ? (s(), _(i(B), {
|
|
1060
1069
|
key: 1,
|
|
1061
1070
|
color: "orange",
|
|
1062
1071
|
size: "small"
|
|
1063
1072
|
}, {
|
|
1064
|
-
default: f(() => [...
|
|
1073
|
+
default: f(() => [...m[4] || (m[4] = [w("重要", -1)])]),
|
|
1065
1074
|
_: 1
|
|
1066
|
-
})) :
|
|
1067
|
-
color:
|
|
1075
|
+
})) : A("", !0), $(i(B), {
|
|
1076
|
+
color: C(N.displayStatus),
|
|
1068
1077
|
size: "small"
|
|
1069
1078
|
}, {
|
|
1070
|
-
default: f(() => [
|
|
1079
|
+
default: f(() => [w(T(v(N.displayStatus)), 1)]),
|
|
1071
1080
|
_: 2
|
|
1072
1081
|
}, 1032, ["color"])]),
|
|
1073
1082
|
footer: f(({
|
|
1074
|
-
item:
|
|
1075
|
-
}) => [
|
|
1083
|
+
item: N
|
|
1084
|
+
}) => [N.expireAt ? (s(), b("span", gt, T(N.displayStatus === "expired" ? "已过期" : `过期时间: ${N.expireAt}`), 1)) : A("", !0)]),
|
|
1076
1085
|
_: 1
|
|
1077
|
-
}, 8, ["message-list", "loading", "finished"])) : (s(),
|
|
1078
|
-
key: 3,
|
|
1086
|
+
}, 8, ["message-list", "loading", "finished"])) : (s(), b("div", vt, [$(P, {
|
|
1079
1087
|
title: r.value.title,
|
|
1080
1088
|
content: r.value.content,
|
|
1081
1089
|
loading: d.value
|
|
1082
|
-
}, null, 8, ["title", "content", "loading"]))]));
|
|
1090
|
+
}, null, 8, ["title", "content", "loading"])]))]));
|
|
1083
1091
|
}
|
|
1084
|
-
}),
|
|
1092
|
+
}), yt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-cbd2a754"]]), _t = {
|
|
1085
1093
|
class: "content"
|
|
1086
|
-
},
|
|
1094
|
+
}, ht = {
|
|
1087
1095
|
class: "left"
|
|
1088
|
-
},
|
|
1096
|
+
}, bt = /* @__PURE__ */ x({
|
|
1089
1097
|
__name: "MessageAppMessage",
|
|
1090
1098
|
props: /* @__PURE__ */ W({
|
|
1091
1099
|
menus: {
|
|
@@ -1107,22 +1115,22 @@ const dt = {
|
|
|
1107
1115
|
function n() {
|
|
1108
1116
|
r("cancel");
|
|
1109
1117
|
}
|
|
1110
|
-
function u(
|
|
1111
|
-
const z =
|
|
1112
|
-
t.value = [z], r("change",
|
|
1118
|
+
function u(y, h) {
|
|
1119
|
+
const z = y.path;
|
|
1120
|
+
t.value = [z], r("change", y, h);
|
|
1113
1121
|
}
|
|
1114
1122
|
const {
|
|
1115
1123
|
changeType: c,
|
|
1116
|
-
show:
|
|
1124
|
+
show: S
|
|
1117
1125
|
} = ye(r);
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1126
|
+
function k(y) {
|
|
1127
|
+
S.value = y, c.value = "编辑";
|
|
1120
1128
|
}
|
|
1121
1129
|
return l({
|
|
1122
|
-
setData:
|
|
1123
|
-
}), (
|
|
1124
|
-
visible: i(
|
|
1125
|
-
"onUpdate:visible":
|
|
1130
|
+
setData: k
|
|
1131
|
+
}), (y, h) => (s(), _(i(ue), {
|
|
1132
|
+
visible: i(S),
|
|
1133
|
+
"onUpdate:visible": h[1] || (h[1] = (z) => le(S) ? S.value = z : null),
|
|
1126
1134
|
loading: !1,
|
|
1127
1135
|
"body-class": "AppMessagebodyClass",
|
|
1128
1136
|
"mask-closable": !1,
|
|
@@ -1131,26 +1139,26 @@ const dt = {
|
|
|
1131
1139
|
width: "880px",
|
|
1132
1140
|
onCancel: n
|
|
1133
1141
|
}, {
|
|
1134
|
-
default: f(() => [L("div",
|
|
1142
|
+
default: f(() => [L("div", _t, [L("div", ht, [$(_e, {
|
|
1135
1143
|
"selected-keys": t.value,
|
|
1136
|
-
"onUpdate:selectedKeys":
|
|
1144
|
+
"onUpdate:selectedKeys": h[0] || (h[0] = (z) => t.value = z),
|
|
1137
1145
|
menus: d.menus,
|
|
1138
1146
|
onChange: u
|
|
1139
|
-
}, null, 8, ["selected-keys", "menus"])]), i(
|
|
1147
|
+
}, null, 8, ["selected-keys", "menus"])]), i(S) ? (s(), b(H, {
|
|
1140
1148
|
key: 0
|
|
1141
|
-
}, [o.value === "ChangelogNotifications" ? (s(),
|
|
1149
|
+
}, [o.value === "ChangelogNotifications" ? (s(), _(je, {
|
|
1142
1150
|
key: 0
|
|
1143
|
-
})) :
|
|
1151
|
+
})) : A("", !0), o.value === "EventNotifications" ? (s(), _(Ze, {
|
|
1144
1152
|
key: 1
|
|
1145
|
-
})) :
|
|
1153
|
+
})) : A("", !0), o.value === "MessageNotifications" ? (s(), _(ut, {
|
|
1146
1154
|
key: 2
|
|
1147
|
-
})) :
|
|
1155
|
+
})) : A("", !0), o.value === "NoticeNotifications" ? (s(), _(yt, {
|
|
1148
1156
|
key: 3
|
|
1149
|
-
})) :
|
|
1157
|
+
})) : A("", !0)], 64)) : A("", !0)])]),
|
|
1150
1158
|
_: 1
|
|
1151
1159
|
}, 8, ["visible"]));
|
|
1152
1160
|
}
|
|
1153
|
-
}),
|
|
1161
|
+
}), kt = /* @__PURE__ */ I(bt, [["__scopeId", "data-v-8f921467"]]), Ct = /* @__PURE__ */ x({
|
|
1154
1162
|
__name: "MessageHandle",
|
|
1155
1163
|
setup(e, {
|
|
1156
1164
|
expose: l
|
|
@@ -1192,32 +1200,32 @@ const dt = {
|
|
|
1192
1200
|
}]);
|
|
1193
1201
|
return l({
|
|
1194
1202
|
openNotification: t
|
|
1195
|
-
}), (c,
|
|
1203
|
+
}), (c, S) => (s(), _(kt, {
|
|
1196
1204
|
ref_key: "MessageNotificationsRef",
|
|
1197
1205
|
ref: d,
|
|
1198
1206
|
key: r.value,
|
|
1199
1207
|
"selected-keys": a.value,
|
|
1200
|
-
"onUpdate:selectedKeys":
|
|
1208
|
+
"onUpdate:selectedKeys": S[0] || (S[0] = (k) => a.value = k),
|
|
1201
1209
|
menus: u.value,
|
|
1202
1210
|
title: "消息中心",
|
|
1203
1211
|
onConfirm: n,
|
|
1204
1212
|
onCancel: o
|
|
1205
1213
|
}, null, 8, ["selected-keys", "menus"]));
|
|
1206
1214
|
}
|
|
1207
|
-
}),
|
|
1215
|
+
}), Ot = /* @__PURE__ */ I(Ct, [["__scopeId", "data-v-dd5fd3b4"]]);
|
|
1208
1216
|
export {
|
|
1209
|
-
|
|
1210
|
-
|
|
1217
|
+
kt as A,
|
|
1218
|
+
je as C,
|
|
1211
1219
|
P as D,
|
|
1212
|
-
|
|
1220
|
+
Ze as E,
|
|
1213
1221
|
we as I,
|
|
1214
|
-
|
|
1215
|
-
|
|
1222
|
+
Ot as M,
|
|
1223
|
+
yt as N,
|
|
1216
1224
|
Ce as _,
|
|
1217
|
-
|
|
1218
|
-
|
|
1225
|
+
st as a,
|
|
1226
|
+
Je as b,
|
|
1219
1227
|
G as c,
|
|
1220
|
-
|
|
1228
|
+
ut as d,
|
|
1221
1229
|
se as e,
|
|
1222
|
-
|
|
1230
|
+
dt as n
|
|
1223
1231
|
};
|