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