From b0c39da17ea2ca6697c026063c36c8ed90032dba Mon Sep 17 00:00:00 2001 From: fwb Date: Thu, 29 Aug 2024 09:40:43 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=9B=B4=E6=96=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/components/messageContent.vue | 2 +- src/views/message/components/sendMessage.vue | 12 +++-- .../message/components/sendMessageList.vue | 46 ++++++++++--------- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/views/message/components/messageContent.vue b/src/views/message/components/messageContent.vue index c1f63c0..599dff0 100644 --- a/src/views/message/components/messageContent.vue +++ b/src/views/message/components/messageContent.vue @@ -34,7 +34,7 @@ :model-value="inputCourseId" size="large" placeholder="" - readonly + > diff --git a/src/views/message/components/sendMessage.vue b/src/views/message/components/sendMessage.vue index 0feee67..39f34b9 100644 --- a/src/views/message/components/sendMessage.vue +++ b/src/views/message/components/sendMessage.vue @@ -23,7 +23,7 @@

{{item.title}}

- 收件人:{{item.receiverUsers}} +
收件人:{{o.receiverName}}
阅读人数:{{item.readUserNum}}
发送时间:{{item.sendTime}}
@@ -54,7 +54,7 @@ import { ref,computed,onMounted} from 'vue'; import { useRouter } from 'vue-router'; import useUserStore from "@/store/modules/user"; -import {getSendMessagesListApi,deleteSendMessageApi} from "@/api/user/messag"; +import {getSendMessagesListApi} from "@/api/user/messag"; import { ElMessageBox, ElMessage } from 'element-plus' const userStore = useUserStore() //传参 @@ -71,7 +71,7 @@ const params = ref({ sortBy:false//排序字段 }) const total = ref(0) -const sendMessage = ref([]) +const sendMessage = ref({}) const loading = ref(false) // const hoveringOver = ref(null) // 获取发送的消息列表 @@ -156,8 +156,10 @@ function handleClick(item) { // 传递整个消息对象 router.push({ path: '/sendMessageList', - query: item + query: {id:item.id} }); + + sessionStorage.setItem('senMsg:Item',JSON.stringify(item)) }