瀏覽代碼

报告可视化

zhuliu 1 年之前
父節點
當前提交
d7ccf8f5d0
共有 2 個文件被更改,包括 7 次插入6 次删除
  1. 1 1
      src/views/home/components/carousel.vue
  2. 6 5
      src/views/home/components/echarts/components/report.vue

+ 1 - 1
src/views/home/components/carousel.vue

@@ -31,7 +31,7 @@ export default {
   },
   },
   methods: {
   methods: {
     getHeight(){
     getHeight(){
-      var offsetWidth = document.body.clientWidth
+      var offsetWidth = document.body.clientWidth < 1200?1200:document.body.clientWidth
       this.height = (5 / 16) * offsetWidth
       this.height = (5 / 16) * offsetWidth
     }
     }
   },
   },

+ 6 - 5
src/views/home/components/echarts/components/report.vue

@@ -31,8 +31,8 @@ export default {
     }
     }
   },
   },
   created() {},
   created() {},
-  mounted() {
-    this.init()
+  async mounted() {
+    await this.init()
   },
   },
   methods: {
   methods: {
     handleSizeChange(){
     handleSizeChange(){
@@ -43,8 +43,6 @@ export default {
     async init(){
     async init(){
       if(this.reportType && this.reportType.length>0){
       if(this.reportType && this.reportType.length>0){
         let params = {
         let params = {
-          current:1,
-          size:999,//分页信息
           searchQuery: '',//检索条件
           searchQuery: '',//检索条件
           groupBy: 'reportTypeName',//分组信息
           groupBy: 'reportTypeName',//分组信息
         }
         }
@@ -58,6 +56,9 @@ export default {
           })
           })
         
         
         this.reportType.forEach((item,index) => {
         this.reportType.forEach((item,index) => {
+          if(item.value == 6){
+            return
+          }
           var obj = data.find(i=>{
           var obj = data.find(i=>{
             return i.value == item.value
             return i.value == item.value
           })
           })
@@ -67,7 +68,7 @@ export default {
           }else{
           }else{
             this.reportData.count.push(0)
             this.reportData.count.push(0)
           }
           }
-        });
+        })
         this.initChart()
         this.initChart()
       }
       }
     },
     },