From 85ba65f018180e368ce48500d352d4c0938d8e54 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Sep 2024 17:35:08 +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 --- .../src/api/user/news.js | 2 + .../message/components/messageContent.vue | 4 +- .../message/components/receiveContentList.vue | 4 +- .../views/message/components/sendMessage.vue | 4 +- .../message/components/sendMessageList.vue | 4 +- .../src/views/message/index.vue | 15 +-- .../src/views/myMessage/index.vue | 14 ++- .../news/components/newsContentManage.vue | 118 ++++++------------ .../src/views/news/index.vue | 15 ++- .../src/views/pedagogicalReform/index.vue | 114 ++++++++++++++++- .../src/views/scientificResearch/index.vue | 67 ++++++++-- 11 files changed, 242 insertions(+), 119 deletions(-) diff --git a/teaching_integration_platform_admin_template/src/api/user/news.js b/teaching_integration_platform_admin_template/src/api/user/news.js index 634d1f3..5c8a527 100644 --- a/teaching_integration_platform_admin_template/src/api/user/news.js +++ b/teaching_integration_platform_admin_template/src/api/user/news.js @@ -32,10 +32,12 @@ export function queryEssay(category_id) { return request.get(`/api/cms-essay/query?category_id=${category_id}`); } //添加新闻文章 + // export function addEssay(params){ // const str = parseParams(params) // return request.post(`/api/cms-essay/add${str}`) // } + export function addEssay(params) { return request.post(`/api/cms-essay/add`, params); } diff --git a/teaching_integration_platform_admin_template/src/views/message/components/messageContent.vue b/teaching_integration_platform_admin_template/src/views/message/components/messageContent.vue index e67dd39..22a514f 100644 --- a/teaching_integration_platform_admin_template/src/views/message/components/messageContent.vue +++ b/teaching_integration_platform_admin_template/src/views/message/components/messageContent.vue @@ -68,7 +68,9 @@ diff --git a/teaching_integration_platform_admin_template/src/views/message/components/receiveContentList.vue b/teaching_integration_platform_admin_template/src/views/message/components/receiveContentList.vue index 36046c8..8e276d0 100644 --- a/teaching_integration_platform_admin_template/src/views/message/components/receiveContentList.vue +++ b/teaching_integration_platform_admin_template/src/views/message/components/receiveContentList.vue @@ -22,7 +22,7 @@ - + @@ -62,7 +62,7 @@ const Message = ref(route.query) .container { padding: 10px; /* 容器内边距 */ margin-top: 10px; /* 容器上边距 */ - height: 65vh; + height: 70vh; } .header_content { margin-bottom: 10px; /* 与下面的收件人信息保持一定间距 */ diff --git a/teaching_integration_platform_admin_template/src/views/message/components/sendMessage.vue b/teaching_integration_platform_admin_template/src/views/message/components/sendMessage.vue index 39f34b9..6ea0502 100644 --- a/teaching_integration_platform_admin_template/src/views/message/components/sendMessage.vue +++ b/teaching_integration_platform_admin_template/src/views/message/components/sendMessage.vue @@ -23,7 +23,7 @@

{{item.title}}

