@huyooo/ui 0.7.0 → 0.7.1
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-DGsqUcu_.js → MessageHandle-WYYz6CSD.js} +203 -199
- package/dist/{UserAccountMenu-Bbha7b4D.js → UserAccountMenu-BFqv7M9A.js} +1 -1
- package/dist/{WidthContainer-Dun8aQ2Y.js → WidthContainer-DbZOG7iH.js} +1 -1
- package/dist/common.js +1 -1
- package/dist/index.js +3 -3
- package/dist/message.js +1 -1
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as p, defineComponent as N, createBlock as v, openBlock as n, unref as t, withCtx as d, createVNode as C, createCommentVNode as h, createElementBlock as k, normalizeClass as V, createElementVNode as T, renderSlot as x, toDisplayString as w, createTextVNode as b, Fragment as R, renderList as G, createSlots as ee, mergeProps as U, watch as te, computed as J, mergeModels as j, useModel as se, isRef as ae } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { Spin as Q, Empty as W, Tag as
|
|
7
|
+
import { Spin as Q, Empty as W, Tag as S, Button as ne, Breadcrumb as E, BreadcrumbItem as B, Modal as ie } from "@arco-design/web-vue";
|
|
8
8
|
import { c as D, g as O } from "./auth-bwwc2iT8.js";
|
|
9
9
|
import { TiptapEditor as oe, TiptapTitle as le } from "@huyooo/vue-tiptap";
|
|
10
10
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
import { useIntersectionObserver as re } from "@vueuse/core";
|
|
12
12
|
import { m as P, a as ue, b as de, c as ce } from "./MessageNotifications-CJtKlzc3.js";
|
|
13
13
|
import { Icon as fe } from "@iconify/vue";
|
|
14
|
-
import { u as
|
|
15
|
-
import { M as
|
|
16
|
-
function
|
|
14
|
+
import { u as ge } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
15
|
+
import { M as me } from "./Menu-BjWB9hre.js";
|
|
16
|
+
function pe(e) {
|
|
17
17
|
return D({
|
|
18
18
|
url: `${O.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
|
|
19
19
|
method: "post",
|
|
@@ -31,23 +31,23 @@ function H(e, o = {}) {
|
|
|
31
31
|
const {
|
|
32
32
|
pageSize: s = 10,
|
|
33
33
|
where: u = {}
|
|
34
|
-
} = o, l =
|
|
34
|
+
} = o, l = p(!0), a = p(""), i = p(!1), r = p(!1), c = p([]), m = p({
|
|
35
35
|
current: 1,
|
|
36
36
|
pageSize: s,
|
|
37
37
|
total: 0
|
|
38
38
|
});
|
|
39
|
-
async function
|
|
39
|
+
async function $() {
|
|
40
40
|
if (!i.value) {
|
|
41
41
|
i.value = !0;
|
|
42
42
|
try {
|
|
43
43
|
const {
|
|
44
44
|
data: I
|
|
45
45
|
} = await e({
|
|
46
|
-
current:
|
|
47
|
-
pageSize:
|
|
46
|
+
current: m.value.current,
|
|
47
|
+
pageSize: m.value.pageSize,
|
|
48
48
|
where: u
|
|
49
49
|
});
|
|
50
|
-
c.value = I.items,
|
|
50
|
+
c.value = I.items, m.value.total = I.count, r.value = I.items.length < m.value.pageSize;
|
|
51
51
|
} finally {
|
|
52
52
|
i.value = !1;
|
|
53
53
|
}
|
|
@@ -55,43 +55,43 @@ function H(e, o = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
async function y() {
|
|
57
57
|
if (!(i.value || r.value)) {
|
|
58
|
-
|
|
58
|
+
m.value.current += 1, i.value = !0;
|
|
59
59
|
try {
|
|
60
60
|
const {
|
|
61
61
|
data: I
|
|
62
62
|
} = await e({
|
|
63
|
-
current:
|
|
64
|
-
pageSize:
|
|
63
|
+
current: m.value.current,
|
|
64
|
+
pageSize: m.value.pageSize,
|
|
65
65
|
where: u
|
|
66
66
|
});
|
|
67
|
-
c.value = [...c.value, ...I.items],
|
|
67
|
+
c.value = [...c.value, ...I.items], m.value.total = I.count, r.value = I.items.length < m.value.pageSize;
|
|
68
68
|
} finally {
|
|
69
69
|
i.value = !1;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
async function f() {
|
|
74
|
-
|
|
74
|
+
m.value.current = 1, r.value = !1, await $();
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function g() {
|
|
77
77
|
l.value = !0, a.value = "";
|
|
78
78
|
}
|
|
79
79
|
function z(I) {
|
|
80
80
|
a.value = I.id, l.value = !1;
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return $(), {
|
|
83
83
|
// 状态
|
|
84
84
|
isList: l,
|
|
85
85
|
detailId: a,
|
|
86
86
|
loading: i,
|
|
87
87
|
finished: r,
|
|
88
88
|
messageList: c,
|
|
89
|
-
pagination:
|
|
89
|
+
pagination: m,
|
|
90
90
|
// 方法
|
|
91
|
-
loadData:
|
|
91
|
+
loadData: $,
|
|
92
92
|
loadMore: y,
|
|
93
93
|
refresh: f,
|
|
94
|
-
toList:
|
|
94
|
+
toList: g,
|
|
95
95
|
openDetail: z
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -115,17 +115,17 @@ const ye = /* @__PURE__ */ N({
|
|
|
115
115
|
setup(e, {
|
|
116
116
|
emit: o
|
|
117
117
|
}) {
|
|
118
|
-
const s =
|
|
118
|
+
const s = p([]), u = e, l = p(!1), a = o, i = p();
|
|
119
119
|
function r(c) {
|
|
120
120
|
s.value = c, a("tableOfContentsUpdate", c);
|
|
121
121
|
}
|
|
122
|
-
return (c,
|
|
122
|
+
return (c, m) => (n(), v(t(Q), {
|
|
123
123
|
loading: u.loading,
|
|
124
124
|
tip: "文档加载中...",
|
|
125
125
|
class: "Spin",
|
|
126
126
|
dot: ""
|
|
127
127
|
}, {
|
|
128
|
-
default: d(() => [
|
|
128
|
+
default: d(() => [C(t(oe), {
|
|
129
129
|
ref_key: "TiptapEditorRef",
|
|
130
130
|
ref: i,
|
|
131
131
|
"model-value": u.content,
|
|
@@ -133,7 +133,7 @@ const ye = /* @__PURE__ */ N({
|
|
|
133
133
|
"tiptap-editor-content-class": "tiptapEditorContentClass",
|
|
134
134
|
onTableOfContentsUpdate: r
|
|
135
135
|
}, {
|
|
136
|
-
title: d(() => [
|
|
136
|
+
title: d(() => [C(t(le), {
|
|
137
137
|
"model-value": u.title,
|
|
138
138
|
editable: l.value
|
|
139
139
|
}, null, 8, ["model-value", "editable"])]),
|
|
@@ -151,7 +151,7 @@ const ye = /* @__PURE__ */ N({
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
setup(e) {
|
|
154
|
-
const o =
|
|
154
|
+
const o = p(!1), s = p(null), u = p(""), l = e;
|
|
155
155
|
function a() {
|
|
156
156
|
o.value = !0, ve({
|
|
157
157
|
id: l.id
|
|
@@ -207,7 +207,7 @@ const ye = /* @__PURE__ */ N({
|
|
|
207
207
|
setup(e, {
|
|
208
208
|
emit: o
|
|
209
209
|
}) {
|
|
210
|
-
const s = e, u = o, l =
|
|
210
|
+
const s = e, u = o, l = p(null);
|
|
211
211
|
return re(l, ([{
|
|
212
212
|
isIntersecting: a
|
|
213
213
|
}]) => {
|
|
@@ -215,13 +215,13 @@ const ye = /* @__PURE__ */ N({
|
|
|
215
215
|
!s.loading && !s.finished && u("infinite");
|
|
216
216
|
}, {
|
|
217
217
|
threshold: s.threshold
|
|
218
|
-
}), (a, i) => (n(),
|
|
218
|
+
}), (a, i) => (n(), k("div", {
|
|
219
219
|
ref_key: "container",
|
|
220
220
|
ref: l,
|
|
221
221
|
class: "infinite-loading"
|
|
222
|
-
}, [e.loading ? (n(),
|
|
222
|
+
}, [e.loading ? (n(), k("div", he, [C(t(Q), {
|
|
223
223
|
tip: e.loadingText
|
|
224
|
-
}, null, 8, ["tip"])])) : h("", !0), e.finished && e.showFinishedText ? (n(),
|
|
224
|
+
}, null, 8, ["tip"])])) : h("", !0), e.finished && e.showFinishedText ? (n(), k("div", be, [C(t(W), {
|
|
225
225
|
description: e.finishedText
|
|
226
226
|
}, null, 8, ["description"])])) : h("", !0)], 512));
|
|
227
227
|
}
|
|
@@ -241,7 +241,7 @@ const ye = /* @__PURE__ */ N({
|
|
|
241
241
|
class: "message-item__time"
|
|
242
242
|
}, Ie = {
|
|
243
243
|
class: "message-item__actions"
|
|
244
|
-
},
|
|
244
|
+
}, Te = /* @__PURE__ */ N({
|
|
245
245
|
__name: "MessageItem",
|
|
246
246
|
props: {
|
|
247
247
|
item: {},
|
|
@@ -254,64 +254,64 @@ const ye = /* @__PURE__ */ N({
|
|
|
254
254
|
},
|
|
255
255
|
emits: ["click"],
|
|
256
256
|
setup(e) {
|
|
257
|
-
return (o, s) => (n(),
|
|
257
|
+
return (o, s) => (n(), k("div", {
|
|
258
258
|
class: V(["message-item", {
|
|
259
259
|
"message-item--unread": e.showReadStatus && !e.item.read
|
|
260
260
|
}]),
|
|
261
261
|
onClick: s[0] || (s[0] = (u) => o.$emit("click", e.item))
|
|
262
|
-
}, [
|
|
262
|
+
}, [T("div", $e, [T("div", Ne, [e.showReadStatus ? (n(), k("span", {
|
|
263
263
|
key: 0,
|
|
264
264
|
class: V(["message-item__dot", {
|
|
265
265
|
"message-item__dot--unread": !e.item.read
|
|
266
266
|
}])
|
|
267
|
-
}, null, 2)) : h("", !0),
|
|
267
|
+
}, null, 2)) : h("", !0), x(o.$slots, "prefix", {
|
|
268
268
|
item: e.item
|
|
269
|
-
}, void 0, !0),
|
|
269
|
+
}, void 0, !0), T("span", Me, w(e.item.title), 1), T("div", Ae, [e.item.pinned ? (n(), v(t(S), {
|
|
270
270
|
key: 0,
|
|
271
271
|
color: "arcoblue",
|
|
272
272
|
size: "small"
|
|
273
273
|
}, {
|
|
274
|
-
default: d(() => [...s[1] || (s[1] = [
|
|
274
|
+
default: d(() => [...s[1] || (s[1] = [b("置顶", -1)])]),
|
|
275
275
|
_: 1
|
|
276
|
-
})) : h("", !0),
|
|
276
|
+
})) : h("", !0), x(o.$slots, "tags", {
|
|
277
277
|
item: e.item
|
|
278
|
-
}, () => [e.item.priority === "urgent" ? (n(), v(t(
|
|
278
|
+
}, () => [e.item.priority === "urgent" ? (n(), v(t(S), {
|
|
279
279
|
key: 0,
|
|
280
280
|
color: "red",
|
|
281
281
|
size: "small"
|
|
282
282
|
}, {
|
|
283
|
-
default: d(() => [...s[2] || (s[2] = [
|
|
283
|
+
default: d(() => [...s[2] || (s[2] = [b("紧急", -1)])]),
|
|
284
284
|
_: 1
|
|
285
|
-
})) : e.item.priority === "important" ? (n(), v(t(
|
|
285
|
+
})) : e.item.priority === "important" ? (n(), v(t(S), {
|
|
286
286
|
key: 1,
|
|
287
287
|
color: "orange",
|
|
288
288
|
size: "small"
|
|
289
289
|
}, {
|
|
290
|
-
default: d(() => [...s[3] || (s[3] = [
|
|
290
|
+
default: d(() => [...s[3] || (s[3] = [b("重要", -1)])]),
|
|
291
291
|
_: 1
|
|
292
|
-
})) : e.item.priority === "high" ? (n(), v(t(
|
|
292
|
+
})) : e.item.priority === "high" ? (n(), v(t(S), {
|
|
293
293
|
key: 2,
|
|
294
294
|
color: "orange",
|
|
295
295
|
size: "small"
|
|
296
296
|
}, {
|
|
297
|
-
default: d(() => [...s[4] || (s[4] = [
|
|
297
|
+
default: d(() => [...s[4] || (s[4] = [b("高", -1)])]),
|
|
298
298
|
_: 1
|
|
299
|
-
})) : h("", !0)], !0)])]),
|
|
299
|
+
})) : h("", !0)], !0)])]), T("div", Se, [x(o.$slots, "description", {
|
|
300
300
|
item: e.item
|
|
301
|
-
}, () => [
|
|
301
|
+
}, () => [b(w(e.item.description), 1)], !0)]), T("div", we, [T("span", Le, w(e.item.createAt), 1), x(o.$slots, "footer", {
|
|
302
302
|
item: e.item
|
|
303
|
-
}, void 0, !0)])]),
|
|
303
|
+
}, void 0, !0)])]), T("div", Ie, [x(o.$slots, "actions", {
|
|
304
304
|
item: e.item
|
|
305
305
|
}, () => [e.showViewButton ? (n(), v(t(ne), {
|
|
306
306
|
key: 0,
|
|
307
307
|
type: "text",
|
|
308
308
|
size: "small"
|
|
309
309
|
}, {
|
|
310
|
-
default: d(() => [...s[5] || (s[5] = [
|
|
310
|
+
default: d(() => [...s[5] || (s[5] = [b("查看", -1)])]),
|
|
311
311
|
_: 1
|
|
312
312
|
})) : h("", !0)], !0)])], 2));
|
|
313
313
|
}
|
|
314
|
-
}),
|
|
314
|
+
}), xe = /* @__PURE__ */ L(Te, [["__scopeId", "data-v-1cf5087b"]]), ze = {
|
|
315
315
|
class: "message-list"
|
|
316
316
|
}, Be = {
|
|
317
317
|
key: 0,
|
|
@@ -341,11 +341,11 @@ const ye = /* @__PURE__ */ N({
|
|
|
341
341
|
function l(a) {
|
|
342
342
|
u("itemClick", a);
|
|
343
343
|
}
|
|
344
|
-
return (a, i) => (n(),
|
|
344
|
+
return (a, i) => (n(), k("div", ze, [s.messageList.length === 0 && !s.loading ? (n(), k("div", Be, [C(t(W), {
|
|
345
345
|
description: "暂无消息"
|
|
346
|
-
})])) : (n(),
|
|
346
|
+
})])) : (n(), k(R, {
|
|
347
347
|
key: 1
|
|
348
|
-
}, [(n(!0),
|
|
348
|
+
}, [(n(!0), k(R, null, G(s.messageList, (r) => (n(), v(xe, {
|
|
349
349
|
key: r.id,
|
|
350
350
|
item: r,
|
|
351
351
|
"show-read-status": s.showReadStatus,
|
|
@@ -355,35 +355,35 @@ const ye = /* @__PURE__ */ N({
|
|
|
355
355
|
_: 2
|
|
356
356
|
}, [a.$slots.prefix ? {
|
|
357
357
|
name: "prefix",
|
|
358
|
-
fn: d((c) => [
|
|
358
|
+
fn: d((c) => [x(a.$slots, "prefix", U({
|
|
359
359
|
ref_for: !0
|
|
360
360
|
}, c), void 0, !0)]),
|
|
361
361
|
key: "0"
|
|
362
362
|
} : void 0, a.$slots.tags ? {
|
|
363
363
|
name: "tags",
|
|
364
|
-
fn: d((c) => [
|
|
364
|
+
fn: d((c) => [x(a.$slots, "tags", U({
|
|
365
365
|
ref_for: !0
|
|
366
366
|
}, c), void 0, !0)]),
|
|
367
367
|
key: "1"
|
|
368
368
|
} : void 0, a.$slots.description ? {
|
|
369
369
|
name: "description",
|
|
370
|
-
fn: d((c) => [
|
|
370
|
+
fn: d((c) => [x(a.$slots, "description", U({
|
|
371
371
|
ref_for: !0
|
|
372
372
|
}, c), void 0, !0)]),
|
|
373
373
|
key: "2"
|
|
374
374
|
} : void 0, a.$slots.footer ? {
|
|
375
375
|
name: "footer",
|
|
376
|
-
fn: d((c) => [
|
|
376
|
+
fn: d((c) => [x(a.$slots, "footer", U({
|
|
377
377
|
ref_for: !0
|
|
378
378
|
}, c), void 0, !0)]),
|
|
379
379
|
key: "3"
|
|
380
380
|
} : void 0, a.$slots.actions ? {
|
|
381
381
|
name: "actions",
|
|
382
|
-
fn: d((c) => [
|
|
382
|
+
fn: d((c) => [x(a.$slots, "actions", U({
|
|
383
383
|
ref_for: !0
|
|
384
384
|
}, c), void 0, !0)]),
|
|
385
385
|
key: "4"
|
|
386
|
-
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)),
|
|
386
|
+
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), C(Ce, {
|
|
387
387
|
loading: s.loading,
|
|
388
388
|
finished: s.finished,
|
|
389
389
|
onInfinite: i[0] || (i[0] = (r) => a.$emit("loadMore"))
|
|
@@ -392,11 +392,9 @@ const ye = /* @__PURE__ */ N({
|
|
|
392
392
|
}), K = /* @__PURE__ */ L(De, [["__scopeId", "data-v-991c4730"]]), Oe = {
|
|
393
393
|
class: "message-panel"
|
|
394
394
|
}, Ue = {
|
|
395
|
-
class: "version-prefix"
|
|
396
|
-
}, Ve = {
|
|
397
395
|
key: 0,
|
|
398
396
|
class: "publish-time"
|
|
399
|
-
},
|
|
397
|
+
}, Ve = /* @__PURE__ */ N({
|
|
400
398
|
__name: "MessageChangelogNotifications",
|
|
401
399
|
setup(e) {
|
|
402
400
|
const {
|
|
@@ -408,8 +406,8 @@ const ye = /* @__PURE__ */ N({
|
|
|
408
406
|
loadMore: i,
|
|
409
407
|
toList: r,
|
|
410
408
|
openDetail: c
|
|
411
|
-
} = H(
|
|
412
|
-
function
|
|
409
|
+
} = H(pe);
|
|
410
|
+
function m(y) {
|
|
413
411
|
return {
|
|
414
412
|
feature: "green",
|
|
415
413
|
improvement: "blue",
|
|
@@ -418,7 +416,7 @@ const ye = /* @__PURE__ */ N({
|
|
|
418
416
|
breaking: "magenta"
|
|
419
417
|
}[y] || "blue";
|
|
420
418
|
}
|
|
421
|
-
function
|
|
419
|
+
function $(y) {
|
|
422
420
|
return {
|
|
423
421
|
feature: "新功能",
|
|
424
422
|
improvement: "优化",
|
|
@@ -427,17 +425,17 @@ const ye = /* @__PURE__ */ N({
|
|
|
427
425
|
breaking: "重大变更"
|
|
428
426
|
}[y] || "更新";
|
|
429
427
|
}
|
|
430
|
-
return (y, f) => (n(),
|
|
428
|
+
return (y, f) => (n(), k("div", Oe, [t(o) ? h("", !0) : (n(), v(t(E), {
|
|
431
429
|
key: 0,
|
|
432
430
|
class: "message-panel__breadcrumb"
|
|
433
431
|
}, {
|
|
434
|
-
default: d(() => [
|
|
432
|
+
default: d(() => [C(t(B), {
|
|
435
433
|
onClick: t(r)
|
|
436
434
|
}, {
|
|
437
|
-
default: d(() => [...f[0] || (f[0] = [
|
|
435
|
+
default: d(() => [...f[0] || (f[0] = [b("更新日志", -1)])]),
|
|
438
436
|
_: 1
|
|
439
|
-
}, 8, ["onClick"]),
|
|
440
|
-
default: d(() => [...f[1] || (f[1] = [
|
|
437
|
+
}, 8, ["onClick"]), C(t(B), null, {
|
|
438
|
+
default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
|
|
441
439
|
_: 1
|
|
442
440
|
})]),
|
|
443
441
|
_: 1
|
|
@@ -450,42 +448,48 @@ const ye = /* @__PURE__ */ N({
|
|
|
450
448
|
onLoadMore: t(i)
|
|
451
449
|
}, {
|
|
452
450
|
prefix: d(({
|
|
453
|
-
item:
|
|
454
|
-
}) => [
|
|
451
|
+
item: g
|
|
452
|
+
}) => [C(t(S), {
|
|
453
|
+
color: "arcoblue",
|
|
454
|
+
size: "small"
|
|
455
|
+
}, {
|
|
456
|
+
default: d(() => [b(w(g.version), 1)]),
|
|
457
|
+
_: 2
|
|
458
|
+
}, 1024)]),
|
|
455
459
|
tags: d(({
|
|
456
|
-
item:
|
|
457
|
-
}) => [
|
|
458
|
-
color: g
|
|
460
|
+
item: g
|
|
461
|
+
}) => [C(t(S), {
|
|
462
|
+
color: m(g.changeType),
|
|
459
463
|
size: "small"
|
|
460
464
|
}, {
|
|
461
|
-
default: d(() => [
|
|
465
|
+
default: d(() => [b(w($(g.changeType)), 1)]),
|
|
462
466
|
_: 2
|
|
463
467
|
}, 1032, ["color"])]),
|
|
464
468
|
footer: d(({
|
|
465
|
-
item:
|
|
466
|
-
}) => [
|
|
469
|
+
item: g
|
|
470
|
+
}) => [g.publishedAt ? (n(), k("span", Ue, " 发布于 " + w(g.publishedAt), 1)) : h("", !0)]),
|
|
467
471
|
_: 1
|
|
468
472
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(_e, {
|
|
469
473
|
key: 2,
|
|
470
474
|
id: t(s)
|
|
471
475
|
}, null, 8, ["id"]))]));
|
|
472
476
|
}
|
|
473
|
-
}),
|
|
474
|
-
function
|
|
477
|
+
}), Re = /* @__PURE__ */ L(Ve, [["__scopeId", "data-v-27c37cfc"]]);
|
|
478
|
+
function Ee(e) {
|
|
475
479
|
return D({
|
|
476
480
|
url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
|
|
477
481
|
method: "post",
|
|
478
482
|
data: e
|
|
479
483
|
});
|
|
480
484
|
}
|
|
481
|
-
function
|
|
485
|
+
function Fe(e) {
|
|
482
486
|
return D({
|
|
483
487
|
url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
|
|
484
488
|
method: "post",
|
|
485
489
|
data: e
|
|
486
490
|
});
|
|
487
491
|
}
|
|
488
|
-
const
|
|
492
|
+
const Ke = /* @__PURE__ */ N({
|
|
489
493
|
__name: "MessageEventNotificationsDetails",
|
|
490
494
|
props: {
|
|
491
495
|
id: {
|
|
@@ -494,9 +498,9 @@ const qe = /* @__PURE__ */ N({
|
|
|
494
498
|
}
|
|
495
499
|
},
|
|
496
500
|
setup(e) {
|
|
497
|
-
const o =
|
|
501
|
+
const o = p(!1), s = p(null), u = p(""), l = e;
|
|
498
502
|
function a() {
|
|
499
|
-
o.value = !0,
|
|
503
|
+
o.value = !0, Fe({
|
|
500
504
|
id: l.id
|
|
501
505
|
}).then(({
|
|
502
506
|
data: i
|
|
@@ -512,12 +516,12 @@ const qe = /* @__PURE__ */ N({
|
|
|
512
516
|
loading: o.value
|
|
513
517
|
}, null, 8, ["content", "title", "loading"]));
|
|
514
518
|
}
|
|
515
|
-
}),
|
|
519
|
+
}), qe = {
|
|
516
520
|
class: "message-panel"
|
|
517
|
-
},
|
|
521
|
+
}, He = {
|
|
518
522
|
key: 0,
|
|
519
523
|
class: "time-range"
|
|
520
|
-
},
|
|
524
|
+
}, je = /* @__PURE__ */ N({
|
|
521
525
|
__name: "MessageEventNotifications",
|
|
522
526
|
setup(e) {
|
|
523
527
|
const {
|
|
@@ -529,13 +533,13 @@ const qe = /* @__PURE__ */ N({
|
|
|
529
533
|
loadMore: i,
|
|
530
534
|
toList: r,
|
|
531
535
|
openDetail: c
|
|
532
|
-
} = H((y) =>
|
|
536
|
+
} = H((y) => Ee({
|
|
533
537
|
...y,
|
|
534
538
|
where: {
|
|
535
539
|
status: "published"
|
|
536
540
|
}
|
|
537
541
|
}));
|
|
538
|
-
function
|
|
542
|
+
function m(y) {
|
|
539
543
|
return {
|
|
540
544
|
upcoming: "blue",
|
|
541
545
|
ongoing: "green",
|
|
@@ -543,7 +547,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
543
547
|
published: "arcoblue"
|
|
544
548
|
}[y] || "gray";
|
|
545
549
|
}
|
|
546
|
-
function
|
|
550
|
+
function $(y) {
|
|
547
551
|
return {
|
|
548
552
|
upcoming: "即将开始",
|
|
549
553
|
ongoing: "进行中",
|
|
@@ -551,17 +555,17 @@ const qe = /* @__PURE__ */ N({
|
|
|
551
555
|
published: "已发布"
|
|
552
556
|
}[y] || "未知";
|
|
553
557
|
}
|
|
554
|
-
return (y, f) => (n(),
|
|
558
|
+
return (y, f) => (n(), k("div", qe, [t(o) ? h("", !0) : (n(), v(t(E), {
|
|
555
559
|
key: 0,
|
|
556
560
|
class: "message-panel__breadcrumb"
|
|
557
561
|
}, {
|
|
558
|
-
default: d(() => [
|
|
562
|
+
default: d(() => [C(t(B), {
|
|
559
563
|
onClick: t(r)
|
|
560
564
|
}, {
|
|
561
|
-
default: d(() => [...f[0] || (f[0] = [
|
|
565
|
+
default: d(() => [...f[0] || (f[0] = [b("活动通知", -1)])]),
|
|
562
566
|
_: 1
|
|
563
|
-
}, 8, ["onClick"]),
|
|
564
|
-
default: d(() => [...f[1] || (f[1] = [
|
|
567
|
+
}, 8, ["onClick"]), C(t(B), null, {
|
|
568
|
+
default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
|
|
565
569
|
_: 1
|
|
566
570
|
})]),
|
|
567
571
|
_: 1
|
|
@@ -574,29 +578,29 @@ const qe = /* @__PURE__ */ N({
|
|
|
574
578
|
onLoadMore: t(i)
|
|
575
579
|
}, {
|
|
576
580
|
tags: d(({
|
|
577
|
-
item:
|
|
578
|
-
}) => [
|
|
579
|
-
color: g
|
|
581
|
+
item: g
|
|
582
|
+
}) => [C(t(S), {
|
|
583
|
+
color: m(g.displayStatus),
|
|
580
584
|
size: "small"
|
|
581
585
|
}, {
|
|
582
|
-
default: d(() => [
|
|
586
|
+
default: d(() => [b(w($(g.displayStatus)), 1)]),
|
|
583
587
|
_: 2
|
|
584
588
|
}, 1032, ["color"])]),
|
|
585
589
|
footer: d(({
|
|
586
|
-
item:
|
|
587
|
-
}) => [
|
|
590
|
+
item: g
|
|
591
|
+
}) => [g.startAt || g.endAt ? (n(), k("span", He, w(g.startAt || "无") + " ~ " + w(g.endAt || "无"), 1)) : h("", !0)]),
|
|
588
592
|
_: 1
|
|
589
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(
|
|
593
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(Ke, {
|
|
590
594
|
key: 2,
|
|
591
595
|
id: t(s)
|
|
592
596
|
}, null, 8, ["id"]))]));
|
|
593
597
|
}
|
|
594
|
-
}),
|
|
598
|
+
}), Pe = /* @__PURE__ */ L(je, [["__scopeId", "data-v-13297e28"]]), Ge = {
|
|
595
599
|
style: {
|
|
596
600
|
display: "flex",
|
|
597
601
|
gap: "16px"
|
|
598
602
|
}
|
|
599
|
-
},
|
|
603
|
+
}, Je = ["onClick"], Qe = /* @__PURE__ */ N({
|
|
600
604
|
__name: "MessageCustomTabs",
|
|
601
605
|
props: {
|
|
602
606
|
modelValue: {
|
|
@@ -622,17 +626,17 @@ const qe = /* @__PURE__ */ N({
|
|
|
622
626
|
function l(a) {
|
|
623
627
|
a !== s.modelValue && (u("update:modelValue", a), u("change", a));
|
|
624
628
|
}
|
|
625
|
-
return (a, i) => (n(),
|
|
629
|
+
return (a, i) => (n(), k("div", Ge, [(n(!0), k(R, null, G(e.tabs, (r) => (n(), k("span", {
|
|
626
630
|
key: r.key,
|
|
627
631
|
class: V(["custom-tab", [{
|
|
628
632
|
active: e.modelValue === r.key
|
|
629
633
|
}]]),
|
|
630
634
|
onClick: (c) => l(r.key)
|
|
631
|
-
}, w(r.label), 11,
|
|
635
|
+
}, w(r.label), 11, Je))), 128))]));
|
|
632
636
|
}
|
|
633
|
-
}),
|
|
637
|
+
}), We = /* @__PURE__ */ L(Qe, [["__scopeId", "data-v-fafcc3ad"]]), Xe = {
|
|
634
638
|
class: "tabs"
|
|
635
|
-
},
|
|
639
|
+
}, Ye = /* @__PURE__ */ N({
|
|
636
640
|
__name: "MessageTabs",
|
|
637
641
|
props: {
|
|
638
642
|
tabs: {
|
|
@@ -652,7 +656,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
652
656
|
setup(e, {
|
|
653
657
|
emit: o
|
|
654
658
|
}) {
|
|
655
|
-
const s = e, u = o, l =
|
|
659
|
+
const s = e, u = o, l = p(s.activeTab);
|
|
656
660
|
te(() => s.activeTab, (r) => {
|
|
657
661
|
l.value = r;
|
|
658
662
|
});
|
|
@@ -662,35 +666,35 @@ const qe = /* @__PURE__ */ N({
|
|
|
662
666
|
function i() {
|
|
663
667
|
s.messageList.length !== 0 && u("readAll");
|
|
664
668
|
}
|
|
665
|
-
return (r, c) => (n(),
|
|
669
|
+
return (r, c) => (n(), k("div", Xe, [C(We, {
|
|
666
670
|
modelValue: l.value,
|
|
667
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
671
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => l.value = m),
|
|
668
672
|
tabs: e.tabs,
|
|
669
673
|
onChange: a
|
|
670
|
-
}, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (n(),
|
|
674
|
+
}, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (n(), k("div", {
|
|
671
675
|
key: 0,
|
|
672
676
|
class: V(["readAll", {
|
|
673
677
|
disabled: e.messageList.length === 0
|
|
674
678
|
}]),
|
|
675
679
|
onClick: i
|
|
676
|
-
}, [
|
|
680
|
+
}, [C(t(fe), {
|
|
677
681
|
class: "icon",
|
|
678
682
|
icon: "icon-park-outline:clear"
|
|
679
|
-
}), c[1] || (c[1] =
|
|
683
|
+
}), c[1] || (c[1] = T("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
|
|
680
684
|
}
|
|
681
|
-
}),
|
|
685
|
+
}), Ze = /* @__PURE__ */ L(Ye, [["__scopeId", "data-v-91277265"]]), et = {
|
|
682
686
|
class: "message-panel"
|
|
683
|
-
}, q = "system",
|
|
687
|
+
}, q = "system", tt = /* @__PURE__ */ N({
|
|
684
688
|
__name: "MessageNotifications",
|
|
685
689
|
setup(e) {
|
|
686
|
-
const o =
|
|
690
|
+
const o = p(!0), s = p(""), u = p(!1), l = p({
|
|
687
691
|
title: "",
|
|
688
692
|
content: null
|
|
689
|
-
}), a =
|
|
693
|
+
}), a = p(!1), i = p(!1), r = p([]), c = p("unread"), m = p({
|
|
690
694
|
current: 1,
|
|
691
695
|
pageSize: 10,
|
|
692
696
|
total: 0
|
|
693
|
-
}),
|
|
697
|
+
}), $ = [{
|
|
694
698
|
label: "未读消息",
|
|
695
699
|
key: "unread"
|
|
696
700
|
}, {
|
|
@@ -703,8 +707,8 @@ const qe = /* @__PURE__ */ N({
|
|
|
703
707
|
const {
|
|
704
708
|
data: M
|
|
705
709
|
} = await P({
|
|
706
|
-
current:
|
|
707
|
-
pageSize:
|
|
710
|
+
current: m.value.current,
|
|
711
|
+
pageSize: m.value.pageSize,
|
|
708
712
|
where: {
|
|
709
713
|
type: q,
|
|
710
714
|
read: y.value
|
|
@@ -720,20 +724,20 @@ const qe = /* @__PURE__ */ N({
|
|
|
720
724
|
priority: _.priority,
|
|
721
725
|
read: _.read ?? !1,
|
|
722
726
|
readAt: _.readAt ?? null
|
|
723
|
-
})),
|
|
727
|
+
})), m.value.total = M.count, i.value = M.items.length < m.value.pageSize;
|
|
724
728
|
} finally {
|
|
725
729
|
a.value = !1;
|
|
726
730
|
}
|
|
727
731
|
}
|
|
728
|
-
async function
|
|
732
|
+
async function g() {
|
|
729
733
|
if (!(a.value || i.value)) {
|
|
730
|
-
|
|
734
|
+
m.value.current += 1, a.value = !0;
|
|
731
735
|
try {
|
|
732
736
|
const {
|
|
733
737
|
data: M
|
|
734
738
|
} = await P({
|
|
735
|
-
current:
|
|
736
|
-
pageSize:
|
|
739
|
+
current: m.value.current,
|
|
740
|
+
pageSize: m.value.pageSize,
|
|
737
741
|
where: {
|
|
738
742
|
type: q,
|
|
739
743
|
read: y.value
|
|
@@ -749,14 +753,14 @@ const qe = /* @__PURE__ */ N({
|
|
|
749
753
|
read: A.read ?? !1,
|
|
750
754
|
readAt: A.readAt ?? null
|
|
751
755
|
}));
|
|
752
|
-
r.value = [...r.value, ..._], i.value = M.items.length <
|
|
756
|
+
r.value = [...r.value, ..._], i.value = M.items.length < m.value.pageSize;
|
|
753
757
|
} finally {
|
|
754
758
|
a.value = !1;
|
|
755
759
|
}
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
762
|
function z() {
|
|
759
|
-
|
|
763
|
+
m.value.current = 1, i.value = !1, f();
|
|
760
764
|
}
|
|
761
765
|
async function I() {
|
|
762
766
|
r.value.length !== 0 && (await ue({
|
|
@@ -790,25 +794,25 @@ const qe = /* @__PURE__ */ N({
|
|
|
790
794
|
messageId: M.id
|
|
791
795
|
}), Y(M.id);
|
|
792
796
|
}
|
|
793
|
-
return f(), (M, _) => (n(),
|
|
797
|
+
return f(), (M, _) => (n(), k("div", et, [o.value ? h("", !0) : (n(), v(t(E), {
|
|
794
798
|
key: 0,
|
|
795
799
|
class: "message-panel__breadcrumb"
|
|
796
800
|
}, {
|
|
797
|
-
default: d(() => [
|
|
801
|
+
default: d(() => [C(t(B), {
|
|
798
802
|
onClick: X
|
|
799
803
|
}, {
|
|
800
|
-
default: d(() => [..._[1] || (_[1] = [
|
|
804
|
+
default: d(() => [..._[1] || (_[1] = [b("消息通知", -1)])]),
|
|
801
805
|
_: 1
|
|
802
|
-
}),
|
|
803
|
-
default: d(() => [..._[2] || (_[2] = [
|
|
806
|
+
}), C(t(B), null, {
|
|
807
|
+
default: d(() => [..._[2] || (_[2] = [b("详情", -1)])]),
|
|
804
808
|
_: 1
|
|
805
809
|
})]),
|
|
806
810
|
_: 1
|
|
807
|
-
})), o.value ? (n(), v(
|
|
811
|
+
})), o.value ? (n(), v(Ze, {
|
|
808
812
|
key: 1,
|
|
809
813
|
"active-tab": c.value,
|
|
810
814
|
"onUpdate:activeTab": _[0] || (_[0] = (A) => c.value = A),
|
|
811
|
-
tabs:
|
|
815
|
+
tabs: $,
|
|
812
816
|
"message-list": r.value,
|
|
813
817
|
onChange: z,
|
|
814
818
|
onReadAll: I
|
|
@@ -820,23 +824,23 @@ const qe = /* @__PURE__ */ N({
|
|
|
820
824
|
"show-read-status": !0,
|
|
821
825
|
"show-view-button": !1,
|
|
822
826
|
onItemClick: Z,
|
|
823
|
-
onLoadMore:
|
|
827
|
+
onLoadMore: g
|
|
824
828
|
}, {
|
|
825
829
|
tags: d(({
|
|
826
830
|
item: A
|
|
827
|
-
}) => [A.priority === "urgent" ? (n(), v(t(
|
|
831
|
+
}) => [A.priority === "urgent" ? (n(), v(t(S), {
|
|
828
832
|
key: 0,
|
|
829
833
|
color: "red",
|
|
830
834
|
size: "small"
|
|
831
835
|
}, {
|
|
832
|
-
default: d(() => [..._[3] || (_[3] = [
|
|
836
|
+
default: d(() => [..._[3] || (_[3] = [b("紧急", -1)])]),
|
|
833
837
|
_: 1
|
|
834
|
-
})) : A.priority === "high" ? (n(), v(t(
|
|
838
|
+
})) : A.priority === "high" ? (n(), v(t(S), {
|
|
835
839
|
key: 1,
|
|
836
840
|
color: "orange",
|
|
837
841
|
size: "small"
|
|
838
842
|
}, {
|
|
839
|
-
default: d(() => [..._[4] || (_[4] = [
|
|
843
|
+
default: d(() => [..._[4] || (_[4] = [b("高", -1)])]),
|
|
840
844
|
_: 1
|
|
841
845
|
})) : h("", !0)]),
|
|
842
846
|
_: 1
|
|
@@ -847,22 +851,22 @@ const qe = /* @__PURE__ */ N({
|
|
|
847
851
|
loading: u.value
|
|
848
852
|
}, null, 8, ["title", "content", "loading"]))]));
|
|
849
853
|
}
|
|
850
|
-
}),
|
|
851
|
-
function
|
|
854
|
+
}), st = /* @__PURE__ */ L(tt, [["__scopeId", "data-v-2fe260dd"]]);
|
|
855
|
+
function at(e) {
|
|
852
856
|
return D({
|
|
853
857
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
|
|
854
858
|
method: "post",
|
|
855
859
|
data: e
|
|
856
860
|
});
|
|
857
861
|
}
|
|
858
|
-
function
|
|
862
|
+
function nt(e) {
|
|
859
863
|
return D({
|
|
860
864
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
|
|
861
865
|
method: "post",
|
|
862
866
|
data: e
|
|
863
867
|
});
|
|
864
868
|
}
|
|
865
|
-
const
|
|
869
|
+
const it = /* @__PURE__ */ N({
|
|
866
870
|
__name: "MessageNoticeNotificationsDetails",
|
|
867
871
|
props: {
|
|
868
872
|
id: {
|
|
@@ -871,9 +875,9 @@ const ot = /* @__PURE__ */ N({
|
|
|
871
875
|
}
|
|
872
876
|
},
|
|
873
877
|
setup(e) {
|
|
874
|
-
const o =
|
|
878
|
+
const o = p(!1), s = p(null), u = p(""), l = e;
|
|
875
879
|
function a() {
|
|
876
|
-
o.value = !0,
|
|
880
|
+
o.value = !0, nt({
|
|
877
881
|
id: l.id
|
|
878
882
|
}).then(({
|
|
879
883
|
data: i
|
|
@@ -889,12 +893,12 @@ const ot = /* @__PURE__ */ N({
|
|
|
889
893
|
loading: o.value
|
|
890
894
|
}, null, 8, ["content", "title", "loading"]));
|
|
891
895
|
}
|
|
892
|
-
}),
|
|
896
|
+
}), ot = {
|
|
893
897
|
class: "message-panel"
|
|
894
|
-
},
|
|
898
|
+
}, lt = {
|
|
895
899
|
key: 0,
|
|
896
900
|
class: "expire-time"
|
|
897
|
-
},
|
|
901
|
+
}, rt = /* @__PURE__ */ N({
|
|
898
902
|
__name: "MessageNoticeNotifications",
|
|
899
903
|
setup(e) {
|
|
900
904
|
const {
|
|
@@ -906,35 +910,35 @@ const ot = /* @__PURE__ */ N({
|
|
|
906
910
|
loadMore: i,
|
|
907
911
|
toList: r,
|
|
908
912
|
openDetail: c
|
|
909
|
-
} = H((y) =>
|
|
913
|
+
} = H((y) => at({
|
|
910
914
|
...y,
|
|
911
915
|
where: {
|
|
912
916
|
status: "published"
|
|
913
917
|
}
|
|
914
918
|
}));
|
|
915
|
-
function
|
|
919
|
+
function m(y) {
|
|
916
920
|
return {
|
|
917
921
|
published: "green",
|
|
918
922
|
expired: "gray"
|
|
919
923
|
}[y] || "gray";
|
|
920
924
|
}
|
|
921
|
-
function
|
|
925
|
+
function $(y) {
|
|
922
926
|
return {
|
|
923
927
|
published: "有效",
|
|
924
928
|
expired: "已过期"
|
|
925
929
|
}[y] || "未知";
|
|
926
930
|
}
|
|
927
|
-
return (y, f) => (n(),
|
|
931
|
+
return (y, f) => (n(), k("div", ot, [t(o) ? h("", !0) : (n(), v(t(E), {
|
|
928
932
|
key: 0,
|
|
929
933
|
class: "message-panel__breadcrumb"
|
|
930
934
|
}, {
|
|
931
|
-
default: d(() => [
|
|
935
|
+
default: d(() => [C(t(B), {
|
|
932
936
|
onClick: t(r)
|
|
933
937
|
}, {
|
|
934
|
-
default: d(() => [...f[0] || (f[0] = [
|
|
938
|
+
default: d(() => [...f[0] || (f[0] = [b("公告通知", -1)])]),
|
|
935
939
|
_: 1
|
|
936
|
-
}, 8, ["onClick"]),
|
|
937
|
-
default: d(() => [...f[1] || (f[1] = [
|
|
940
|
+
}, 8, ["onClick"]), C(t(B), null, {
|
|
941
|
+
default: d(() => [...f[1] || (f[1] = [b("详情", -1)])]),
|
|
938
942
|
_: 1
|
|
939
943
|
})]),
|
|
940
944
|
_: 1
|
|
@@ -947,42 +951,42 @@ const ot = /* @__PURE__ */ N({
|
|
|
947
951
|
onLoadMore: t(i)
|
|
948
952
|
}, {
|
|
949
953
|
tags: d(({
|
|
950
|
-
item:
|
|
951
|
-
}) => [
|
|
954
|
+
item: g
|
|
955
|
+
}) => [g.priority === "urgent" ? (n(), v(t(S), {
|
|
952
956
|
key: 0,
|
|
953
957
|
color: "red",
|
|
954
958
|
size: "small"
|
|
955
959
|
}, {
|
|
956
|
-
default: d(() => [...f[2] || (f[2] = [
|
|
960
|
+
default: d(() => [...f[2] || (f[2] = [b("紧急", -1)])]),
|
|
957
961
|
_: 1
|
|
958
|
-
})) :
|
|
962
|
+
})) : g.priority === "important" ? (n(), v(t(S), {
|
|
959
963
|
key: 1,
|
|
960
964
|
color: "orange",
|
|
961
965
|
size: "small"
|
|
962
966
|
}, {
|
|
963
|
-
default: d(() => [...f[3] || (f[3] = [
|
|
967
|
+
default: d(() => [...f[3] || (f[3] = [b("重要", -1)])]),
|
|
964
968
|
_: 1
|
|
965
|
-
})) : h("", !0),
|
|
966
|
-
color: g
|
|
969
|
+
})) : h("", !0), C(t(S), {
|
|
970
|
+
color: m(g.displayStatus),
|
|
967
971
|
size: "small"
|
|
968
972
|
}, {
|
|
969
|
-
default: d(() => [
|
|
973
|
+
default: d(() => [b(w($(g.displayStatus)), 1)]),
|
|
970
974
|
_: 2
|
|
971
975
|
}, 1032, ["color"])]),
|
|
972
976
|
footer: d(({
|
|
973
|
-
item:
|
|
974
|
-
}) => [
|
|
977
|
+
item: g
|
|
978
|
+
}) => [g.expireAt ? (n(), k("span", lt, w(g.displayStatus === "expired" ? "已过期" : `过期时间: ${g.expireAt}`), 1)) : h("", !0)]),
|
|
975
979
|
_: 1
|
|
976
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(
|
|
980
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(it, {
|
|
977
981
|
key: 2,
|
|
978
982
|
id: t(s)
|
|
979
983
|
}, null, 8, ["id"]))]));
|
|
980
984
|
}
|
|
981
|
-
}),
|
|
985
|
+
}), ut = /* @__PURE__ */ L(rt, [["__scopeId", "data-v-7bde4425"]]), dt = {
|
|
982
986
|
class: "content"
|
|
983
|
-
},
|
|
987
|
+
}, ct = {
|
|
984
988
|
class: "left"
|
|
985
|
-
},
|
|
989
|
+
}, ft = /* @__PURE__ */ N({
|
|
986
990
|
__name: "MessageAppMessage",
|
|
987
991
|
props: /* @__PURE__ */ j({
|
|
988
992
|
menus: {
|
|
@@ -1004,22 +1008,22 @@ const ot = /* @__PURE__ */ N({
|
|
|
1004
1008
|
function r() {
|
|
1005
1009
|
l("cancel");
|
|
1006
1010
|
}
|
|
1007
|
-
function c(f,
|
|
1011
|
+
function c(f, g) {
|
|
1008
1012
|
const z = f.path;
|
|
1009
|
-
a.value = [z], l("change", f,
|
|
1013
|
+
a.value = [z], l("change", f, g);
|
|
1010
1014
|
}
|
|
1011
1015
|
const {
|
|
1012
|
-
changeType:
|
|
1013
|
-
show:
|
|
1014
|
-
} =
|
|
1016
|
+
changeType: m,
|
|
1017
|
+
show: $
|
|
1018
|
+
} = ge(l);
|
|
1015
1019
|
function y(f) {
|
|
1016
|
-
|
|
1020
|
+
$.value = f, m.value = "编辑";
|
|
1017
1021
|
}
|
|
1018
1022
|
return o({
|
|
1019
1023
|
setData: y
|
|
1020
|
-
}), (f,
|
|
1021
|
-
visible: t(
|
|
1022
|
-
"onUpdate:visible":
|
|
1024
|
+
}), (f, g) => (n(), v(t(ie), {
|
|
1025
|
+
visible: t($),
|
|
1026
|
+
"onUpdate:visible": g[1] || (g[1] = (z) => ae($) ? $.value = z : null),
|
|
1023
1027
|
loading: !1,
|
|
1024
1028
|
"body-class": "AppMessagebodyClass",
|
|
1025
1029
|
"mask-closable": !1,
|
|
@@ -1028,31 +1032,31 @@ const ot = /* @__PURE__ */ N({
|
|
|
1028
1032
|
width: "880px",
|
|
1029
1033
|
onCancel: r
|
|
1030
1034
|
}, {
|
|
1031
|
-
default: d(() => [
|
|
1035
|
+
default: d(() => [T("div", dt, [T("div", ct, [C(me, {
|
|
1032
1036
|
"selected-keys": a.value,
|
|
1033
|
-
"onUpdate:selectedKeys":
|
|
1037
|
+
"onUpdate:selectedKeys": g[0] || (g[0] = (z) => a.value = z),
|
|
1034
1038
|
menus: u.menus,
|
|
1035
1039
|
onChange: c
|
|
1036
|
-
}, null, 8, ["selected-keys", "menus"])]), t(
|
|
1040
|
+
}, null, 8, ["selected-keys", "menus"])]), t($) ? (n(), k(R, {
|
|
1037
1041
|
key: 0
|
|
1038
|
-
}, [i.value === "ChangelogNotifications" ? (n(), v(
|
|
1042
|
+
}, [i.value === "ChangelogNotifications" ? (n(), v(Re, {
|
|
1039
1043
|
key: 0
|
|
1040
|
-
})) : h("", !0), i.value === "EventNotifications" ? (n(), v(
|
|
1044
|
+
})) : h("", !0), i.value === "EventNotifications" ? (n(), v(Pe, {
|
|
1041
1045
|
key: 1
|
|
1042
|
-
})) : h("", !0), i.value === "MessageNotifications" ? (n(), v(
|
|
1046
|
+
})) : h("", !0), i.value === "MessageNotifications" ? (n(), v(st, {
|
|
1043
1047
|
key: 2
|
|
1044
|
-
})) : h("", !0), i.value === "NoticeNotifications" ? (n(), v(
|
|
1048
|
+
})) : h("", !0), i.value === "NoticeNotifications" ? (n(), v(ut, {
|
|
1045
1049
|
key: 3
|
|
1046
1050
|
})) : h("", !0)], 64)) : h("", !0)])]),
|
|
1047
1051
|
_: 1
|
|
1048
1052
|
}, 8, ["visible"]));
|
|
1049
1053
|
}
|
|
1050
|
-
}), gt = /* @__PURE__ */ L(
|
|
1054
|
+
}), gt = /* @__PURE__ */ L(ft, [["__scopeId", "data-v-8f921467"]]), mt = /* @__PURE__ */ N({
|
|
1051
1055
|
__name: "MessageHandle",
|
|
1052
1056
|
setup(e, {
|
|
1053
1057
|
expose: o
|
|
1054
1058
|
}) {
|
|
1055
|
-
const s =
|
|
1059
|
+
const s = p(["ChangelogNotifications"]), u = p(), l = p(Symbol("key"));
|
|
1056
1060
|
function a() {
|
|
1057
1061
|
u.value.setData(!0);
|
|
1058
1062
|
}
|
|
@@ -1062,7 +1066,7 @@ const ot = /* @__PURE__ */ N({
|
|
|
1062
1066
|
function r() {
|
|
1063
1067
|
l.value = Symbol("key");
|
|
1064
1068
|
}
|
|
1065
|
-
const c =
|
|
1069
|
+
const c = p([{
|
|
1066
1070
|
name: "功能变更",
|
|
1067
1071
|
path: "ChangelogNotifications",
|
|
1068
1072
|
meta: {
|
|
@@ -1089,32 +1093,32 @@ const ot = /* @__PURE__ */ N({
|
|
|
1089
1093
|
}]);
|
|
1090
1094
|
return o({
|
|
1091
1095
|
openNotification: a
|
|
1092
|
-
}), (
|
|
1096
|
+
}), (m, $) => (n(), v(gt, {
|
|
1093
1097
|
ref_key: "MessageNotificationsRef",
|
|
1094
1098
|
ref: u,
|
|
1095
1099
|
key: l.value,
|
|
1096
1100
|
"selected-keys": s.value,
|
|
1097
|
-
"onUpdate:selectedKeys":
|
|
1101
|
+
"onUpdate:selectedKeys": $[0] || ($[0] = (y) => s.value = y),
|
|
1098
1102
|
menus: c.value,
|
|
1099
1103
|
title: "消息中心",
|
|
1100
1104
|
onConfirm: r,
|
|
1101
1105
|
onCancel: i
|
|
1102
1106
|
}, null, 8, ["selected-keys", "menus"]));
|
|
1103
1107
|
}
|
|
1104
|
-
}),
|
|
1108
|
+
}), It = /* @__PURE__ */ L(mt, [["__scopeId", "data-v-dd5fd3b4"]]);
|
|
1105
1109
|
export {
|
|
1106
1110
|
gt as A,
|
|
1107
|
-
|
|
1111
|
+
Re as C,
|
|
1108
1112
|
F as D,
|
|
1109
|
-
|
|
1113
|
+
Pe as E,
|
|
1110
1114
|
Ce as I,
|
|
1111
|
-
|
|
1112
|
-
|
|
1115
|
+
It as M,
|
|
1116
|
+
ut as N,
|
|
1113
1117
|
_e as _,
|
|
1114
|
-
|
|
1115
|
-
|
|
1118
|
+
We as a,
|
|
1119
|
+
Ke as b,
|
|
1116
1120
|
K as c,
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1121
|
+
st as d,
|
|
1122
|
+
Ze as e,
|
|
1123
|
+
it as f
|
|
1120
1124
|
};
|