cyy 3 лет назад
Родитель
Сommit
f47751ef5f
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      src/views/crm/tongji.vue

+ 19 - 0
src/views/crm/tongji.vue

@@ -175,6 +175,21 @@
       personPerformance,
       personPerformanceMonth
     },
+    created() {
+      if (screenfull.isEnabled && !screenfull.isFullscreen) {
+        this.allView()
+      }
+
+      // this.refreshAll(this.allDate)
+
+      // if (this.timer){
+      //   clearInterval(this.timer)
+      // }
+
+      // this.timer = setInterval(() => {
+      //   this.refreshAll(this.allDate)
+      // },600000)
+    },
     mounted() {
       //权限
       // this.authorityJudgment()
@@ -182,6 +197,10 @@
       this.Date()
     },
     methods: {
+      allView() {
+        // 默认显示全屏
+        screenfull.request()
+      },
       Date() {
         const nowDate = new Date();
         const date = {