11wqe1 2 недель назад
Родитель
Сommit
07e282aae7
1 измененных файлов с 19 добавлено и 5 удалено
  1. 19 5
      src/views/HomeView.vue

+ 19 - 5
src/views/HomeView.vue

@@ -18,9 +18,9 @@
 							}}</span>
 						</div>
 						<div class="person">
-							<!-- <el-badge :value="msgNum" class="item" style="margin-right: 15px;">
+							<el-badge :value="msgNum" class="item" style="margin-right: 15px;">
 								<img src="../assets/info/tongzhi.svg" class="Msg" @click="goMsg" alt="">
-							</el-badge> -->
+							</el-badge>
 							<div class="person_name" @click="editInfo">
 								<img
 									style="
@@ -212,9 +212,22 @@ export default {
 			logout: "user/logout",
 		}),
 		// 跳转
-		goMsg(){
-			console.log('去通知页');
-			
+		async goMsg(){
+				console.log('去通知页');
+				// noticeCenter?
+				let url = ''
+				if (this.$region == 'beta') {
+                    url = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/noticeCenter?userid=${this.roleUser.userid}&oid=${this.roleUser.organizeid}&org=${this.roleUser.org}`
+                }else{
+                    url = `https://pbl.cocorobo.cn/pbl-teacher-table/dist/#/noticeCenter?userid=${this.roleUser.userid}&oid=${this.roleUser.organizeid}&org=${this.roleUser.org}`
+                }
+
+				let pl = {json:url ,stateL :true,toolId :'noticeCenter'}
+                await store.commit('user/SET_AppSIGN', 'noticeCenter')
+
+                // 添加打开应用
+                this.AddAppJson(pl)
+                this.addOp3('1', "", { type:this.prefixL + 'noticeCenter' + "_open" }, "success")
 		},
 		// 打开编辑弹框
 		editInfo() {
@@ -262,6 +275,7 @@ export default {
 		},
 		// 打开平台应用工具
 		AddAppJson(val) {
+			this.getMsg()
 			console.log("AddAppJson", val);
 			this.loading = true;
 			// 荔园首页工具切换,不缓存工具