소스 검색

业务数据大屏显示优化

qymljy 1 년 전
부모
커밋
75ca36921a
3개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 6
      src/HManagement/serviceDataScreen/index.vue
  2. 1 1
      src/store/index.js
  3. 1 0
      src/views/login/login.vue

+ 3 - 6
src/HManagement/serviceDataScreen/index.vue

@@ -514,12 +514,9 @@ export default {
       this.dialogVisible = true
     },
     handleBeforeunload(){
-      setTimeout(()=>{
-        console.log('退出全屏刷新页面******')
-        this.$refs.fullRef.backFullscreen()
-        // this.$router.push('/message')
-      },1000)
-
+      console.log('退出全屏刷新页面******')
+      sessionStorage.setItem('isFull','0')
+      this.$refs.fullRef.backFullscreen()
     }
   },
   created() {

+ 1 - 1
src/store/index.js

@@ -103,7 +103,7 @@ export default new Vuex.Store({
       state.sys_modules = data
     },
     setAppMenu (state,data) {
-      if (window.location.hash.substring(1) === '/serviceDataScreen'){
+      if (window.location.hash.substring(1) === '/serviceDataScreen'  && sessionStorage.getItem('isFull') != 1){
         router.push('/message')
       }else {
         state.menuApp = data

+ 1 - 0
src/views/login/login.vue

@@ -325,6 +325,7 @@ export default {
             let usertype = JSON.parse(sessionStorage.getItem('active_account')).usertype
             let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
             if ((usertype == 1 || usertype == 0) && (siteid == 'HY' || siteid == 'YOSTEST1') ){
+              sessionStorage.setItem('isFull','1')
               this.$router.push('/serviceDataScreen')
             }else {
               this.$router.push({ path: "/main" });