|
@@ -34,9 +34,7 @@
|
|
|
<div class="cc-msg-main">
|
|
|
<div
|
|
|
class="cc-msg-content"
|
|
|
- :class="[
|
|
|
- msgItem.is_read == 'true' ? 'active' : '',
|
|
|
- ]"
|
|
|
+ :class="[msgItem.is_read == 'true' ? 'active' : '']"
|
|
|
v-html="msgItem.content"
|
|
|
></div>
|
|
|
</div>
|
|
@@ -163,7 +161,9 @@ export default {
|
|
|
},
|
|
|
//查看消息详情
|
|
|
viewDetail(msgItem) {
|
|
|
+ debugger;
|
|
|
msgItem.isShow = !msgItem.isShow;
|
|
|
+ let date = msgItem.send_time.split(" ");
|
|
|
if (msgItem.is_read == "false") {
|
|
|
let MethodName = "message-message_manager-ReadMyMessage";
|
|
|
let data = {
|
|
@@ -171,10 +171,14 @@ export default {
|
|
|
};
|
|
|
getLearnWebContent(MethodName, data).then((res) => {
|
|
|
msgItem.is_read = "true";
|
|
|
+ if (msgItem.message_type == 101) {
|
|
|
+ window.location.href = `/GCLS-Learn/#/EnterSys?tab=TaskList&enter=main&dateStamp=${date[0]}`;
|
|
|
+ }
|
|
|
});
|
|
|
- }
|
|
|
- if(msgItem.message_type==101){
|
|
|
- window.location.href = `/GCLS-Learn/#/main`;
|
|
|
+ } else {
|
|
|
+ if (msgItem.message_type == 101) {
|
|
|
+ window.location.href = `/GCLS-Learn/#/EnterSys?tab=TaskList&enter=main&dateStamp=${date[0]}`;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
},
|