From 2d5c98399e8f79cb8055da2650d7a09806bc3b60 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Thu, 25 Apr 2024 16:39:40 +0800 Subject: [PATCH] '123' --- ruoyi-ui/src/layout/components/NavbarNotice.vue | 8 +++++--- .../src/views/noticeUserSelect/noticeUserSelect/index.vue | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/layout/components/NavbarNotice.vue b/ruoyi-ui/src/layout/components/NavbarNotice.vue index 7eda334..72eb210 100644 --- a/ruoyi-ui/src/layout/components/NavbarNotice.vue +++ b/ruoyi-ui/src/layout/components/NavbarNotice.vue @@ -175,12 +175,14 @@ websocketOnmessage: function(e) { console.log('-----接收消息-------', e.data) this.getList(); - Notification({ + this.$notify({ title: '消息', - duration: 3000, + type: 'warning', + message: '这是一条警告的提示消息', + duration: 2000, dangerouslyUseHTMLString: true, message: JSON.parse(e.data).noticeTitle - }) + }); }, websocketOnclose: function(e) { console.log('connection closed (' + e + ')') diff --git a/ruoyi-ui/src/views/noticeUserSelect/noticeUserSelect/index.vue b/ruoyi-ui/src/views/noticeUserSelect/noticeUserSelect/index.vue index d08c7db..a07f416 100644 --- a/ruoyi-ui/src/views/noticeUserSelect/noticeUserSelect/index.vue +++ b/ruoyi-ui/src/views/noticeUserSelect/noticeUserSelect/index.vue @@ -32,8 +32,9 @@ this.peopleOpen=true; }, //选择人的确定按钮事件 submitPeople(nikeNamelist)方法传参一个默认接收用户昵称数组 submitPeople(peopleList,nikeNamelist)方法传参两个则是接收用户昵称数组和用户账号数组 - submitPeople(peopleList){ + submitPeople(peopleList,nickNameList){ console.log(peopleList); + console.log(nickNameList); this.peopleOpen=false; }, }