liyongli 2 ani în urmă
părinte
comite
81cf16f3d2
1 a modificat fișierele cu 12 adăugiri și 15 ștergeri
  1. 12 15
      src/views/report/Traditional/index.vue

+ 12 - 15
src/views/report/Traditional/index.vue

@@ -34,10 +34,12 @@
           >
             {{ v.rank }}
           </van-col>
-          <van-col span="5" :class="{ td: true }">
-            <div :style="{fontSize: fontSize*0.7+'px',lineHeight: '3.6em'}">
-              {{ v.channelname }}
-            </div>
+          <van-col
+            span="5"
+            :class="{ td: true }"
+            :style="{ fontSize: fontSize * 0.7 + 'px', lineHeight: '3.6em' }"
+          >
+            {{ v.channelname }}
           </van-col>
           <van-col span="5" :class="{ td: true }">
             {{ formatNum(v.occrate, 2) }}%
@@ -57,12 +59,7 @@
               :class="{ rise: v.user_duration_change === '上升' }"
             />
           </van-col>
-          <van-col
-            span="4"
-            class="td"
-            style="cursor: pointer"
-            
-          >
+          <van-col span="4" class="td" style="cursor: pointer">
             更多
             <van-icon name="arrow" />
           </van-col>
@@ -339,11 +336,12 @@ export default {
         key.push(v.dt);
         value.push(val);
       });
-      console.log(this.ratios.user_count_compare)
       this.dayEcharts.setOption({
         title: {
           text: "用户趋势",
-          subtext: this.ratios.user_count_compare ? this.ratios.user_count_compare :"",
+          subtext: this.ratios.user_count_compare
+            ? this.ratios.user_count_compare
+            : "",
           textStyle: {
             fontSize: 14,
           },
@@ -441,7 +439,7 @@ export default {
                 label: {
                   show: true,
                   formatter: function (params) {
-                    return params.value + "%";
+                    return params.value.toFixed(0) + "%";
                   },
                 },
                 itemStyle: {
@@ -485,10 +483,9 @@ export default {
 .td {
   text-align: center;
   line-height: 2.5em;
-  white-space: nowrap;
   overflow: hidden;
+  white-space: nowrap;
   text-overflow: ellipsis;
-  vertical-align: middle;
 }
 .td2 {
   line-height: 1.5em;