liyongli 1 anno fa
parent
commit
586045ed0e
1 ha cambiato i file con 12 aggiunte e 10 eliminazioni
  1. 12 10
      src/views/UnionList/index.vue

+ 12 - 10
src/views/UnionList/index.vue

@@ -86,8 +86,8 @@
             >
               <template #default="scope">
                 <countTo
-                  :startVal="(scope.row.uv || 0) * 0.8"
-                  :endVal="scope.row.uv || 0"
+                  :startVal="(scope.row.pv || 0) * 0.8"
+                  :endVal="scope.row.pv || 0"
                 ></countTo>
               </template>
             </el-table-column>
@@ -131,7 +131,7 @@
         </el-tab-pane>
         <el-tab-pane label="整月分析" name="second">
           <el-row :gutter="10">
-            <el-col :span="span">
+            <el-col :span="span" v-if="table.all && table.all.length > 0">
               <el-table
                 :data="table.all"
                 style="width: 100%"
@@ -166,7 +166,7 @@
                 </el-table-column>
               </el-table>
             </el-col>
-            <el-col :span="span">
+            <el-col :span="span" v-if="table.web && table.web.length > 0">
               <el-table
                 :data="table.web"
                 style="width: 100%"
@@ -179,7 +179,7 @@
                   prop="title"
                   header-align="center"
                   align="center"
-                  label="当日访问最高稿件标题"
+                  label="分享页访问最高稿件标题"
                   show-overflow-tooltip
                   :cell-style="{}"
                 >
@@ -201,7 +201,7 @@
                 </el-table-column>
               </el-table>
             </el-col>
-            <el-col :span="span">
+            <el-col :span="span" v-if="table.client && table.client.length > 0">
               <el-table
                 :data="table.client"
                 style="width: 100%"
@@ -214,7 +214,7 @@
                   prop="title"
                   header-align="center"
                   align="center"
-                  label="当日访问最高稿件标题"
+                  label="客户端直接打开页访问最高稿件标题"
                   show-overflow-tooltip
                   :cell-style="{}"
                 >
@@ -313,7 +313,7 @@ export default {
               new Date(Date.now() - 86400000)
             ]
           };
-            this.onSubmit();
+          this.onSubmit();
         }
       });
     });
@@ -349,7 +349,7 @@ export default {
         this.table.all && this.table.all.length && n++;
         this.table.web && this.table.web.length && n++;
         this.table.client && this.table.client.length && n++;
-        this.span = 24/(n || 1);
+        this.span = 24 / (n || 1);
       });
     },
     disabledDate(time) {
@@ -368,7 +368,9 @@ export default {
       return [year, month, day].join('-');
     },
     onExport() {
-      window.open = `http://172.16.101.20:8762/cxzx-program/union/export?start=${this.lastParams.start}&end=${this.lastParams.end}&app=${this.lastParams.app}`
+      window.open(
+        `http://172.16.101.20:8762/cxzx-program/union/export?start=${this.lastParams.start}&end=${this.lastParams.end}&app=${this.lastParams.app}`
+      );
     }
   },
   components: {