qymljy пре 8 месеци
родитељ
комит
8b59de10f8

+ 4 - 1
src/HManagement/serviceDataScreen/index.vue

@@ -4,7 +4,7 @@
       <div style="width: 330px"></div>
       <div style="width: 330px" class="time-style">{{nowTime}}</div>
     </div>
-    <fullScreen ref="fullRef" class="inline-16" domId="fullScreen" v-show="false"></fullScreen>
+    <fullScreen ref="fullRef" class="inline-16" domId="fullScreen" v-show="false" @backFull="backFull"></fullScreen>
   </div>
 </template>
 
@@ -67,6 +67,9 @@ export default {
         // 将获取的时间信息赋值给nowTime
         this.nowTime = `${year}-${mounth}-${day} ${weekArr[week]} ${hours}:${minutes}:${seconds}`;
       }, 1000); // 每隔一秒更新时间
+    },
+    backFull(){
+      this.$router.push('/message')
     }
   },
   created() {

+ 2 - 1
src/components/newLayout/modules/header.vue

@@ -39,7 +39,7 @@
       </el-dropdown-menu>
     </el-dropdown>-->
       <!--    <el-divider direction="vertical"></el-divider>-->
-
+      <el-button size="mint" type="text" style="margin-right: 20px;color: #FFFFFF" v-if="usertype == 1 || usertype == 0" @click="$router.push('/serviceDataScreen')">{{$t(`业务数据大屏`)}}</el-button>
       <svg
         t="1725853431060"
         class="icon"
@@ -142,6 +142,7 @@ export default {
       langusge: [],
       nowType: "ZH",
       languagename: "",
+      usertype : JSON.parse(sessionStorage.getItem('active_account')).usertype
     };
   },
   computed: {