@huyooo/ui 0.7.18 → 0.7.24
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/{AuthkitAuthModal-DWwEkkA3.js → AuthkitAuthModal-DcZ69VKT.js} +623 -638
- package/dist/{AuthkitSignInPhone-DO2qlakf.js → AuthkitSignInPhone-CJLeElZ1.js} +224 -232
- package/dist/{Clipboard-BAn3vQlX.js → Clipboard-BVSUEtX_.js} +2 -2
- package/dist/{Contact-CDelrtDR.js → Contact-DWQjd6yu.js} +2 -2
- package/dist/{FeedbackItem-DWWElTgd.js → FeedbackItem-qppn-rOs.js} +12 -11
- package/dist/{FeedbackModal-OEAnzZZ6.js → FeedbackModal-28L6QJaB.js} +336 -348
- package/dist/{MessageHandle-yS9s7JVm.js → MessageHandle-DaczDI82.js} +261 -285
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-ByxQy7EP.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DHO6VGx-.js} +26 -28
- package/dist/MessageNotifications-IluYhczu.js +35 -0
- package/dist/PaySubscriptions-BqtXFPHR.js +450 -0
- package/dist/{ReferrerReferees-CnYkGC5r.js → ReferrerReferees-D6CNoqs4.js} +38 -40
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BkqyMwbd.js → Upload.vue_vue_type_script_setup_true_lang-D2gY_z-p.js} +4 -3
- package/dist/{UserAccountMenu-CSl4L-KH.js → UserAccountMenu--fY2QkYw.js} +7 -7
- package/dist/{WidthContainer-l5YOtNew.js → WidthContainer-DMJSBs_q.js} +7 -7
- package/dist/api/Authkit/Users.d.ts +7 -7
- package/dist/api/Authkit/apps.d.ts +2 -2
- package/dist/api/Authkit/auth.d.ts +10 -10
- package/dist/api/Authkit/oauth.d.ts +3 -3
- package/dist/api/Authkit/verify.d.ts +18 -5
- package/dist/api/Buckets/Files.d.ts +7 -7
- package/dist/api/Buckets.d.ts +2 -2
- package/dist/api/Invoices.d.ts +32 -0
- package/dist/api/Message/ChangelogNotifications.d.ts +2 -31
- package/dist/api/Message/EventNotifications.d.ts +2 -35
- package/dist/api/Message/MessageNotifications.d.ts +5 -35
- package/dist/api/Message/NoticeNotifications.d.ts +5 -42
- package/dist/api/Messages.d.ts +2 -2
- package/dist/api/Orders.d.ts +9 -9
- package/dist/api/Products.d.ts +20 -0
- package/dist/api/Quotas.d.ts +21 -0
- package/dist/api/Referrer.d.ts +1 -1
- package/dist/api/Subscriptions.d.ts +35 -0
- package/dist/api/index.d.ts +8 -8
- package/dist/authkit.js +6 -6
- package/dist/common/globalConfig.d.ts +10 -6
- package/dist/common.js +1 -1
- package/dist/components/Pay/PaySubscriptions.vue.d.ts +1 -1
- package/dist/components/User/UserPanel.vue.d.ts +2 -2
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -3
- package/dist/composables/useMessageNotifications.d.ts +3 -3
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +24 -24
- package/dist/message.js +3 -3
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/request-BkNyIDws.js +196 -0
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-CzZmhPMm.js → useAuthkitAppsAuthPageInfo-Bu-Q-44G.js} +19 -21
- package/dist/{useAuthkitCreateAndUpdate-Co5wMbv7.js → useAuthkitCreateAndUpdate-DHGgpk14.js} +1 -1
- package/dist/useAuthkitUsersProfile-D58I5n2T.js +257 -0
- package/dist/{useDownloads-C0V_Sjr9.js → useDownloads-jzTsK6S6.js} +1 -1
- package/dist/useMessageNotifications-CLowHpNV.js +78 -0
- package/dist/{useSEO-DT8VkGVt.js → useSEO-Curqg3Re.js} +2 -2
- package/dist/{useTableHandle-DaKaAKAH.js → useTableHandle-MuavycJ7.js} +1 -1
- package/dist/{useUploadCos-EWMNJjRf.js → useUploadCos-C4mpMNhT.js} +16 -13
- package/dist/user.js +1 -1
- package/dist/utils/request.d.ts +25 -2
- package/package.json +1 -1
- package/dist/MessageNotifications-CJtKlzc3.js +0 -35
- package/dist/PaySubscriptions-C9LA8ZeX.js +0 -278
- package/dist/auth-bwwc2iT8.js +0 -187
- package/dist/useAuthkitUsersProfile-hZ9L3rYe.js +0 -234
- package/dist/useMessageNotifications-CnWbDToT.js +0 -84
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as p, defineComponent as x, createBlock as _, openBlock as s, unref as i, withCtx as f, createVNode as
|
|
1
|
+
import { ref as p, defineComponent as x, createBlock as _, openBlock as s, unref as i, withCtx as f, createVNode as A, createCommentVNode as $, createElementBlock as k, normalizeClass as K, createElementVNode as L, renderSlot as B, toDisplayString as T, createTextVNode as N, Fragment as P, renderList as Z, createSlots as ne, mergeProps as F, watch as ie, computed as Q, mergeModels as W, useModel as oe, isRef as le } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { Spin as ee, Empty as te, Tag as z, Button as re, Breadcrumb as
|
|
8
|
-
import { c as U, g as O } from "./
|
|
7
|
+
import { Spin as ee, Empty as te, Tag as z, Button as re, Breadcrumb as H, BreadcrumbItem as R, Modal as ue } from "@arco-design/web-vue";
|
|
8
|
+
import { c as U, g as O } from "./request-BkNyIDws.js";
|
|
9
9
|
import { TiptapEditor as de, TiptapTitle as ce } from "@huyooo/vue-tiptap";
|
|
10
10
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
import { useIntersectionObserver as fe } from "@vueuse/core";
|
|
12
|
-
import { m as X, a as pe, b as ge, c as ve } from "./MessageNotifications-
|
|
12
|
+
import { m as X, a as pe, b as ge, c as ve } from "./MessageNotifications-IluYhczu.js";
|
|
13
13
|
import { Icon as me } from "@iconify/vue";
|
|
14
|
-
import { u as ye } from "./useAuthkitCreateAndUpdate-
|
|
14
|
+
import { u as ye } from "./useAuthkitCreateAndUpdate-DHGgpk14.js";
|
|
15
15
|
import { M as _e } from "./Menu-H-LxepvQ.js";
|
|
16
16
|
function he(e) {
|
|
17
17
|
return U({
|
|
18
|
-
url: `${O.
|
|
18
|
+
url: `${O.onesPrefixUrl}/messageCenter/changelogNotifications/find`,
|
|
19
19
|
method: "post",
|
|
20
20
|
data: e
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function be(e) {
|
|
24
24
|
return U({
|
|
25
|
-
url: `${O.
|
|
25
|
+
url: `${O.onesPrefixUrl}/messageCenter/changelogNotifications/findOne`,
|
|
26
26
|
method: "post",
|
|
27
27
|
data: e
|
|
28
28
|
});
|
|
@@ -53,7 +53,7 @@ function ae(e, l = {}) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
async function
|
|
56
|
+
async function C() {
|
|
57
57
|
if (!(o.value || n.value)) {
|
|
58
58
|
c.value.current += 1, o.value = !0;
|
|
59
59
|
try {
|
|
@@ -80,12 +80,12 @@ function ae(e, l = {}) {
|
|
|
80
80
|
t.value = M.id, r.value = !1, V(M.id);
|
|
81
81
|
}
|
|
82
82
|
function V(M) {
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const b = u.value.find((v) => v.id === M);
|
|
84
|
+
b && b.read !== void 0 && (b.read = !0);
|
|
85
85
|
}
|
|
86
86
|
function E(M) {
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const b = u.value.find((v) => v.id === M);
|
|
88
|
+
b && b.read !== void 0 && (b.read = !1);
|
|
89
89
|
}
|
|
90
90
|
return S(), {
|
|
91
91
|
// 状态
|
|
@@ -97,7 +97,7 @@ function ae(e, l = {}) {
|
|
|
97
97
|
pagination: c,
|
|
98
98
|
// 方法
|
|
99
99
|
loadData: S,
|
|
100
|
-
loadMore:
|
|
100
|
+
loadMore: C,
|
|
101
101
|
refresh: y,
|
|
102
102
|
toList: h,
|
|
103
103
|
openDetail: D,
|
|
@@ -135,7 +135,7 @@ const ke = /* @__PURE__ */ x({
|
|
|
135
135
|
class: "Spin",
|
|
136
136
|
dot: ""
|
|
137
137
|
}, {
|
|
138
|
-
default: f(() => [
|
|
138
|
+
default: f(() => [A(i(de), {
|
|
139
139
|
ref_key: "TiptapEditorRef",
|
|
140
140
|
ref: o,
|
|
141
141
|
"model-value": d.content,
|
|
@@ -143,16 +143,16 @@ const ke = /* @__PURE__ */ x({
|
|
|
143
143
|
"tiptap-editor-content-class": "tiptapEditorContentClass",
|
|
144
144
|
onTableOfContentsUpdate: n
|
|
145
145
|
}, {
|
|
146
|
-
title: f(() => [
|
|
146
|
+
title: f(() => [A(i(ce), {
|
|
147
147
|
"model-value": d.title,
|
|
148
148
|
editable: r.value
|
|
149
149
|
}, null, 8, ["model-value", "editable"])]),
|
|
150
150
|
_: 1
|
|
151
|
-
}, 8, ["model-value", "editable"]),
|
|
151
|
+
}, 8, ["model-value", "editable"]), $("", !0)]),
|
|
152
152
|
_: 1
|
|
153
153
|
}, 8, ["loading"]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), j = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-8eec0226"]]), Ce = /* @__PURE__ */ x({
|
|
156
156
|
__name: "MessageChangelogNotificationsDetails",
|
|
157
157
|
props: {
|
|
158
158
|
id: {
|
|
@@ -162,30 +162,28 @@ const ke = /* @__PURE__ */ x({
|
|
|
162
162
|
},
|
|
163
163
|
setup(e) {
|
|
164
164
|
const l = p(!1), a = p(null), d = p(""), r = e;
|
|
165
|
-
function t() {
|
|
166
|
-
l.value = !0
|
|
167
|
-
|
|
168
|
-
}).then(({
|
|
165
|
+
async function t() {
|
|
166
|
+
l.value = !0;
|
|
167
|
+
const {
|
|
169
168
|
data: o
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
}).catch((o) => {
|
|
173
|
-
console.error("获取变更日志详情失败:", o), l.value = !1;
|
|
169
|
+
} = await be({
|
|
170
|
+
id: r.id
|
|
174
171
|
});
|
|
172
|
+
l.value = !1, o && (a.value = o.content, d.value = o.title);
|
|
175
173
|
}
|
|
176
|
-
return t(), (o, n) => (s(), _(
|
|
174
|
+
return t(), (o, n) => (s(), _(j, {
|
|
177
175
|
content: a.value,
|
|
178
176
|
title: d.value,
|
|
179
177
|
loading: l.value
|
|
180
178
|
}, null, 8, ["content", "title", "loading"]));
|
|
181
179
|
}
|
|
182
|
-
}),
|
|
180
|
+
}), $e = {
|
|
183
181
|
key: 0,
|
|
184
182
|
class: "loading"
|
|
185
|
-
},
|
|
183
|
+
}, Ae = {
|
|
186
184
|
key: 1,
|
|
187
185
|
class: "none"
|
|
188
|
-
},
|
|
186
|
+
}, we = /* @__PURE__ */ x({
|
|
189
187
|
__name: "InfiniteLoading",
|
|
190
188
|
props: {
|
|
191
189
|
loading: {
|
|
@@ -225,17 +223,17 @@ const ke = /* @__PURE__ */ x({
|
|
|
225
223
|
!a.loading && !a.finished && d("infinite");
|
|
226
224
|
}, {
|
|
227
225
|
threshold: a.threshold
|
|
228
|
-
}), (t, o) => (s(),
|
|
226
|
+
}), (t, o) => (s(), k("div", {
|
|
229
227
|
ref_key: "container",
|
|
230
228
|
ref: r,
|
|
231
229
|
class: "infinite-loading"
|
|
232
|
-
}, [e.loading ? (s(),
|
|
230
|
+
}, [e.loading ? (s(), k("div", $e, [A(i(ee), {
|
|
233
231
|
tip: e.loadingText
|
|
234
|
-
}, null, 8, ["tip"])])) :
|
|
232
|
+
}, null, 8, ["tip"])])) : $("", !0), e.finished && e.showFinishedText ? (s(), k("div", Ae, [A(i(te), {
|
|
235
233
|
description: e.finishedText
|
|
236
|
-
}, null, 8, ["description"])])) :
|
|
234
|
+
}, null, 8, ["description"])])) : $("", !0)], 512));
|
|
237
235
|
}
|
|
238
|
-
}),
|
|
236
|
+
}), Ne = /* @__PURE__ */ I(we, [["__scopeId", "data-v-b513f798"]]), Se = {
|
|
239
237
|
class: "message-item__content"
|
|
240
238
|
}, Me = {
|
|
241
239
|
class: "message-item__header"
|
|
@@ -264,51 +262,51 @@ const ke = /* @__PURE__ */ x({
|
|
|
264
262
|
},
|
|
265
263
|
emits: ["click"],
|
|
266
264
|
setup(e) {
|
|
267
|
-
return (l, a) => (s(),
|
|
265
|
+
return (l, a) => (s(), k("div", {
|
|
268
266
|
class: K(["message-item", {
|
|
269
267
|
"message-item--unread": e.showReadStatus && !e.item.read
|
|
270
268
|
}]),
|
|
271
269
|
onClick: a[0] || (a[0] = (d) => l.$emit("click", e.item))
|
|
272
|
-
}, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(),
|
|
270
|
+
}, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(), k("span", {
|
|
273
271
|
key: 0,
|
|
274
272
|
class: K(["message-item__dot", {
|
|
275
273
|
"message-item__dot--unread": !e.item.read
|
|
276
274
|
}])
|
|
277
|
-
}, null, 2)) :
|
|
275
|
+
}, null, 2)) : $("", !0), B(l.$slots, "prefix", {
|
|
278
276
|
item: e.item
|
|
279
277
|
}, void 0, !0), L("span", xe, T(e.item.title), 1), L("div", Le, [e.item.pinned ? (s(), _(i(z), {
|
|
280
278
|
key: 0,
|
|
281
279
|
color: "arcoblue",
|
|
282
280
|
size: "small"
|
|
283
281
|
}, {
|
|
284
|
-
default: f(() => [...a[1] || (a[1] = [
|
|
282
|
+
default: f(() => [...a[1] || (a[1] = [N("置顶", -1)])]),
|
|
285
283
|
_: 1
|
|
286
|
-
})) :
|
|
284
|
+
})) : $("", !0), B(l.$slots, "tags", {
|
|
287
285
|
item: e.item
|
|
288
286
|
}, () => [e.item.priority === "urgent" ? (s(), _(i(z), {
|
|
289
287
|
key: 0,
|
|
290
288
|
color: "red",
|
|
291
289
|
size: "small"
|
|
292
290
|
}, {
|
|
293
|
-
default: f(() => [...a[2] || (a[2] = [
|
|
291
|
+
default: f(() => [...a[2] || (a[2] = [N("紧急", -1)])]),
|
|
294
292
|
_: 1
|
|
295
293
|
})) : e.item.priority === "important" ? (s(), _(i(z), {
|
|
296
294
|
key: 1,
|
|
297
295
|
color: "orange",
|
|
298
296
|
size: "small"
|
|
299
297
|
}, {
|
|
300
|
-
default: f(() => [...a[3] || (a[3] = [
|
|
298
|
+
default: f(() => [...a[3] || (a[3] = [N("重要", -1)])]),
|
|
301
299
|
_: 1
|
|
302
300
|
})) : e.item.priority === "high" ? (s(), _(i(z), {
|
|
303
301
|
key: 2,
|
|
304
302
|
color: "orange",
|
|
305
303
|
size: "small"
|
|
306
304
|
}, {
|
|
307
|
-
default: f(() => [...a[4] || (a[4] = [
|
|
305
|
+
default: f(() => [...a[4] || (a[4] = [N("高", -1)])]),
|
|
308
306
|
_: 1
|
|
309
|
-
})) :
|
|
307
|
+
})) : $("", !0)], !0)])]), L("div", Te, [B(l.$slots, "description", {
|
|
310
308
|
item: e.item
|
|
311
|
-
}, () => [
|
|
309
|
+
}, () => [N(T(e.item.description), 1)], !0)]), L("div", Ie, [L("span", ze, T(e.item.createAt), 1), B(l.$slots, "footer", {
|
|
312
310
|
item: e.item
|
|
313
311
|
}, void 0, !0)])]), L("div", Be, [B(l.$slots, "actions", {
|
|
314
312
|
item: e.item
|
|
@@ -317,9 +315,9 @@ const ke = /* @__PURE__ */ x({
|
|
|
317
315
|
type: "text",
|
|
318
316
|
size: "small"
|
|
319
317
|
}, {
|
|
320
|
-
default: f(() => [...a[5] || (a[5] = [
|
|
318
|
+
default: f(() => [...a[5] || (a[5] = [N("查看", -1)])]),
|
|
321
319
|
_: 1
|
|
322
|
-
})) :
|
|
320
|
+
})) : $("", !0)], !0)])], 2));
|
|
323
321
|
}
|
|
324
322
|
}), Re = /* @__PURE__ */ I(De, [["__scopeId", "data-v-1cf5087b"]]), Ue = {
|
|
325
323
|
class: "message-list"
|
|
@@ -351,11 +349,11 @@ const ke = /* @__PURE__ */ x({
|
|
|
351
349
|
function r(t) {
|
|
352
350
|
d("itemClick", t);
|
|
353
351
|
}
|
|
354
|
-
return (t, o) => (s(),
|
|
352
|
+
return (t, o) => (s(), k("div", Ue, [a.messageList.length === 0 && !a.loading ? (s(), k("div", Oe, [A(i(te), {
|
|
355
353
|
description: "暂无消息"
|
|
356
|
-
})])) : (s(),
|
|
354
|
+
})])) : (s(), k(P, {
|
|
357
355
|
key: 1
|
|
358
|
-
}, [(s(!0),
|
|
356
|
+
}, [(s(!0), k(P, null, Z(a.messageList, (n) => (s(), _(Re, {
|
|
359
357
|
key: n.id,
|
|
360
358
|
item: n,
|
|
361
359
|
"show-read-status": a.showReadStatus,
|
|
@@ -393,7 +391,7 @@ const ke = /* @__PURE__ */ x({
|
|
|
393
391
|
ref_for: !0
|
|
394
392
|
}, u), void 0, !0)]),
|
|
395
393
|
key: "4"
|
|
396
|
-
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)),
|
|
394
|
+
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), A(Ne, {
|
|
397
395
|
loading: a.loading,
|
|
398
396
|
finished: a.finished,
|
|
399
397
|
onInfinite: o[0] || (o[0] = (n) => t.$emit("loadMore"))
|
|
@@ -409,7 +407,7 @@ const ke = /* @__PURE__ */ x({
|
|
|
409
407
|
}, Ke = {
|
|
410
408
|
key: 2,
|
|
411
409
|
class: "message-panel__detail"
|
|
412
|
-
},
|
|
410
|
+
}, Pe = /* @__PURE__ */ x({
|
|
413
411
|
__name: "MessageChangelogNotifications",
|
|
414
412
|
setup(e) {
|
|
415
413
|
const {
|
|
@@ -422,35 +420,35 @@ const ke = /* @__PURE__ */ x({
|
|
|
422
420
|
toList: n,
|
|
423
421
|
openDetail: u
|
|
424
422
|
} = ae(he);
|
|
425
|
-
function c(
|
|
423
|
+
function c(C) {
|
|
426
424
|
return {
|
|
427
425
|
feature: "green",
|
|
428
426
|
improvement: "blue",
|
|
429
427
|
fix: "orange",
|
|
430
428
|
security: "red",
|
|
431
429
|
breaking: "magenta"
|
|
432
|
-
}[
|
|
430
|
+
}[C] || "blue";
|
|
433
431
|
}
|
|
434
|
-
function S(
|
|
432
|
+
function S(C) {
|
|
435
433
|
return {
|
|
436
434
|
feature: "新功能",
|
|
437
435
|
improvement: "优化",
|
|
438
436
|
fix: "修复",
|
|
439
437
|
security: "安全",
|
|
440
438
|
breaking: "重大变更"
|
|
441
|
-
}[
|
|
439
|
+
}[C] || "更新";
|
|
442
440
|
}
|
|
443
|
-
return (
|
|
441
|
+
return (C, y) => (s(), k("div", Ee, [i(l) ? $("", !0) : (s(), _(i(H), {
|
|
444
442
|
key: 0,
|
|
445
443
|
class: "message-panel__breadcrumb"
|
|
446
444
|
}, {
|
|
447
|
-
default: f(() => [
|
|
445
|
+
default: f(() => [A(i(R), {
|
|
448
446
|
onClick: i(n)
|
|
449
447
|
}, {
|
|
450
|
-
default: f(() => [...y[0] || (y[0] = [
|
|
448
|
+
default: f(() => [...y[0] || (y[0] = [N("更新日志", -1)])]),
|
|
451
449
|
_: 1
|
|
452
|
-
}, 8, ["onClick"]),
|
|
453
|
-
default: f(() => [...y[1] || (y[1] = [
|
|
450
|
+
}, 8, ["onClick"]), A(i(R), null, {
|
|
451
|
+
default: f(() => [...y[1] || (y[1] = [N("详情", -1)])]),
|
|
454
452
|
_: 1
|
|
455
453
|
})]),
|
|
456
454
|
_: 1
|
|
@@ -467,32 +465,32 @@ const ke = /* @__PURE__ */ x({
|
|
|
467
465
|
}) => [L("span", qe, T(h.version), 1)]),
|
|
468
466
|
tags: f(({
|
|
469
467
|
item: h
|
|
470
|
-
}) => [
|
|
468
|
+
}) => [A(i(z), {
|
|
471
469
|
color: c(h.changeType),
|
|
472
470
|
size: "small"
|
|
473
471
|
}, {
|
|
474
|
-
default: f(() => [
|
|
472
|
+
default: f(() => [N(T(S(h.changeType)), 1)]),
|
|
475
473
|
_: 2
|
|
476
474
|
}, 1032, ["color"])]),
|
|
477
475
|
footer: f(({
|
|
478
476
|
item: h
|
|
479
|
-
}) => [h.publishedAt ? (s(),
|
|
477
|
+
}) => [h.publishedAt ? (s(), k("span", Fe, " 发布于 " + T(h.publishedAt), 1)) : $("", !0)]),
|
|
480
478
|
_: 1
|
|
481
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(),
|
|
479
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), k("div", Ke, [A(Ce, {
|
|
482
480
|
id: i(a)
|
|
483
481
|
}, null, 8, ["id"])]))]));
|
|
484
482
|
}
|
|
485
|
-
}),
|
|
486
|
-
function
|
|
483
|
+
}), He = /* @__PURE__ */ I(Pe, [["__scopeId", "data-v-b50402cc"]]);
|
|
484
|
+
function je(e) {
|
|
487
485
|
return U({
|
|
488
|
-
url: `${O.
|
|
486
|
+
url: `${O.onesPrefixUrl}/messageCenter/eventNotifications/find`,
|
|
489
487
|
method: "post",
|
|
490
488
|
data: e
|
|
491
489
|
});
|
|
492
490
|
}
|
|
493
491
|
function Ge(e) {
|
|
494
492
|
return U({
|
|
495
|
-
url: `${O.
|
|
493
|
+
url: `${O.onesPrefixUrl}/messageCenter/eventNotifications/findOne`,
|
|
496
494
|
method: "post",
|
|
497
495
|
data: e
|
|
498
496
|
});
|
|
@@ -507,18 +505,16 @@ const Je = /* @__PURE__ */ x({
|
|
|
507
505
|
},
|
|
508
506
|
setup(e) {
|
|
509
507
|
const l = p(!1), a = p(null), d = p(""), r = e;
|
|
510
|
-
function t() {
|
|
511
|
-
l.value = !0
|
|
512
|
-
|
|
513
|
-
}).then(({
|
|
508
|
+
async function t() {
|
|
509
|
+
l.value = !0;
|
|
510
|
+
const {
|
|
514
511
|
data: o
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
}).catch((o) => {
|
|
518
|
-
console.error("获取事件通知详情失败:", o), l.value = !1;
|
|
512
|
+
} = await Ge({
|
|
513
|
+
id: r.id
|
|
519
514
|
});
|
|
515
|
+
l.value = !1, o && (a.value = o.content, d.value = o.title);
|
|
520
516
|
}
|
|
521
|
-
return t(), (o, n) => (s(), _(
|
|
517
|
+
return t(), (o, n) => (s(), _(j, {
|
|
522
518
|
content: a.value,
|
|
523
519
|
title: d.value,
|
|
524
520
|
loading: l.value
|
|
@@ -544,39 +540,39 @@ const Je = /* @__PURE__ */ x({
|
|
|
544
540
|
loadMore: o,
|
|
545
541
|
toList: n,
|
|
546
542
|
openDetail: u
|
|
547
|
-
} = ae((
|
|
548
|
-
...
|
|
543
|
+
} = ae((C) => je({
|
|
544
|
+
...C,
|
|
549
545
|
where: {
|
|
550
546
|
status: "published"
|
|
551
547
|
}
|
|
552
548
|
}));
|
|
553
|
-
function c(
|
|
549
|
+
function c(C) {
|
|
554
550
|
return {
|
|
555
551
|
upcoming: "blue",
|
|
556
552
|
ongoing: "green",
|
|
557
553
|
ended: "gray",
|
|
558
554
|
published: "arcoblue"
|
|
559
|
-
}[
|
|
555
|
+
}[C] || "gray";
|
|
560
556
|
}
|
|
561
|
-
function S(
|
|
557
|
+
function S(C) {
|
|
562
558
|
return {
|
|
563
559
|
upcoming: "即将开始",
|
|
564
560
|
ongoing: "进行中",
|
|
565
561
|
ended: "已结束",
|
|
566
562
|
published: "已发布"
|
|
567
|
-
}[
|
|
563
|
+
}[C] || "未知";
|
|
568
564
|
}
|
|
569
|
-
return (
|
|
565
|
+
return (C, y) => (s(), k("div", Qe, [i(l) ? $("", !0) : (s(), _(i(H), {
|
|
570
566
|
key: 0,
|
|
571
567
|
class: "message-panel__breadcrumb"
|
|
572
568
|
}, {
|
|
573
|
-
default: f(() => [
|
|
569
|
+
default: f(() => [A(i(R), {
|
|
574
570
|
onClick: i(n)
|
|
575
571
|
}, {
|
|
576
|
-
default: f(() => [...y[0] || (y[0] = [
|
|
572
|
+
default: f(() => [...y[0] || (y[0] = [N("活动通知", -1)])]),
|
|
577
573
|
_: 1
|
|
578
|
-
}, 8, ["onClick"]),
|
|
579
|
-
default: f(() => [...y[1] || (y[1] = [
|
|
574
|
+
}, 8, ["onClick"]), A(i(R), null, {
|
|
575
|
+
default: f(() => [...y[1] || (y[1] = [N("详情", -1)])]),
|
|
580
576
|
_: 1
|
|
581
577
|
})]),
|
|
582
578
|
_: 1
|
|
@@ -590,18 +586,18 @@ const Je = /* @__PURE__ */ x({
|
|
|
590
586
|
}, {
|
|
591
587
|
tags: f(({
|
|
592
588
|
item: h
|
|
593
|
-
}) => [
|
|
589
|
+
}) => [A(i(z), {
|
|
594
590
|
color: c(h.displayStatus),
|
|
595
591
|
size: "small"
|
|
596
592
|
}, {
|
|
597
|
-
default: f(() => [
|
|
593
|
+
default: f(() => [N(T(S(h.displayStatus)), 1)]),
|
|
598
594
|
_: 2
|
|
599
595
|
}, 1032, ["color"])]),
|
|
600
596
|
footer: f(({
|
|
601
597
|
item: h
|
|
602
|
-
}) => [h.startAt || h.endAt ? (s(),
|
|
598
|
+
}) => [h.startAt || h.endAt ? (s(), k("span", We, T(h.startAt || "无") + " ~ " + T(h.endAt || "无"), 1)) : $("", !0)]),
|
|
603
599
|
_: 1
|
|
604
|
-
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(),
|
|
600
|
+
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), k("div", Xe, [A(Je, {
|
|
605
601
|
id: i(a)
|
|
606
602
|
}, null, 8, ["id"])]))]));
|
|
607
603
|
}
|
|
@@ -636,7 +632,7 @@ const Je = /* @__PURE__ */ x({
|
|
|
636
632
|
function r(t) {
|
|
637
633
|
t !== a.modelValue && (d("update:modelValue", t), d("change", t));
|
|
638
634
|
}
|
|
639
|
-
return (t, o) => (s(),
|
|
635
|
+
return (t, o) => (s(), k("div", et, [(s(!0), k(P, null, Z(e.tabs, (n) => (s(), k("span", {
|
|
640
636
|
key: n.key,
|
|
641
637
|
class: K(["custom-tab", [{
|
|
642
638
|
active: e.modelValue === n.key
|
|
@@ -676,21 +672,21 @@ const Je = /* @__PURE__ */ x({
|
|
|
676
672
|
function o() {
|
|
677
673
|
a.messageList.length !== 0 && d("readAll");
|
|
678
674
|
}
|
|
679
|
-
return (n, u) => (s(),
|
|
675
|
+
return (n, u) => (s(), k("div", nt, [A(st, {
|
|
680
676
|
modelValue: r.value,
|
|
681
677
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
|
|
682
678
|
tabs: e.tabs,
|
|
683
679
|
onChange: t
|
|
684
|
-
}, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(),
|
|
680
|
+
}, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(), k("div", {
|
|
685
681
|
key: 0,
|
|
686
682
|
class: K(["readAll", {
|
|
687
683
|
disabled: e.messageList.length === 0
|
|
688
684
|
}]),
|
|
689
685
|
onClick: o
|
|
690
|
-
}, [
|
|
686
|
+
}, [A(i(me), {
|
|
691
687
|
class: "icon",
|
|
692
688
|
icon: "icon-park-outline:clear"
|
|
693
|
-
}), u[1] || (u[1] = L("span", null, " 全部已读", -1))], 2)) :
|
|
689
|
+
}), u[1] || (u[1] = L("span", null, " 全部已读", -1))], 2)) : $("", !0)]));
|
|
694
690
|
}
|
|
695
691
|
}), se = /* @__PURE__ */ I(it, [["__scopeId", "data-v-47f7fce5"]]), ot = {
|
|
696
692
|
class: "message-panel"
|
|
@@ -713,63 +709,57 @@ const Je = /* @__PURE__ */ x({
|
|
|
713
709
|
}, {
|
|
714
710
|
label: "已读消息",
|
|
715
711
|
key: "read"
|
|
716
|
-
}],
|
|
712
|
+
}], C = Q(() => u.value === "read");
|
|
717
713
|
async function y() {
|
|
718
714
|
t.value = !0;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
})), c.value.total = C.count, o.value = C.items.length < c.value.pageSize;
|
|
741
|
-
} finally {
|
|
742
|
-
t.value = !1;
|
|
743
|
-
}
|
|
715
|
+
const {
|
|
716
|
+
data: b
|
|
717
|
+
} = await X({
|
|
718
|
+
current: c.value.current,
|
|
719
|
+
pageSize: c.value.pageSize,
|
|
720
|
+
where: {
|
|
721
|
+
type: J,
|
|
722
|
+
read: C.value
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
t.value = !1, b && (n.value = b.items.map((v) => ({
|
|
726
|
+
id: v.id,
|
|
727
|
+
title: v.title,
|
|
728
|
+
description: v.description,
|
|
729
|
+
createAt: v.createAt,
|
|
730
|
+
updateAt: v.updateAt,
|
|
731
|
+
type: v.type,
|
|
732
|
+
priority: v.priority,
|
|
733
|
+
read: v.read ?? !1,
|
|
734
|
+
readAt: v.readAt ?? null
|
|
735
|
+
})), c.value.total = b.count, o.value = b.items.length < c.value.pageSize);
|
|
744
736
|
}
|
|
745
737
|
async function h() {
|
|
746
|
-
if (
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
read: k.value
|
|
757
|
-
}
|
|
758
|
-
}), v = C.items.map((g) => ({
|
|
759
|
-
id: g.id,
|
|
760
|
-
title: g.title,
|
|
761
|
-
description: g.description,
|
|
762
|
-
createAt: g.createAt,
|
|
763
|
-
updateAt: g.updateAt,
|
|
764
|
-
type: g.type,
|
|
765
|
-
priority: g.priority,
|
|
766
|
-
read: g.read ?? !1,
|
|
767
|
-
readAt: g.readAt ?? null
|
|
768
|
-
}));
|
|
769
|
-
n.value = [...n.value, ...v], o.value = C.items.length < c.value.pageSize;
|
|
770
|
-
} finally {
|
|
771
|
-
t.value = !1;
|
|
738
|
+
if (t.value || o.value) return;
|
|
739
|
+
c.value.current += 1, t.value = !0;
|
|
740
|
+
const {
|
|
741
|
+
data: b
|
|
742
|
+
} = await X({
|
|
743
|
+
current: c.value.current,
|
|
744
|
+
pageSize: c.value.pageSize,
|
|
745
|
+
where: {
|
|
746
|
+
type: J,
|
|
747
|
+
read: C.value
|
|
772
748
|
}
|
|
749
|
+
});
|
|
750
|
+
if (t.value = !1, b) {
|
|
751
|
+
const v = b.items.map((g) => ({
|
|
752
|
+
id: g.id,
|
|
753
|
+
title: g.title,
|
|
754
|
+
description: g.description,
|
|
755
|
+
createAt: g.createAt,
|
|
756
|
+
updateAt: g.updateAt,
|
|
757
|
+
type: g.type,
|
|
758
|
+
priority: g.priority,
|
|
759
|
+
read: g.read ?? !1,
|
|
760
|
+
readAt: g.readAt ?? null
|
|
761
|
+
}));
|
|
762
|
+
n.value = [...n.value, ...v], o.value = b.items.length < c.value.pageSize;
|
|
773
763
|
}
|
|
774
764
|
}
|
|
775
765
|
function D() {
|
|
@@ -786,38 +776,34 @@ const Je = /* @__PURE__ */ x({
|
|
|
786
776
|
content: null
|
|
787
777
|
};
|
|
788
778
|
}
|
|
789
|
-
async function M(
|
|
779
|
+
async function M(b) {
|
|
790
780
|
d.value = !0;
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
};
|
|
801
|
-
} finally {
|
|
802
|
-
d.value = !1;
|
|
803
|
-
}
|
|
781
|
+
const {
|
|
782
|
+
data: v
|
|
783
|
+
} = await ve({
|
|
784
|
+
id: b
|
|
785
|
+
});
|
|
786
|
+
d.value = !1, v && (r.value = {
|
|
787
|
+
title: v.title,
|
|
788
|
+
content: v.content
|
|
789
|
+
});
|
|
804
790
|
}
|
|
805
|
-
async function q(
|
|
806
|
-
a.value =
|
|
807
|
-
messageId:
|
|
808
|
-
}),
|
|
791
|
+
async function q(b) {
|
|
792
|
+
a.value = b.id, l.value = !1, b.read || (await ge({
|
|
793
|
+
messageId: b.id
|
|
794
|
+
}), C.value || (n.value = n.value.filter((v) => v.id !== b.id))), M(b.id);
|
|
809
795
|
}
|
|
810
|
-
return y(), (
|
|
796
|
+
return y(), (b, v) => (s(), k("div", ot, [l.value ? $("", !0) : (s(), _(i(H), {
|
|
811
797
|
key: 0,
|
|
812
798
|
class: "message-panel__breadcrumb"
|
|
813
799
|
}, {
|
|
814
|
-
default: f(() => [
|
|
800
|
+
default: f(() => [A(i(R), {
|
|
815
801
|
onClick: E
|
|
816
802
|
}, {
|
|
817
|
-
default: f(() => [...v[1] || (v[1] = [
|
|
803
|
+
default: f(() => [...v[1] || (v[1] = [N("消息通知", -1)])]),
|
|
818
804
|
_: 1
|
|
819
|
-
}),
|
|
820
|
-
default: f(() => [...v[2] || (v[2] = [
|
|
805
|
+
}), A(i(R), null, {
|
|
806
|
+
default: f(() => [...v[2] || (v[2] = [N("详情", -1)])]),
|
|
821
807
|
_: 1
|
|
822
808
|
})]),
|
|
823
809
|
_: 1
|
|
@@ -829,7 +815,7 @@ const Je = /* @__PURE__ */ x({
|
|
|
829
815
|
"message-list": n.value,
|
|
830
816
|
onChange: D,
|
|
831
817
|
onReadAll: V
|
|
832
|
-
}, null, 8, ["active-tab", "message-list"])) :
|
|
818
|
+
}, null, 8, ["active-tab", "message-list"])) : $("", !0), l.value ? (s(), _(G, {
|
|
833
819
|
key: 2,
|
|
834
820
|
"message-list": n.value,
|
|
835
821
|
loading: t.value,
|
|
@@ -846,48 +832,48 @@ const Je = /* @__PURE__ */ x({
|
|
|
846
832
|
color: "red",
|
|
847
833
|
size: "small"
|
|
848
834
|
}, {
|
|
849
|
-
default: f(() => [...v[3] || (v[3] = [
|
|
835
|
+
default: f(() => [...v[3] || (v[3] = [N("紧急", -1)])]),
|
|
850
836
|
_: 1
|
|
851
837
|
})) : g.priority === "high" ? (s(), _(i(z), {
|
|
852
838
|
key: 1,
|
|
853
839
|
color: "orange",
|
|
854
840
|
size: "small"
|
|
855
841
|
}, {
|
|
856
|
-
default: f(() => [...v[4] || (v[4] = [
|
|
842
|
+
default: f(() => [...v[4] || (v[4] = [N("高", -1)])]),
|
|
857
843
|
_: 1
|
|
858
|
-
})) :
|
|
844
|
+
})) : $("", !0)]),
|
|
859
845
|
_: 1
|
|
860
|
-
}, 8, ["message-list", "loading", "finished"])) : (s(),
|
|
846
|
+
}, 8, ["message-list", "loading", "finished"])) : (s(), k("div", lt, [A(j, {
|
|
861
847
|
title: r.value.title,
|
|
862
848
|
content: r.value.content,
|
|
863
849
|
loading: d.value
|
|
864
850
|
}, null, 8, ["title", "content", "loading"])]))]));
|
|
865
851
|
}
|
|
866
|
-
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-
|
|
852
|
+
}), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-b474436c"]]);
|
|
867
853
|
function dt(e) {
|
|
868
854
|
return U({
|
|
869
|
-
url: `${O.
|
|
855
|
+
url: `${O.onesPrefixUrl}/messageCenter/noticeNotifications/findOne`,
|
|
870
856
|
method: "post",
|
|
871
857
|
data: e
|
|
872
858
|
});
|
|
873
859
|
}
|
|
874
860
|
function Y(e) {
|
|
875
861
|
return U({
|
|
876
|
-
url: `${O.
|
|
862
|
+
url: `${O.onesPrefixUrl}/messageCenter/noticeNotifications/own`,
|
|
877
863
|
method: "post",
|
|
878
864
|
data: e
|
|
879
865
|
});
|
|
880
866
|
}
|
|
881
867
|
function ct(e) {
|
|
882
868
|
return U({
|
|
883
|
-
url: `${O.
|
|
869
|
+
url: `${O.onesPrefixUrl}/messageCenter/noticeNotifications/read`,
|
|
884
870
|
method: "post",
|
|
885
871
|
data: e
|
|
886
872
|
});
|
|
887
873
|
}
|
|
888
874
|
function ft() {
|
|
889
875
|
return U({
|
|
890
|
-
url: `${O.
|
|
876
|
+
url: `${O.onesPrefixUrl}/messageCenter/noticeNotifications/readAll`,
|
|
891
877
|
method: "post",
|
|
892
878
|
data: {}
|
|
893
879
|
});
|
|
@@ -916,67 +902,61 @@ const pt = {
|
|
|
916
902
|
}, {
|
|
917
903
|
label: "已读公告",
|
|
918
904
|
key: "read"
|
|
919
|
-
}],
|
|
905
|
+
}], C = Q(() => u.value === "read");
|
|
920
906
|
async function y() {
|
|
921
907
|
t.value = !0;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
})), c.value.total = g.count, o.value = g.items.length < c.value.pageSize;
|
|
946
|
-
} finally {
|
|
947
|
-
t.value = !1;
|
|
948
|
-
}
|
|
908
|
+
const {
|
|
909
|
+
data: g
|
|
910
|
+
} = await Y({
|
|
911
|
+
current: c.value.current,
|
|
912
|
+
pageSize: c.value.pageSize,
|
|
913
|
+
where: {
|
|
914
|
+
read: C.value
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
t.value = !1, g && (n.value = g.items.map((m) => ({
|
|
918
|
+
id: m.id,
|
|
919
|
+
title: m.title,
|
|
920
|
+
description: m.description,
|
|
921
|
+
createAt: m.createAt,
|
|
922
|
+
updateAt: m.updateAt,
|
|
923
|
+
pinned: m.pinned,
|
|
924
|
+
priority: m.priority,
|
|
925
|
+
displayStatus: m.displayStatus,
|
|
926
|
+
expireAt: m.expireAt,
|
|
927
|
+
requireConfirm: m.requireConfirm,
|
|
928
|
+
read: m.read ?? !1,
|
|
929
|
+
readAt: m.readAt ?? null
|
|
930
|
+
})), c.value.total = g.count, o.value = g.items.length < c.value.pageSize);
|
|
949
931
|
}
|
|
950
932
|
async function h() {
|
|
951
|
-
if (
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
read: k.value
|
|
961
|
-
}
|
|
962
|
-
}), m = g.items.map((N) => ({
|
|
963
|
-
id: N.id,
|
|
964
|
-
title: N.title,
|
|
965
|
-
description: N.description,
|
|
966
|
-
createAt: N.createAt,
|
|
967
|
-
updateAt: N.updateAt,
|
|
968
|
-
pinned: N.pinned,
|
|
969
|
-
priority: N.priority,
|
|
970
|
-
displayStatus: N.displayStatus,
|
|
971
|
-
expireAt: N.expireAt,
|
|
972
|
-
requireConfirm: N.requireConfirm,
|
|
973
|
-
read: N.read ?? !1,
|
|
974
|
-
readAt: N.readAt ?? null
|
|
975
|
-
}));
|
|
976
|
-
n.value = [...n.value, ...m], o.value = g.items.length < c.value.pageSize;
|
|
977
|
-
} finally {
|
|
978
|
-
t.value = !1;
|
|
933
|
+
if (t.value || o.value) return;
|
|
934
|
+
c.value.current += 1, t.value = !0;
|
|
935
|
+
const {
|
|
936
|
+
data: g
|
|
937
|
+
} = await Y({
|
|
938
|
+
current: c.value.current,
|
|
939
|
+
pageSize: c.value.pageSize,
|
|
940
|
+
where: {
|
|
941
|
+
read: C.value
|
|
979
942
|
}
|
|
943
|
+
});
|
|
944
|
+
if (t.value = !1, g) {
|
|
945
|
+
const m = g.items.map((w) => ({
|
|
946
|
+
id: w.id,
|
|
947
|
+
title: w.title,
|
|
948
|
+
description: w.description,
|
|
949
|
+
createAt: w.createAt,
|
|
950
|
+
updateAt: w.updateAt,
|
|
951
|
+
pinned: w.pinned,
|
|
952
|
+
priority: w.priority,
|
|
953
|
+
displayStatus: w.displayStatus,
|
|
954
|
+
expireAt: w.expireAt,
|
|
955
|
+
requireConfirm: w.requireConfirm,
|
|
956
|
+
read: w.read ?? !1,
|
|
957
|
+
readAt: w.readAt ?? null
|
|
958
|
+
}));
|
|
959
|
+
n.value = [...n.value, ...m], o.value = g.items.length < c.value.pageSize;
|
|
980
960
|
}
|
|
981
961
|
}
|
|
982
962
|
function D() {
|
|
@@ -993,26 +973,22 @@ const pt = {
|
|
|
993
973
|
}
|
|
994
974
|
async function M(g) {
|
|
995
975
|
d.value = !0;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
};
|
|
1006
|
-
} finally {
|
|
1007
|
-
d.value = !1;
|
|
1008
|
-
}
|
|
976
|
+
const {
|
|
977
|
+
data: m
|
|
978
|
+
} = await dt({
|
|
979
|
+
id: g
|
|
980
|
+
});
|
|
981
|
+
d.value = !1, m && (r.value = {
|
|
982
|
+
title: m.title,
|
|
983
|
+
content: m.content
|
|
984
|
+
});
|
|
1009
985
|
}
|
|
1010
986
|
async function q(g) {
|
|
1011
987
|
a.value = g.id, l.value = !1, g.read || (await ct({
|
|
1012
988
|
noticeId: g.id
|
|
1013
|
-
}),
|
|
989
|
+
}), C.value || (n.value = n.value.filter((m) => m.id !== g.id))), M(g.id);
|
|
1014
990
|
}
|
|
1015
|
-
function
|
|
991
|
+
function b(g) {
|
|
1016
992
|
return {
|
|
1017
993
|
published: "green",
|
|
1018
994
|
expired: "gray"
|
|
@@ -1024,29 +1000,29 @@ const pt = {
|
|
|
1024
1000
|
expired: "已过期"
|
|
1025
1001
|
}[g] || "未知";
|
|
1026
1002
|
}
|
|
1027
|
-
return y(), (g, m) => (s(),
|
|
1003
|
+
return y(), (g, m) => (s(), k("div", pt, [l.value ? $("", !0) : (s(), _(i(H), {
|
|
1028
1004
|
key: 0,
|
|
1029
1005
|
class: "message-panel__breadcrumb"
|
|
1030
1006
|
}, {
|
|
1031
|
-
default: f(() => [
|
|
1007
|
+
default: f(() => [A(i(R), {
|
|
1032
1008
|
onClick: E
|
|
1033
1009
|
}, {
|
|
1034
|
-
default: f(() => [...m[1] || (m[1] = [
|
|
1010
|
+
default: f(() => [...m[1] || (m[1] = [N("公告通知", -1)])]),
|
|
1035
1011
|
_: 1
|
|
1036
|
-
}),
|
|
1037
|
-
default: f(() => [...m[2] || (m[2] = [
|
|
1012
|
+
}), A(i(R), null, {
|
|
1013
|
+
default: f(() => [...m[2] || (m[2] = [N("详情", -1)])]),
|
|
1038
1014
|
_: 1
|
|
1039
1015
|
})]),
|
|
1040
1016
|
_: 1
|
|
1041
1017
|
})), l.value ? (s(), _(se, {
|
|
1042
1018
|
key: 1,
|
|
1043
1019
|
"active-tab": u.value,
|
|
1044
|
-
"onUpdate:activeTab": m[0] || (m[0] = (
|
|
1020
|
+
"onUpdate:activeTab": m[0] || (m[0] = (w) => u.value = w),
|
|
1045
1021
|
tabs: S,
|
|
1046
1022
|
"message-list": n.value,
|
|
1047
1023
|
onChange: D,
|
|
1048
1024
|
onReadAll: V
|
|
1049
|
-
}, null, 8, ["active-tab", "message-list"])) :
|
|
1025
|
+
}, null, 8, ["active-tab", "message-list"])) : $("", !0), l.value ? (s(), _(G, {
|
|
1050
1026
|
key: 2,
|
|
1051
1027
|
"message-list": n.value,
|
|
1052
1028
|
loading: t.value,
|
|
@@ -1057,39 +1033,39 @@ const pt = {
|
|
|
1057
1033
|
onLoadMore: h
|
|
1058
1034
|
}, {
|
|
1059
1035
|
tags: f(({
|
|
1060
|
-
item:
|
|
1061
|
-
}) => [
|
|
1036
|
+
item: w
|
|
1037
|
+
}) => [w.priority === "urgent" ? (s(), _(i(z), {
|
|
1062
1038
|
key: 0,
|
|
1063
1039
|
color: "red",
|
|
1064
1040
|
size: "small"
|
|
1065
1041
|
}, {
|
|
1066
|
-
default: f(() => [...m[3] || (m[3] = [
|
|
1042
|
+
default: f(() => [...m[3] || (m[3] = [N("紧急", -1)])]),
|
|
1067
1043
|
_: 1
|
|
1068
|
-
})) :
|
|
1044
|
+
})) : w.priority === "important" ? (s(), _(i(z), {
|
|
1069
1045
|
key: 1,
|
|
1070
1046
|
color: "orange",
|
|
1071
1047
|
size: "small"
|
|
1072
1048
|
}, {
|
|
1073
|
-
default: f(() => [...m[4] || (m[4] = [
|
|
1049
|
+
default: f(() => [...m[4] || (m[4] = [N("重要", -1)])]),
|
|
1074
1050
|
_: 1
|
|
1075
|
-
})) :
|
|
1076
|
-
color:
|
|
1051
|
+
})) : $("", !0), A(i(z), {
|
|
1052
|
+
color: b(w.displayStatus),
|
|
1077
1053
|
size: "small"
|
|
1078
1054
|
}, {
|
|
1079
|
-
default: f(() => [
|
|
1055
|
+
default: f(() => [N(T(v(w.displayStatus)), 1)]),
|
|
1080
1056
|
_: 2
|
|
1081
1057
|
}, 1032, ["color"])]),
|
|
1082
1058
|
footer: f(({
|
|
1083
|
-
item:
|
|
1084
|
-
}) => [
|
|
1059
|
+
item: w
|
|
1060
|
+
}) => [w.expireAt ? (s(), k("span", gt, T(w.displayStatus === "expired" ? "已过期" : `过期时间: ${w.expireAt}`), 1)) : $("", !0)]),
|
|
1085
1061
|
_: 1
|
|
1086
|
-
}, 8, ["message-list", "loading", "finished"])) : (s(),
|
|
1062
|
+
}, 8, ["message-list", "loading", "finished"])) : (s(), k("div", vt, [A(j, {
|
|
1087
1063
|
title: r.value.title,
|
|
1088
1064
|
content: r.value.content,
|
|
1089
1065
|
loading: d.value
|
|
1090
1066
|
}, null, 8, ["title", "content", "loading"])]))]));
|
|
1091
1067
|
}
|
|
1092
|
-
}), yt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-
|
|
1068
|
+
}), yt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-83623022"]]), _t = {
|
|
1093
1069
|
class: "content"
|
|
1094
1070
|
}, ht = {
|
|
1095
1071
|
class: "left"
|
|
@@ -1123,11 +1099,11 @@ const pt = {
|
|
|
1123
1099
|
changeType: c,
|
|
1124
1100
|
show: S
|
|
1125
1101
|
} = ye(r);
|
|
1126
|
-
function
|
|
1102
|
+
function C(y) {
|
|
1127
1103
|
S.value = y, c.value = "编辑";
|
|
1128
1104
|
}
|
|
1129
1105
|
return l({
|
|
1130
|
-
setData:
|
|
1106
|
+
setData: C
|
|
1131
1107
|
}), (y, h) => (s(), _(i(ue), {
|
|
1132
1108
|
visible: i(S),
|
|
1133
1109
|
"onUpdate:visible": h[1] || (h[1] = (D) => le(S) ? S.value = D : null),
|
|
@@ -1139,22 +1115,22 @@ const pt = {
|
|
|
1139
1115
|
width: "880px",
|
|
1140
1116
|
onCancel: n
|
|
1141
1117
|
}, {
|
|
1142
|
-
default: f(() => [L("div", _t, [L("div", ht, [
|
|
1118
|
+
default: f(() => [L("div", _t, [L("div", ht, [A(_e, {
|
|
1143
1119
|
"selected-keys": t.value,
|
|
1144
1120
|
"onUpdate:selectedKeys": h[0] || (h[0] = (D) => t.value = D),
|
|
1145
1121
|
menus: d.menus,
|
|
1146
1122
|
onChange: u
|
|
1147
|
-
}, null, 8, ["selected-keys", "menus"])]), i(S) ? (s(),
|
|
1123
|
+
}, null, 8, ["selected-keys", "menus"])]), i(S) ? (s(), k(P, {
|
|
1148
1124
|
key: 0
|
|
1149
|
-
}, [o.value === "ChangelogNotifications" ? (s(), _(
|
|
1125
|
+
}, [o.value === "ChangelogNotifications" ? (s(), _(He, {
|
|
1150
1126
|
key: 0
|
|
1151
|
-
})) :
|
|
1127
|
+
})) : $("", !0), o.value === "EventNotifications" ? (s(), _(Ze, {
|
|
1152
1128
|
key: 1
|
|
1153
|
-
})) :
|
|
1129
|
+
})) : $("", !0), o.value === "MessageNotifications" ? (s(), _(ut, {
|
|
1154
1130
|
key: 2
|
|
1155
|
-
})) :
|
|
1131
|
+
})) : $("", !0), o.value === "NoticeNotifications" ? (s(), _(yt, {
|
|
1156
1132
|
key: 3
|
|
1157
|
-
})) :
|
|
1133
|
+
})) : $("", !0)], 64)) : $("", !0)])]),
|
|
1158
1134
|
_: 1
|
|
1159
1135
|
}, 8, ["visible"]));
|
|
1160
1136
|
}
|
|
@@ -1205,7 +1181,7 @@ const pt = {
|
|
|
1205
1181
|
ref: d,
|
|
1206
1182
|
key: r.value,
|
|
1207
1183
|
"selected-keys": a.value,
|
|
1208
|
-
"onUpdate:selectedKeys": S[0] || (S[0] = (
|
|
1184
|
+
"onUpdate:selectedKeys": S[0] || (S[0] = (C) => a.value = C),
|
|
1209
1185
|
menus: u.value,
|
|
1210
1186
|
title: "消息中心",
|
|
1211
1187
|
onConfirm: n,
|
|
@@ -1215,10 +1191,10 @@ const pt = {
|
|
|
1215
1191
|
}), Ot = /* @__PURE__ */ I(Ct, [["__scopeId", "data-v-dd5fd3b4"]]);
|
|
1216
1192
|
export {
|
|
1217
1193
|
kt as A,
|
|
1218
|
-
|
|
1219
|
-
|
|
1194
|
+
He as C,
|
|
1195
|
+
j as D,
|
|
1220
1196
|
Ze as E,
|
|
1221
|
-
|
|
1197
|
+
Ne as I,
|
|
1222
1198
|
Ot as M,
|
|
1223
1199
|
yt as N,
|
|
1224
1200
|
Ce as _,
|