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