liyongli il y a 2 ans
Parent
commit
e8953b68fa
2 fichiers modifiés avec 31 ajouts et 3 suppressions
  1. 2 2
      src/views/Channle/index.vue
  2. 29 1
      src/views/LiveRoom/index.vue

+ 2 - 2
src/views/Channle/index.vue

@@ -196,14 +196,14 @@
           </template>
         </el-table-column>
         <el-table-column
-          prop="distribution"
+          prop="duration"
           header-align="center"
           align="center"
           label="平均使用时长"
           show-overflow-tooltip
         >
           <template #default="scope">
-            {{ timeFormat(scope.row.distribution) }}
+            {{ timeFormat(scope.row.duration) }}
           </template>
         </el-table-column>
       </el-table>

+ 29 - 1
src/views/LiveRoom/index.vue

@@ -187,7 +187,21 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="直播时长"
+          label="观看用户数"
+          header-align="center"
+          align="center"
+          prop="userCount"
+        >
+          <template #default="scope">
+            <countTo
+              :startVal="scope.row.userCount || 0"
+              :endVal="scope.row.userCount || 0"
+              :duration="100"
+            ></countTo>
+          </template>
+        </el-table-column>
+        <el-table-column
+          label="累计观看时长"
           header-align="center"
           align="center"
           prop="duration"
@@ -196,6 +210,20 @@
             {{ timeFormat(scope.row.duration) }}
           </template>
         </el-table-column>
+        <el-table-column
+          label="累计观看次数"
+          header-align="center"
+          align="center"
+          prop="pv"
+        >
+          <template #default="scope">   
+            <countTo
+              :startVal="scope.row.pv || 0"
+              :endVal="scope.row.pv || 0"
+              :duration="100"
+            ></countTo>
+          </template>
+        </el-table-column>
         <el-table-column
           label="评论数"
           header-align="center"