@huyooo/ui 0.7.2 → 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-DGsqUcu_.js → MessageHandle-eQlgrUIL.js} +289 -279
- package/dist/{UserAccountMenu-Bbha7b4D.js → UserAccountMenu-DEoVmFrH.js} +1 -1
- package/dist/{WidthContainer-Dun8aQ2Y.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/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,75 +27,85 @@ 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
|
|
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
|
-
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
81
|
}
|
|
82
|
-
|
|
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);
|
|
89
|
+
}
|
|
90
|
+
return $(), {
|
|
83
91
|
// 状态
|
|
84
92
|
isList: l,
|
|
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
|
-
loadData:
|
|
92
|
-
loadMore:
|
|
99
|
+
loadData: $,
|
|
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
|
}]) => {
|
|
@@ -219,19 +229,19 @@ const ye = /* @__PURE__ */ N({
|
|
|
219
229
|
ref_key: "container",
|
|
220
230
|
ref: l,
|
|
221
231
|
class: "infinite-loading"
|
|
222
|
-
}, [e.loading ? (n(), b("div", he, [
|
|
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(), b("div",
|
|
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
|
-
}, xe = /* @__PURE__ */
|
|
254
|
+
}, xe = /* @__PURE__ */ M({
|
|
245
255
|
__name: "MessageItem",
|
|
246
256
|
props: {
|
|
247
257
|
item: {},
|
|
@@ -259,19 +269,19 @@ const ye = /* @__PURE__ */ N({
|
|
|
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
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
286
|
})) : h("", !0), T(o.$slots, "tags", {
|
|
277
287
|
item: e.item
|
|
@@ -280,43 +290,43 @@ const ye = /* @__PURE__ */ N({
|
|
|
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
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
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
|
-
}), Te = /* @__PURE__ */
|
|
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,62 +351,62 @@ const ye = /* @__PURE__ */ N({
|
|
|
341
351
|
function l(a) {
|
|
342
352
|
u("itemClick", a);
|
|
343
353
|
}
|
|
344
|
-
return (a, i) => (n(), b("div", ze, [s.messageList.length === 0 && !s.loading ? (n(), b("div", Be, [
|
|
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(), b(
|
|
356
|
+
})])) : (n(), b(E, {
|
|
347
357
|
key: 1
|
|
348
|
-
}, [(n(!0), b(
|
|
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 = {
|
|
395
405
|
class: "version-prefix"
|
|
396
|
-
},
|
|
406
|
+
}, Re = {
|
|
397
407
|
key: 0,
|
|
398
408
|
class: "publish-time"
|
|
399
|
-
},
|
|
409
|
+
}, Ve = /* @__PURE__ */ M({
|
|
400
410
|
__name: "MessageChangelogNotifications",
|
|
401
411
|
setup(e) {
|
|
402
412
|
const {
|
|
@@ -407,70 +417,70 @@ const ye = /* @__PURE__ */ N({
|
|
|
407
417
|
messageList: a,
|
|
408
418
|
loadMore: i,
|
|
409
419
|
toList: r,
|
|
410
|
-
openDetail:
|
|
411
|
-
} =
|
|
412
|
-
function
|
|
420
|
+
openDetail: d
|
|
421
|
+
} = G(ge);
|
|
422
|
+
function p(_) {
|
|
413
423
|
return {
|
|
414
424
|
feature: "green",
|
|
415
425
|
improvement: "blue",
|
|
416
426
|
fix: "orange",
|
|
417
427
|
security: "red",
|
|
418
428
|
breaking: "magenta"
|
|
419
|
-
}[
|
|
429
|
+
}[_] || "blue";
|
|
420
430
|
}
|
|
421
|
-
function
|
|
431
|
+
function $(_) {
|
|
422
432
|
return {
|
|
423
433
|
feature: "新功能",
|
|
424
434
|
improvement: "优化",
|
|
425
435
|
fix: "修复",
|
|
426
436
|
security: "安全",
|
|
427
437
|
breaking: "重大变更"
|
|
428
|
-
}[
|
|
438
|
+
}[_] || "更新";
|
|
429
439
|
}
|
|
430
|
-
return (
|
|
440
|
+
return (_, f) => (n(), b("div", Oe, [t(o) ? h("", !0) : (n(), v(t(F), {
|
|
431
441
|
key: 0,
|
|
432
442
|
class: "message-panel__breadcrumb"
|
|
433
443
|
}, {
|
|
434
|
-
default:
|
|
444
|
+
default: c(() => [N(t(B), {
|
|
435
445
|
onClick: t(r)
|
|
436
446
|
}, {
|
|
437
|
-
default:
|
|
447
|
+
default: c(() => [...f[0] || (f[0] = [C("更新日志", -1)])]),
|
|
438
448
|
_: 1
|
|
439
|
-
}, 8, ["onClick"]),
|
|
440
|
-
default:
|
|
449
|
+
}, 8, ["onClick"]), N(t(B), null, {
|
|
450
|
+
default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
|
|
441
451
|
_: 1
|
|
442
452
|
})]),
|
|
443
453
|
_: 1
|
|
444
|
-
})), t(o) ? (n(), v(
|
|
454
|
+
})), t(o) ? (n(), v(q, {
|
|
445
455
|
key: 1,
|
|
446
456
|
"message-list": t(a),
|
|
447
457
|
loading: t(u),
|
|
448
458
|
finished: t(l),
|
|
449
|
-
onItemClick: t(
|
|
459
|
+
onItemClick: t(d),
|
|
450
460
|
onLoadMore: t(i)
|
|
451
461
|
}, {
|
|
452
|
-
prefix:
|
|
453
|
-
item:
|
|
454
|
-
}) => [
|
|
455
|
-
tags:
|
|
456
|
-
item:
|
|
457
|
-
}) => [
|
|
458
|
-
color:
|
|
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),
|
|
459
469
|
size: "small"
|
|
460
470
|
}, {
|
|
461
|
-
default:
|
|
471
|
+
default: c(() => [C(L($(m.changeType)), 1)]),
|
|
462
472
|
_: 2
|
|
463
473
|
}, 1032, ["color"])]),
|
|
464
|
-
footer:
|
|
465
|
-
item:
|
|
466
|
-
}) => [
|
|
474
|
+
footer: c(({
|
|
475
|
+
item: m
|
|
476
|
+
}) => [m.publishedAt ? (n(), b("span", Re, " 发布于 " + L(m.publishedAt), 1)) : h("", !0)]),
|
|
467
477
|
_: 1
|
|
468
478
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(_e, {
|
|
469
479
|
key: 2,
|
|
470
480
|
id: t(s)
|
|
471
481
|
}, null, 8, ["id"]))]));
|
|
472
482
|
}
|
|
473
|
-
}), Ee = /* @__PURE__ */
|
|
483
|
+
}), Ee = /* @__PURE__ */ I(Ve, [["__scopeId", "data-v-20ecca66"]]);
|
|
474
484
|
function Fe(e) {
|
|
475
485
|
return D({
|
|
476
486
|
url: `${O.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
|
|
@@ -485,7 +495,7 @@ function Ke(e) {
|
|
|
485
495
|
data: e
|
|
486
496
|
});
|
|
487
497
|
}
|
|
488
|
-
const qe = /* @__PURE__ */
|
|
498
|
+
const qe = /* @__PURE__ */ M({
|
|
489
499
|
__name: "MessageEventNotificationsDetails",
|
|
490
500
|
props: {
|
|
491
501
|
id: {
|
|
@@ -494,7 +504,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
494
504
|
}
|
|
495
505
|
},
|
|
496
506
|
setup(e) {
|
|
497
|
-
const o =
|
|
507
|
+
const o = g(!1), s = g(null), u = g(""), l = e;
|
|
498
508
|
function a() {
|
|
499
509
|
o.value = !0, Ke({
|
|
500
510
|
id: l.id
|
|
@@ -506,7 +516,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
506
516
|
console.error("获取事件通知详情失败:", i), o.value = !1;
|
|
507
517
|
});
|
|
508
518
|
}
|
|
509
|
-
return a(), (i, r) => (n(), v(
|
|
519
|
+
return a(), (i, r) => (n(), v(K, {
|
|
510
520
|
content: s.value,
|
|
511
521
|
title: u.value,
|
|
512
522
|
loading: o.value
|
|
@@ -517,7 +527,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
517
527
|
}, je = {
|
|
518
528
|
key: 0,
|
|
519
529
|
class: "time-range"
|
|
520
|
-
}, Pe = /* @__PURE__ */
|
|
530
|
+
}, Pe = /* @__PURE__ */ M({
|
|
521
531
|
__name: "MessageEventNotifications",
|
|
522
532
|
setup(e) {
|
|
523
533
|
const {
|
|
@@ -528,75 +538,75 @@ const qe = /* @__PURE__ */ N({
|
|
|
528
538
|
messageList: a,
|
|
529
539
|
loadMore: i,
|
|
530
540
|
toList: r,
|
|
531
|
-
openDetail:
|
|
532
|
-
} =
|
|
533
|
-
...
|
|
541
|
+
openDetail: d
|
|
542
|
+
} = G((_) => Fe({
|
|
543
|
+
..._,
|
|
534
544
|
where: {
|
|
535
545
|
status: "published"
|
|
536
546
|
}
|
|
537
547
|
}));
|
|
538
|
-
function
|
|
548
|
+
function p(_) {
|
|
539
549
|
return {
|
|
540
550
|
upcoming: "blue",
|
|
541
551
|
ongoing: "green",
|
|
542
552
|
ended: "gray",
|
|
543
553
|
published: "arcoblue"
|
|
544
|
-
}[
|
|
554
|
+
}[_] || "gray";
|
|
545
555
|
}
|
|
546
|
-
function
|
|
556
|
+
function $(_) {
|
|
547
557
|
return {
|
|
548
558
|
upcoming: "即将开始",
|
|
549
559
|
ongoing: "进行中",
|
|
550
560
|
ended: "已结束",
|
|
551
561
|
published: "已发布"
|
|
552
|
-
}[
|
|
562
|
+
}[_] || "未知";
|
|
553
563
|
}
|
|
554
|
-
return (
|
|
564
|
+
return (_, f) => (n(), b("div", He, [t(o) ? h("", !0) : (n(), v(t(F), {
|
|
555
565
|
key: 0,
|
|
556
566
|
class: "message-panel__breadcrumb"
|
|
557
567
|
}, {
|
|
558
|
-
default:
|
|
568
|
+
default: c(() => [N(t(B), {
|
|
559
569
|
onClick: t(r)
|
|
560
570
|
}, {
|
|
561
|
-
default:
|
|
571
|
+
default: c(() => [...f[0] || (f[0] = [C("活动通知", -1)])]),
|
|
562
572
|
_: 1
|
|
563
|
-
}, 8, ["onClick"]),
|
|
564
|
-
default:
|
|
573
|
+
}, 8, ["onClick"]), N(t(B), null, {
|
|
574
|
+
default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
|
|
565
575
|
_: 1
|
|
566
576
|
})]),
|
|
567
577
|
_: 1
|
|
568
|
-
})), t(o) ? (n(), v(
|
|
578
|
+
})), t(o) ? (n(), v(q, {
|
|
569
579
|
key: 1,
|
|
570
580
|
"message-list": t(a),
|
|
571
581
|
loading: t(u),
|
|
572
582
|
finished: t(l),
|
|
573
|
-
onItemClick: t(
|
|
583
|
+
onItemClick: t(d),
|
|
574
584
|
onLoadMore: t(i)
|
|
575
585
|
}, {
|
|
576
|
-
tags:
|
|
577
|
-
item:
|
|
578
|
-
}) => [
|
|
579
|
-
color:
|
|
586
|
+
tags: c(({
|
|
587
|
+
item: m
|
|
588
|
+
}) => [N(t(x), {
|
|
589
|
+
color: p(m.displayStatus),
|
|
580
590
|
size: "small"
|
|
581
591
|
}, {
|
|
582
|
-
default:
|
|
592
|
+
default: c(() => [C(L($(m.displayStatus)), 1)]),
|
|
583
593
|
_: 2
|
|
584
594
|
}, 1032, ["color"])]),
|
|
585
|
-
footer:
|
|
586
|
-
item:
|
|
587
|
-
}) => [
|
|
595
|
+
footer: c(({
|
|
596
|
+
item: m
|
|
597
|
+
}) => [m.startAt || m.endAt ? (n(), b("span", je, L(m.startAt || "无") + " ~ " + L(m.endAt || "无"), 1)) : h("", !0)]),
|
|
588
598
|
_: 1
|
|
589
599
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(qe, {
|
|
590
600
|
key: 2,
|
|
591
601
|
id: t(s)
|
|
592
602
|
}, null, 8, ["id"]))]));
|
|
593
603
|
}
|
|
594
|
-
}), Ge = /* @__PURE__ */
|
|
604
|
+
}), Ge = /* @__PURE__ */ I(Pe, [["__scopeId", "data-v-13297e28"]]), Je = {
|
|
595
605
|
style: {
|
|
596
606
|
display: "flex",
|
|
597
607
|
gap: "16px"
|
|
598
608
|
}
|
|
599
|
-
}, Qe = ["onClick"], We = /* @__PURE__ */
|
|
609
|
+
}, Qe = ["onClick"], We = /* @__PURE__ */ M({
|
|
600
610
|
__name: "MessageCustomTabs",
|
|
601
611
|
props: {
|
|
602
612
|
modelValue: {
|
|
@@ -622,17 +632,17 @@ const qe = /* @__PURE__ */ N({
|
|
|
622
632
|
function l(a) {
|
|
623
633
|
a !== s.modelValue && (u("update:modelValue", a), u("change", a));
|
|
624
634
|
}
|
|
625
|
-
return (a, i) => (n(), b("div", Je, [(n(!0), b(
|
|
635
|
+
return (a, i) => (n(), b("div", Je, [(n(!0), b(E, null, W(e.tabs, (r) => (n(), b("span", {
|
|
626
636
|
key: r.key,
|
|
627
637
|
class: V(["custom-tab", [{
|
|
628
638
|
active: e.modelValue === r.key
|
|
629
639
|
}]]),
|
|
630
|
-
onClick: (
|
|
631
|
-
},
|
|
640
|
+
onClick: (d) => l(r.key)
|
|
641
|
+
}, L(r.label), 11, Qe))), 128))]));
|
|
632
642
|
}
|
|
633
|
-
}), Xe = /* @__PURE__ */
|
|
643
|
+
}), Xe = /* @__PURE__ */ I(We, [["__scopeId", "data-v-fafcc3ad"]]), Ye = {
|
|
634
644
|
class: "tabs"
|
|
635
|
-
}, Ze = /* @__PURE__ */
|
|
645
|
+
}, Ze = /* @__PURE__ */ M({
|
|
636
646
|
__name: "MessageTabs",
|
|
637
647
|
props: {
|
|
638
648
|
tabs: {
|
|
@@ -652,7 +662,7 @@ const qe = /* @__PURE__ */ N({
|
|
|
652
662
|
setup(e, {
|
|
653
663
|
emit: o
|
|
654
664
|
}) {
|
|
655
|
-
const s = e, u = o, l =
|
|
665
|
+
const s = e, u = o, l = g(s.activeTab);
|
|
656
666
|
te(() => s.activeTab, (r) => {
|
|
657
667
|
l.value = r;
|
|
658
668
|
});
|
|
@@ -662,9 +672,9 @@ const qe = /* @__PURE__ */ N({
|
|
|
662
672
|
function i() {
|
|
663
673
|
s.messageList.length !== 0 && u("readAll");
|
|
664
674
|
}
|
|
665
|
-
return (r,
|
|
675
|
+
return (r, d) => (n(), b("div", Ye, [N(Xe, {
|
|
666
676
|
modelValue: l.value,
|
|
667
|
-
"onUpdate:modelValue":
|
|
677
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => l.value = p),
|
|
668
678
|
tabs: e.tabs,
|
|
669
679
|
onChange: a
|
|
670
680
|
}, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (n(), b("div", {
|
|
@@ -673,181 +683,181 @@ const qe = /* @__PURE__ */ N({
|
|
|
673
683
|
disabled: e.messageList.length === 0
|
|
674
684
|
}]),
|
|
675
685
|
onClick: i
|
|
676
|
-
}, [
|
|
686
|
+
}, [N(t(fe), {
|
|
677
687
|
class: "icon",
|
|
678
688
|
icon: "icon-park-outline:clear"
|
|
679
|
-
}),
|
|
689
|
+
}), d[1] || (d[1] = w("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
|
|
680
690
|
}
|
|
681
|
-
}), et = /* @__PURE__ */
|
|
691
|
+
}), et = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-91277265"]]), tt = {
|
|
682
692
|
class: "message-panel"
|
|
683
|
-
},
|
|
693
|
+
}, P = "system", st = /* @__PURE__ */ M({
|
|
684
694
|
__name: "MessageNotifications",
|
|
685
695
|
setup(e) {
|
|
686
|
-
const o =
|
|
696
|
+
const o = g(!0), s = g(""), u = g(!1), l = g({
|
|
687
697
|
title: "",
|
|
688
698
|
content: null
|
|
689
|
-
}), a =
|
|
699
|
+
}), a = g(!1), i = g(!1), r = g([]), d = g("unread"), p = g({
|
|
690
700
|
current: 1,
|
|
691
701
|
pageSize: 10,
|
|
692
702
|
total: 0
|
|
693
|
-
}),
|
|
703
|
+
}), $ = [{
|
|
694
704
|
label: "未读消息",
|
|
695
705
|
key: "unread"
|
|
696
706
|
}, {
|
|
697
707
|
label: "已读消息",
|
|
698
708
|
key: "read"
|
|
699
|
-
}],
|
|
709
|
+
}], _ = X(() => d.value === "read");
|
|
700
710
|
async function f() {
|
|
701
711
|
a.value = !0;
|
|
702
712
|
try {
|
|
703
713
|
const {
|
|
704
|
-
data:
|
|
705
|
-
} = await
|
|
706
|
-
current:
|
|
707
|
-
pageSize:
|
|
714
|
+
data: k
|
|
715
|
+
} = await Q({
|
|
716
|
+
current: p.value.current,
|
|
717
|
+
pageSize: p.value.pageSize,
|
|
708
718
|
where: {
|
|
709
|
-
type:
|
|
710
|
-
read:
|
|
719
|
+
type: P,
|
|
720
|
+
read: _.value
|
|
711
721
|
}
|
|
712
722
|
});
|
|
713
|
-
r.value =
|
|
714
|
-
id:
|
|
715
|
-
title:
|
|
716
|
-
description:
|
|
717
|
-
createAt:
|
|
718
|
-
updateAt:
|
|
719
|
-
type:
|
|
720
|
-
priority:
|
|
721
|
-
read:
|
|
722
|
-
readAt:
|
|
723
|
-
})),
|
|
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;
|
|
724
734
|
} finally {
|
|
725
735
|
a.value = !1;
|
|
726
736
|
}
|
|
727
737
|
}
|
|
728
|
-
async function
|
|
738
|
+
async function m() {
|
|
729
739
|
if (!(a.value || i.value)) {
|
|
730
|
-
|
|
740
|
+
p.value.current += 1, a.value = !0;
|
|
731
741
|
try {
|
|
732
742
|
const {
|
|
733
|
-
data:
|
|
734
|
-
} = await
|
|
735
|
-
current:
|
|
736
|
-
pageSize:
|
|
743
|
+
data: k
|
|
744
|
+
} = await Q({
|
|
745
|
+
current: p.value.current,
|
|
746
|
+
pageSize: p.value.pageSize,
|
|
737
747
|
where: {
|
|
738
|
-
type:
|
|
739
|
-
read:
|
|
748
|
+
type: P,
|
|
749
|
+
read: _.value
|
|
740
750
|
}
|
|
741
|
-
}),
|
|
742
|
-
id:
|
|
743
|
-
title:
|
|
744
|
-
description:
|
|
745
|
-
createAt:
|
|
746
|
-
updateAt:
|
|
747
|
-
type:
|
|
748
|
-
priority:
|
|
749
|
-
read:
|
|
750
|
-
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
|
|
751
761
|
}));
|
|
752
|
-
r.value = [...r.value, ...
|
|
762
|
+
r.value = [...r.value, ...y], i.value = k.items.length < p.value.pageSize;
|
|
753
763
|
} finally {
|
|
754
764
|
a.value = !1;
|
|
755
765
|
}
|
|
756
766
|
}
|
|
757
767
|
}
|
|
758
768
|
function z() {
|
|
759
|
-
|
|
769
|
+
p.value.current = 1, i.value = !1, f();
|
|
760
770
|
}
|
|
761
|
-
async function
|
|
771
|
+
async function R() {
|
|
762
772
|
r.value.length !== 0 && (await ue({
|
|
763
|
-
type:
|
|
773
|
+
type: P
|
|
764
774
|
}), f());
|
|
765
775
|
}
|
|
766
|
-
function
|
|
776
|
+
function H() {
|
|
767
777
|
o.value = !0, s.value = "", l.value = {
|
|
768
778
|
title: "",
|
|
769
779
|
content: null
|
|
770
780
|
};
|
|
771
781
|
}
|
|
772
|
-
async function
|
|
782
|
+
async function A(k) {
|
|
773
783
|
u.value = !0;
|
|
774
784
|
try {
|
|
775
785
|
const {
|
|
776
|
-
data:
|
|
786
|
+
data: y
|
|
777
787
|
} = await ce({
|
|
778
|
-
id:
|
|
788
|
+
id: k
|
|
779
789
|
});
|
|
780
790
|
l.value = {
|
|
781
|
-
title:
|
|
782
|
-
content:
|
|
791
|
+
title: y.title,
|
|
792
|
+
content: y.content
|
|
783
793
|
};
|
|
784
794
|
} finally {
|
|
785
795
|
u.value = !1;
|
|
786
796
|
}
|
|
787
797
|
}
|
|
788
|
-
async function
|
|
789
|
-
s.value =
|
|
790
|
-
messageId:
|
|
791
|
-
}),
|
|
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);
|
|
792
802
|
}
|
|
793
|
-
return f(), (
|
|
803
|
+
return f(), (k, y) => (n(), b("div", tt, [o.value ? h("", !0) : (n(), v(t(F), {
|
|
794
804
|
key: 0,
|
|
795
805
|
class: "message-panel__breadcrumb"
|
|
796
806
|
}, {
|
|
797
|
-
default:
|
|
798
|
-
onClick:
|
|
807
|
+
default: c(() => [N(t(B), {
|
|
808
|
+
onClick: H
|
|
799
809
|
}, {
|
|
800
|
-
default:
|
|
810
|
+
default: c(() => [...y[1] || (y[1] = [C("消息通知", -1)])]),
|
|
801
811
|
_: 1
|
|
802
|
-
}),
|
|
803
|
-
default:
|
|
812
|
+
}), N(t(B), null, {
|
|
813
|
+
default: c(() => [...y[2] || (y[2] = [C("详情", -1)])]),
|
|
804
814
|
_: 1
|
|
805
815
|
})]),
|
|
806
816
|
_: 1
|
|
807
817
|
})), o.value ? (n(), v(et, {
|
|
808
818
|
key: 1,
|
|
809
|
-
"active-tab":
|
|
810
|
-
"onUpdate:activeTab":
|
|
811
|
-
tabs:
|
|
819
|
+
"active-tab": d.value,
|
|
820
|
+
"onUpdate:activeTab": y[0] || (y[0] = (S) => d.value = S),
|
|
821
|
+
tabs: $,
|
|
812
822
|
"message-list": r.value,
|
|
813
823
|
onChange: z,
|
|
814
|
-
onReadAll:
|
|
815
|
-
}, 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, {
|
|
816
826
|
key: 2,
|
|
817
827
|
"message-list": r.value,
|
|
818
828
|
loading: a.value,
|
|
819
829
|
finished: i.value,
|
|
820
830
|
"show-read-status": !0,
|
|
821
831
|
"show-view-button": !1,
|
|
822
|
-
onItemClick:
|
|
823
|
-
onLoadMore:
|
|
832
|
+
onItemClick: j,
|
|
833
|
+
onLoadMore: m
|
|
824
834
|
}, {
|
|
825
|
-
tags:
|
|
826
|
-
item:
|
|
827
|
-
}) => [
|
|
835
|
+
tags: c(({
|
|
836
|
+
item: S
|
|
837
|
+
}) => [S.priority === "urgent" ? (n(), v(t(x), {
|
|
828
838
|
key: 0,
|
|
829
839
|
color: "red",
|
|
830
840
|
size: "small"
|
|
831
841
|
}, {
|
|
832
|
-
default:
|
|
842
|
+
default: c(() => [...y[3] || (y[3] = [C("紧急", -1)])]),
|
|
833
843
|
_: 1
|
|
834
|
-
})) :
|
|
844
|
+
})) : S.priority === "high" ? (n(), v(t(x), {
|
|
835
845
|
key: 1,
|
|
836
846
|
color: "orange",
|
|
837
847
|
size: "small"
|
|
838
848
|
}, {
|
|
839
|
-
default:
|
|
849
|
+
default: c(() => [...y[4] || (y[4] = [C("高", -1)])]),
|
|
840
850
|
_: 1
|
|
841
851
|
})) : h("", !0)]),
|
|
842
852
|
_: 1
|
|
843
|
-
}, 8, ["message-list", "loading", "finished"])) : (n(), v(
|
|
853
|
+
}, 8, ["message-list", "loading", "finished"])) : (n(), v(K, {
|
|
844
854
|
key: 3,
|
|
845
855
|
title: l.value.title,
|
|
846
856
|
content: l.value.content,
|
|
847
857
|
loading: u.value
|
|
848
858
|
}, null, 8, ["title", "content", "loading"]))]));
|
|
849
859
|
}
|
|
850
|
-
}), at = /* @__PURE__ */
|
|
860
|
+
}), at = /* @__PURE__ */ I(st, [["__scopeId", "data-v-2fe260dd"]]);
|
|
851
861
|
function nt(e) {
|
|
852
862
|
return D({
|
|
853
863
|
url: `${O.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
|
|
@@ -862,7 +872,7 @@ function it(e) {
|
|
|
862
872
|
data: e
|
|
863
873
|
});
|
|
864
874
|
}
|
|
865
|
-
const ot = /* @__PURE__ */
|
|
875
|
+
const ot = /* @__PURE__ */ M({
|
|
866
876
|
__name: "MessageNoticeNotificationsDetails",
|
|
867
877
|
props: {
|
|
868
878
|
id: {
|
|
@@ -871,7 +881,7 @@ const ot = /* @__PURE__ */ N({
|
|
|
871
881
|
}
|
|
872
882
|
},
|
|
873
883
|
setup(e) {
|
|
874
|
-
const o =
|
|
884
|
+
const o = g(!1), s = g(null), u = g(""), l = e;
|
|
875
885
|
function a() {
|
|
876
886
|
o.value = !0, it({
|
|
877
887
|
id: l.id
|
|
@@ -883,7 +893,7 @@ const ot = /* @__PURE__ */ N({
|
|
|
883
893
|
console.error("获取通知详情失败:", i), o.value = !1;
|
|
884
894
|
});
|
|
885
895
|
}
|
|
886
|
-
return a(), (i, r) => (n(), v(
|
|
896
|
+
return a(), (i, r) => (n(), v(K, {
|
|
887
897
|
content: s.value,
|
|
888
898
|
title: u.value,
|
|
889
899
|
loading: o.value
|
|
@@ -894,7 +904,7 @@ const ot = /* @__PURE__ */ N({
|
|
|
894
904
|
}, rt = {
|
|
895
905
|
key: 0,
|
|
896
906
|
class: "expire-time"
|
|
897
|
-
}, ut = /* @__PURE__ */
|
|
907
|
+
}, ut = /* @__PURE__ */ M({
|
|
898
908
|
__name: "MessageNoticeNotifications",
|
|
899
909
|
setup(e) {
|
|
900
910
|
const {
|
|
@@ -905,86 +915,86 @@ const ot = /* @__PURE__ */ N({
|
|
|
905
915
|
messageList: a,
|
|
906
916
|
loadMore: i,
|
|
907
917
|
toList: r,
|
|
908
|
-
openDetail:
|
|
909
|
-
} =
|
|
910
|
-
...
|
|
918
|
+
openDetail: d
|
|
919
|
+
} = G((_) => nt({
|
|
920
|
+
..._,
|
|
911
921
|
where: {
|
|
912
922
|
status: "published"
|
|
913
923
|
}
|
|
914
924
|
}));
|
|
915
|
-
function
|
|
925
|
+
function p(_) {
|
|
916
926
|
return {
|
|
917
927
|
published: "green",
|
|
918
928
|
expired: "gray"
|
|
919
|
-
}[
|
|
929
|
+
}[_] || "gray";
|
|
920
930
|
}
|
|
921
|
-
function
|
|
931
|
+
function $(_) {
|
|
922
932
|
return {
|
|
923
933
|
published: "有效",
|
|
924
934
|
expired: "已过期"
|
|
925
|
-
}[
|
|
935
|
+
}[_] || "未知";
|
|
926
936
|
}
|
|
927
|
-
return (
|
|
937
|
+
return (_, f) => (n(), b("div", lt, [t(o) ? h("", !0) : (n(), v(t(F), {
|
|
928
938
|
key: 0,
|
|
929
939
|
class: "message-panel__breadcrumb"
|
|
930
940
|
}, {
|
|
931
|
-
default:
|
|
941
|
+
default: c(() => [N(t(B), {
|
|
932
942
|
onClick: t(r)
|
|
933
943
|
}, {
|
|
934
|
-
default:
|
|
944
|
+
default: c(() => [...f[0] || (f[0] = [C("公告通知", -1)])]),
|
|
935
945
|
_: 1
|
|
936
|
-
}, 8, ["onClick"]),
|
|
937
|
-
default:
|
|
946
|
+
}, 8, ["onClick"]), N(t(B), null, {
|
|
947
|
+
default: c(() => [...f[1] || (f[1] = [C("详情", -1)])]),
|
|
938
948
|
_: 1
|
|
939
949
|
})]),
|
|
940
950
|
_: 1
|
|
941
|
-
})), t(o) ? (n(), v(
|
|
951
|
+
})), t(o) ? (n(), v(q, {
|
|
942
952
|
key: 1,
|
|
943
953
|
"message-list": t(a),
|
|
944
954
|
loading: t(u),
|
|
945
955
|
finished: t(l),
|
|
946
|
-
onItemClick: t(
|
|
956
|
+
onItemClick: t(d),
|
|
947
957
|
onLoadMore: t(i)
|
|
948
958
|
}, {
|
|
949
|
-
tags:
|
|
950
|
-
item:
|
|
951
|
-
}) => [
|
|
959
|
+
tags: c(({
|
|
960
|
+
item: m
|
|
961
|
+
}) => [m.priority === "urgent" ? (n(), v(t(x), {
|
|
952
962
|
key: 0,
|
|
953
963
|
color: "red",
|
|
954
964
|
size: "small"
|
|
955
965
|
}, {
|
|
956
|
-
default:
|
|
966
|
+
default: c(() => [...f[2] || (f[2] = [C("紧急", -1)])]),
|
|
957
967
|
_: 1
|
|
958
|
-
})) :
|
|
968
|
+
})) : m.priority === "important" ? (n(), v(t(x), {
|
|
959
969
|
key: 1,
|
|
960
970
|
color: "orange",
|
|
961
971
|
size: "small"
|
|
962
972
|
}, {
|
|
963
|
-
default:
|
|
973
|
+
default: c(() => [...f[3] || (f[3] = [C("重要", -1)])]),
|
|
964
974
|
_: 1
|
|
965
|
-
})) : h("", !0),
|
|
966
|
-
color:
|
|
975
|
+
})) : h("", !0), N(t(x), {
|
|
976
|
+
color: p(m.displayStatus),
|
|
967
977
|
size: "small"
|
|
968
978
|
}, {
|
|
969
|
-
default:
|
|
979
|
+
default: c(() => [C(L($(m.displayStatus)), 1)]),
|
|
970
980
|
_: 2
|
|
971
981
|
}, 1032, ["color"])]),
|
|
972
|
-
footer:
|
|
973
|
-
item:
|
|
974
|
-
}) => [
|
|
982
|
+
footer: c(({
|
|
983
|
+
item: m
|
|
984
|
+
}) => [m.expireAt ? (n(), b("span", rt, L(m.displayStatus === "expired" ? "已过期" : `过期时间: ${m.expireAt}`), 1)) : h("", !0)]),
|
|
975
985
|
_: 1
|
|
976
986
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (n(), v(ot, {
|
|
977
987
|
key: 2,
|
|
978
988
|
id: t(s)
|
|
979
989
|
}, null, 8, ["id"]))]));
|
|
980
990
|
}
|
|
981
|
-
}), dt = /* @__PURE__ */
|
|
991
|
+
}), dt = /* @__PURE__ */ I(ut, [["__scopeId", "data-v-7bde4425"]]), ct = {
|
|
982
992
|
class: "content"
|
|
983
993
|
}, ft = {
|
|
984
994
|
class: "left"
|
|
985
|
-
},
|
|
995
|
+
}, mt = /* @__PURE__ */ M({
|
|
986
996
|
__name: "MessageAppMessage",
|
|
987
|
-
props: /* @__PURE__ */
|
|
997
|
+
props: /* @__PURE__ */ J({
|
|
988
998
|
menus: {
|
|
989
999
|
type: Array,
|
|
990
1000
|
required: !0
|
|
@@ -995,31 +1005,31 @@ const ot = /* @__PURE__ */ N({
|
|
|
995
1005
|
},
|
|
996
1006
|
selectedKeysModifiers: {}
|
|
997
1007
|
}),
|
|
998
|
-
emits: /* @__PURE__ */
|
|
1008
|
+
emits: /* @__PURE__ */ J(["cancel", "change"], ["update:selectedKeys"]),
|
|
999
1009
|
setup(e, {
|
|
1000
1010
|
expose: o,
|
|
1001
1011
|
emit: s
|
|
1002
1012
|
}) {
|
|
1003
|
-
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] : "");
|
|
1004
1014
|
function r() {
|
|
1005
1015
|
l("cancel");
|
|
1006
1016
|
}
|
|
1007
|
-
function
|
|
1017
|
+
function d(f, m) {
|
|
1008
1018
|
const z = f.path;
|
|
1009
|
-
a.value = [z], l("change", f,
|
|
1019
|
+
a.value = [z], l("change", f, m);
|
|
1010
1020
|
}
|
|
1011
1021
|
const {
|
|
1012
|
-
changeType:
|
|
1013
|
-
show:
|
|
1014
|
-
} =
|
|
1015
|
-
function
|
|
1016
|
-
|
|
1022
|
+
changeType: p,
|
|
1023
|
+
show: $
|
|
1024
|
+
} = me(l);
|
|
1025
|
+
function _(f) {
|
|
1026
|
+
$.value = f, p.value = "编辑";
|
|
1017
1027
|
}
|
|
1018
1028
|
return o({
|
|
1019
|
-
setData:
|
|
1020
|
-
}), (f,
|
|
1021
|
-
visible: t(
|
|
1022
|
-
"onUpdate:visible":
|
|
1029
|
+
setData: _
|
|
1030
|
+
}), (f, m) => (n(), v(t(ie), {
|
|
1031
|
+
visible: t($),
|
|
1032
|
+
"onUpdate:visible": m[1] || (m[1] = (z) => ae($) ? $.value = z : null),
|
|
1023
1033
|
loading: !1,
|
|
1024
1034
|
"body-class": "AppMessagebodyClass",
|
|
1025
1035
|
"mask-closable": !1,
|
|
@@ -1028,12 +1038,12 @@ const ot = /* @__PURE__ */ N({
|
|
|
1028
1038
|
width: "880px",
|
|
1029
1039
|
onCancel: r
|
|
1030
1040
|
}, {
|
|
1031
|
-
default:
|
|
1041
|
+
default: c(() => [w("div", ct, [w("div", ft, [N(pe, {
|
|
1032
1042
|
"selected-keys": a.value,
|
|
1033
|
-
"onUpdate:selectedKeys":
|
|
1043
|
+
"onUpdate:selectedKeys": m[0] || (m[0] = (z) => a.value = z),
|
|
1034
1044
|
menus: u.menus,
|
|
1035
|
-
onChange:
|
|
1036
|
-
}, null, 8, ["selected-keys", "menus"])]), t(
|
|
1045
|
+
onChange: d
|
|
1046
|
+
}, null, 8, ["selected-keys", "menus"])]), t($) ? (n(), b(E, {
|
|
1037
1047
|
key: 0
|
|
1038
1048
|
}, [i.value === "ChangelogNotifications" ? (n(), v(Ee, {
|
|
1039
1049
|
key: 0
|
|
@@ -1047,12 +1057,12 @@ const ot = /* @__PURE__ */ N({
|
|
|
1047
1057
|
_: 1
|
|
1048
1058
|
}, 8, ["visible"]));
|
|
1049
1059
|
}
|
|
1050
|
-
}),
|
|
1060
|
+
}), pt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-8f921467"]]), gt = /* @__PURE__ */ M({
|
|
1051
1061
|
__name: "MessageHandle",
|
|
1052
1062
|
setup(e, {
|
|
1053
1063
|
expose: o
|
|
1054
1064
|
}) {
|
|
1055
|
-
const s =
|
|
1065
|
+
const s = g(["ChangelogNotifications"]), u = g(), l = g(Symbol("key"));
|
|
1056
1066
|
function a() {
|
|
1057
1067
|
u.value.setData(!0);
|
|
1058
1068
|
}
|
|
@@ -1062,7 +1072,7 @@ const ot = /* @__PURE__ */ N({
|
|
|
1062
1072
|
function r() {
|
|
1063
1073
|
l.value = Symbol("key");
|
|
1064
1074
|
}
|
|
1065
|
-
const
|
|
1075
|
+
const d = g([{
|
|
1066
1076
|
name: "功能变更",
|
|
1067
1077
|
path: "ChangelogNotifications",
|
|
1068
1078
|
meta: {
|
|
@@ -1089,23 +1099,23 @@ const ot = /* @__PURE__ */ N({
|
|
|
1089
1099
|
}]);
|
|
1090
1100
|
return o({
|
|
1091
1101
|
openNotification: a
|
|
1092
|
-
}), (
|
|
1102
|
+
}), (p, $) => (n(), v(pt, {
|
|
1093
1103
|
ref_key: "MessageNotificationsRef",
|
|
1094
1104
|
ref: u,
|
|
1095
1105
|
key: l.value,
|
|
1096
1106
|
"selected-keys": s.value,
|
|
1097
|
-
"onUpdate:selectedKeys":
|
|
1098
|
-
menus:
|
|
1107
|
+
"onUpdate:selectedKeys": $[0] || ($[0] = (_) => s.value = _),
|
|
1108
|
+
menus: d.value,
|
|
1099
1109
|
title: "消息中心",
|
|
1100
1110
|
onConfirm: r,
|
|
1101
1111
|
onCancel: i
|
|
1102
1112
|
}, null, 8, ["selected-keys", "menus"]));
|
|
1103
1113
|
}
|
|
1104
|
-
}), xt = /* @__PURE__ */
|
|
1114
|
+
}), xt = /* @__PURE__ */ I(gt, [["__scopeId", "data-v-dd5fd3b4"]]);
|
|
1105
1115
|
export {
|
|
1106
|
-
|
|
1116
|
+
pt as A,
|
|
1107
1117
|
Ee as C,
|
|
1108
|
-
|
|
1118
|
+
K as D,
|
|
1109
1119
|
Ge as E,
|
|
1110
1120
|
Ce as I,
|
|
1111
1121
|
xt as M,
|
|
@@ -1113,7 +1123,7 @@ export {
|
|
|
1113
1123
|
_e as _,
|
|
1114
1124
|
Xe as a,
|
|
1115
1125
|
qe as b,
|
|
1116
|
-
|
|
1126
|
+
q as c,
|
|
1117
1127
|
at as d,
|
|
1118
1128
|
et as e,
|
|
1119
1129
|
ot as f
|
|
@@ -9,7 +9,7 @@ import { R as je } from "./ReferrerReferees-CnYkGC5r.js";
|
|
|
9
9
|
import { a as N, u as He } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
|
|
10
10
|
import { u as Fe, g as oe } from "./auth-bwwc2iT8.js";
|
|
11
11
|
import { d as qe } from "./FeedbackModal-scDtV6-8.js";
|
|
12
|
-
import { M as Ee } from "./MessageHandle-
|
|
12
|
+
import { M as Ee } from "./MessageHandle-eQlgrUIL.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -10,7 +10,7 @@ import "./useUploadCos-EWMNJjRf.js";
|
|
|
10
10
|
import { useRouter as j, useRoute as J } from "vue-router";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { d as re, c as Q } from "./UserAccountMenu-
|
|
13
|
+
import { d as re, c as Q } from "./UserAccountMenu-DEoVmFrH.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-U9QrRW-u.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-BCOwLyRJ.js";
|
|
4
4
|
import { M, a as g } from "./Menu-BjWB9hre.js";
|
package/dist/index.js
CHANGED
|
@@ -11,21 +11,21 @@ import { b as b3, f as G3, g as D3, u as P3, a as T3, c as O3, e as B3, d as I3,
|
|
|
11
11
|
import { u as W3 } from "./useUploadCos-EWMNJjRf.js";
|
|
12
12
|
import { A as z3, a as j3, c as q3, b as K3, n as J3, E as Q3, k as X3, l as Y3, _ as e4, O as t4, _ as o4, O as s4, f as a4, o as i4, P as n4, j as r4, R as c4, S as l4, i as C4, m as d4, d as p4, e as f4, g as h4, h as u4, p as _4, u as g4 } from "./AuthkitAuthModal-Bfcu3xeg.js";
|
|
13
13
|
import { A as L4, a as y4, c as w4, d as F4, b as M4, b as k4, f as v4, e as x4 } from "./AuthkitSignInPhone-CZGGn8Ax.js";
|
|
14
|
-
import { I as Z4, A as V4, C as E4, _ as U4, a as A4, D as S4, E as b4, b as G4, M as D4, c as P4, N as T4, f as O4, d as B4, e as I4 } from "./MessageHandle-
|
|
14
|
+
import { I as Z4, A as V4, C as E4, _ as U4, a as A4, D as S4, E as b4, b as G4, M as D4, c as P4, N as T4, f as O4, d as B4, e as I4 } from "./MessageHandle-eQlgrUIL.js";
|
|
15
15
|
import { M as N4, a as W4 } from "./MessageMenu-_RZJ9Mbi.js";
|
|
16
16
|
import { B as z4, a as j4, F as q4, b as K4, c as J4, d as Q4, R as X4 } from "./FeedbackModal-scDtV6-8.js";
|
|
17
17
|
import { C as e6 } from "./Clipboard-BAn3vQlX.js";
|
|
18
18
|
import { F as o6, a as s6, c as a6, b as i6, d as n6 } from "./FeedbackItem-8-jd3QUl.js";
|
|
19
19
|
import { L as c6, a as l6, b as C6, c as d6, B as p6, C as f6, d as h6, e as u6, x as _6, y as g6, f as m6, g as L6, z as y6, h as w6, i as F6, j as M6, k as k6, l as v6, m as x6, n as H6, D as Z6, o as V6, p as E6, q as U6, r as A6, s as S6, T as b6, t as G6, A as D6, u as P6, v as T6, w as O6 } from "./LandingPageSectionTabs-DYNXKElT.js";
|
|
20
20
|
import { L as I6, a as $6, b as N6, c as W6, D as R6, d as z6, e as j6, f as q6, g as K6, h as J6, i as Q6, j as X6, k as Y6, l as e7, m as t7, n as o7 } from "./LandingPageSectionHeader-BU7Qtxaj.js";
|
|
21
|
-
import { A as a7, a as i7, C as n7, D as r7, G as c7, H as l7, b as C7, L as d7, S as p7, W as f7 } from "./WidthContainer-
|
|
21
|
+
import { A as a7, a as i7, C as n7, D as r7, G as c7, H as l7, b as C7, L as d7, S as p7, W as f7 } from "./WidthContainer-U9QrRW-u.js";
|
|
22
22
|
import { C as u7, a as _7 } from "./CollapseItem-Cw1vcdLu.js";
|
|
23
23
|
import { C as m7, E as L7 } from "./CustomTable-BCOwLyRJ.js";
|
|
24
24
|
import { M as w7, a as F7 } from "./Menu-BjWB9hre.js";
|
|
25
25
|
import { S as k7 } from "./PaySubscriptions-C9LA8ZeX.js";
|
|
26
26
|
import { R as x7 } from "./ReferrerReferees-CnYkGC5r.js";
|
|
27
27
|
import { _ as Z7 } from "./Upload.vue_vue_type_script_setup_true_lang-BkqyMwbd.js";
|
|
28
|
-
import { d as E7, U as U7, a as A7, b as S7, c as b7, S as G7 } from "./UserAccountMenu-
|
|
28
|
+
import { d as E7, U as U7, a as A7, b as S7, c as b7, S as G7 } from "./UserAccountMenu-DEoVmFrH.js";
|
|
29
29
|
import { defineComponent as V, computed as U, createElementBlock as L, openBlock as g, normalizeStyle as g2, normalizeClass as o2, createElementVNode as d, createCommentVNode as x, toDisplayString as k, createVNode as Z, unref as H, createTextVNode as s2, withModifiers as a2, renderSlot as m2, withCtx as W, Fragment as T, renderList as O, createBlock as G, onMounted as i2, ref as $, watch as L2, onUnmounted as y2, withDirectives as w2, createStaticVNode as F2, vShow as M2 } from "vue";
|
|
30
30
|
import { Icon as A } from "@iconify/vue";
|
|
31
31
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
package/dist/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l, f as r, d as m, e as p } from "./MessageHandle-
|
|
1
|
+
import { I as e, A as i, C as t, _ as o, a as g, D as M, E as n, b as f, M as c, c as N, N as l, f as r, d as m, e as p } from "./MessageHandle-eQlgrUIL.js";
|
|
2
2
|
import { M as D, a as C } from "./MessageMenu-_RZJ9Mbi.js";
|
|
3
3
|
import { u as d } from "./useMessageNotifications-CnWbDToT.js";
|
|
4
4
|
export {
|
package/dist/user.js
CHANGED