|
@@ -98,6 +98,14 @@ export default {
|
|
|
async markRead() {
|
|
|
// console.log(this.$refs.selection.getSelection());
|
|
|
const selectIds = this.$refs.selection.getSelection().map(v => v.id);
|
|
|
+ if (selectIds.length === 0) {
|
|
|
+ this.$Message.warning({
|
|
|
+ content: "请先选择消息",
|
|
|
+ duration: 10,
|
|
|
+ closable: true,
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
await this.$http.post(
|
|
|
"/api/ecs_exam_work/notice/updateNoticeReadStatus?noticeId=" +
|