-
收件人:{{o.receiverName}}
+
收件人:{{receive.receiverName}}
阅读人数:{{item.readUserNum}}
发送时间:{{item.sendTime}}
@@ -229,6 +229,6 @@ li{ cursor: pointer; /* 鼠标悬停时显示手指形状,表示可点击 */ } .message-list-item:hover{ - background-image: linear-gradient(60deg,powderblue,darkgrey,snow); + background-image: linear-gradient(60deg,snow,darkgrey,snow); } diff --git a/teaching_integration_platform_admin_template/src/views/message/components/sendMessageList.vue b/teaching_integration_platform_admin_template/src/views/message/components/sendMessageList.vue index 63d1c35..b28c6ad 100644 --- a/teaching_integration_platform_admin_template/src/views/message/components/sendMessageList.vue +++ b/teaching_integration_platform_admin_template/src/views/message/components/sendMessageList.vue @@ -23,7 +23,7 @@ - +
@@ -86,7 +86,7 @@ const sendMessage = ref(item || {}) .container { padding: 10px; /* 容器内边距 */ margin-top: 10px; /* 容器上边距 */ - height: 65vh; + height: 70vh; } .header_content { margin-bottom: 10px; /* 与下面的收件人信息保持一定间距 */ diff --git a/teaching_integration_platform_admin_template/src/views/message/index.vue b/teaching_integration_platform_admin_template/src/views/message/index.vue index acaf206..45334ba 100644 --- a/teaching_integration_platform_admin_template/src/views/message/index.vue +++ b/teaching_integration_platform_admin_template/src/views/message/index.vue @@ -31,15 +31,15 @@

{{item.title}}

发件人:{{item.senderName}} - 是否已读:{{ item.isRead ? '已读' : '未读' }} + 状态:{{ item.isRead ? '已读' : '未读' }} 已读人数:{{item.readUserNum}} / {{item.userNum}}
发送时间:{{item.sendTime}}
-
- 点击已读 -
+ + + 删除 @@ -121,13 +121,14 @@ function isSelected(id) { return selectedIds.value.includes(id); } -// 获取课程列表 +// 获取收到消息列表 const getMessageList = async () => { loading.value = true const res = await getMessagesListApi(params.value) Message.value = res.data.list total.value = res.data.total loading.value = false + // console.log(Message.value,'消息列表') } // 渲染 onMounted(() => { @@ -159,7 +160,7 @@ const deleteMessage = async (id: any) => { } //一键已读 const readMessage = async (id:any) =>{ - console.log(id,userStore.data.id,'dddddd') + // console.log(id,userStore.data.id,'dddddd') await readMessagesBatch({ messageIds:id, userId:userStore.data.id @@ -294,6 +295,6 @@ li{ } .message-list-item:hover{ - background-image: linear-gradient(60deg,powderblue,darkgrey,snow); + background-image: linear-gradient(60deg,snow,darkgrey,snow); } diff --git a/teaching_integration_platform_admin_template/src/views/myMessage/index.vue b/teaching_integration_platform_admin_template/src/views/myMessage/index.vue index 42ff3a4..ef746e7 100644 --- a/teaching_integration_platform_admin_template/src/views/myMessage/index.vue +++ b/teaching_integration_platform_admin_template/src/views/myMessage/index.vue @@ -31,15 +31,15 @@

{{item.title}}

发件人:{{item.senderName}} - 是否已读:{{ item.isRead ? '已读' : '未读' }} + 状态:{{ item.isRead ? '已读' : '未读' }} 已读人数:{{item.readUserNum}} / {{item.userNum}}
发送时间:{{item.sendTime}}
-
- 点击已读 -
+ + + 删除 @@ -194,6 +194,10 @@ const sendContent = ()=>{ // 消息事件点击 const handleClick = (item)=> { // console.log(item) + //查看消息切换已读状态 + if(!item.isRead){ + readMessage(item.id) + } //带查询参数 router.push({ path: '/messageContentList', query: item }) } @@ -291,6 +295,6 @@ li{ } .message-list-item:hover{ - background-image: linear-gradient(60deg,powderblue,darkgrey,snow); + background-image: linear-gradient(60deg,snow,darkgrey,snow); } diff --git a/teaching_integration_platform_admin_template/src/views/news/components/newsContentManage.vue b/teaching_integration_platform_admin_template/src/views/news/components/newsContentManage.vue index 6e3c29e..1e66b61 100644 --- a/teaching_integration_platform_admin_template/src/views/news/components/newsContentManage.vue +++ b/teaching_integration_platform_admin_template/src/views/news/components/newsContentManage.vue @@ -47,44 +47,44 @@ - - - - + - - - + + + + + - - - - - + + - - + + - - + + + + + - - - - - + +