From 46a177111a14de992ccb8fb9ba74dd14ad4e2eec Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 15 十月 2024 01:55:25 +0800
Subject: [PATCH] 动态列自动刷新+点位在线增加未知状态

---
 src/views/system/monitor/video/index.vue |   41 ++++++++++++++++++++++-------------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diff --git a/src/views/system/monitor/video/index.vue b/src/views/system/monitor/video/index.vue
index da9caf1..bcf28ac 100644
--- a/src/views/system/monitor/video/index.vue
+++ b/src/views/system/monitor/video/index.vue
@@ -37,6 +37,10 @@
               <p>寮傚父鏁�</p>
             </div>
             <div class="dashboard-item">
+              <h3 style="color: #4f4f4f">{{ count.unknownNumbers }}</h3>
+              <p>鏈煡鏁�</p>
+            </div>
+            <div class="dashboard-item">
               <h3>{{ count.viewsPercentage }}%</h3>
               <p>璁惧杩愯鐜�</p>
             </div>
@@ -109,7 +113,7 @@
                   placeholder="閫夋嫨鏈�">
                 </el-date-picker>
               </el-form-item>
-              <el-form-item label="鍖哄幙" prop="deptIds" required>
+              <el-form-item label="鍖哄幙" prop="deptIds">
                 <el-select v-model="exportForm.deptIds" multiple clearable>
                   <el-option
                     v-for="dept in deptList"
@@ -205,18 +209,18 @@
           <div>{{ (scope.row.videoLoseTime * 60).toFixed(2) + '鍒嗛挓' }}</div>
         </template>
       </el-table-column>
-      <el-table-column label="OSD鏍囨敞" align="center" prop="OSD" width="180" v-if="columns[10].visible">
+      <el-table-column label="OSD鏍囨敞" align="center" prop="osd" width="180" v-if="columns[10].visible">
         <template slot-scope="scope">
-          <div v-if="scope.row.OSD === 1">姝e父</div>
-          <div v-else-if="scope.row.OSD === 0">鏈煡</div>
-          <div v-else-if="scope.row.OSD === -1">寮傚父</div>
+          <div v-if="scope.row.osd ==true">姝e父</div>
+          <div v-else-if="scope.row.osd == false">寮傚父</div>
+          <div v-else-if="scope.row.osd == null">鏈煡</div>
         </template>
       </el-table-column>
-      <el-table-column label="OSD鏃堕棿" align="center" prop="OSDTime" width="180" v-if="columns[11].visible">
+      <el-table-column label="OSD鏃堕棿" align="center" prop="osdtime" width="180" v-if="columns[11].visible">
         <template slot-scope="scope">
-          <div v-if="scope.row.OSDTime === 1">姝e父</div>
-          <div v-else-if="scope.row.OSDTime === 0">鏈煡</div>
-          <div v-else-if="scope.row.OSDTime === -1">寮傚父</div>
+          <div v-if="scope.row.osdtime ==true">姝e父</div>
+          <div v-else-if="scope.row.osdtime == false">寮傚父</div>
+          <div v-else-if="scope.row.osdtime == null">鏈煡</div>
         </template>
       </el-table-column>
       <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" fixed="right">
@@ -254,8 +258,9 @@
               }}
             </el-form-item>
             <el-form-item label="璁惧鐘舵�侊細">
-              <div v-if="form.onState === 0">绂荤嚎</div>
+              <div v-if="form.onState === 0">鏈煡</div>
               <div v-else-if="form.onState === 1">鍦ㄧ嚎</div>
+              <div v-else-if="form.onState === -1">绂荤嚎</div>
             </el-form-item>
             <el-form-item label="绠$悊鍗曚綅锛�">{{ form.unitName }}</el-form-item>
           </el-col>
@@ -288,9 +293,9 @@
               <div v-else-if="form.videoComplete === -1">寮傚父</div>
             </el-form-item>
             <el-form-item label="OSD鏍囨敞锛�">
-              <div v-if="form.OSD === 1">姝e父</div>
-              <div v-else-if="form.OSD === 0">鏈煡</div>
-              <div v-else-if="form.OSD === -1">寮傚父</div>
+              <div v-if="form.osd ==true">姝e父</div>
+              <div v-else-if="form.osd ==false">寮傚父</div>
+              <div v-else-if="form.osd ==null">鏈煡</div>
             </el-form-item>
           </el-col>
           <el-col :span="12">
@@ -299,9 +304,9 @@
             </el-form-item>
             <el-form-item label="褰曞儚缂哄け鏃堕暱锛�">{{ (form.videoLoseTime * 60).toFixed(2) + '鍒嗛挓' }}</el-form-item>
             <el-form-item label="OSD鏃堕棿锛�">
-              <div v-if="form.OSDTime === 1">姝e父</div>
-              <div v-else-if="form.OSDTime === 0">鏈煡</div>
-              <div v-else-if="form.OSDTime === -1">寮傚父</div>
+              <div v-if="form.osdtime ==true">姝e父</div>
+              <div v-else-if="form.osdtime ==false">寮傚父</div>
+              <div v-else-if="form.osdtime ==null">鏈煡</div>
             </el-form-item>
           </el-col>
         </el-row>
@@ -342,6 +347,7 @@
         totalPosts: 0,
         totalMembers: 0,
         postsPercentage: 0,
+        unknownNumbers: 0,
         totalViews: 0,
         noStore: 0,
         partStore: 0,
@@ -395,9 +401,6 @@
       exportRules: {
         month: [
           {required: true, message: "鏃堕棿涓嶈兘涓虹┖", trigger: "blur"}
-        ],
-        deptIds: [
-          {required: true, message: "閮ㄩ棬涓嶈兘涓虹┖", trigger: "blur"}
         ],
         dataType: [
           {required: true, message: "鏁版嵁绫诲瀷涓嶈兘涓虹┖", trigger: "blur"}

--
Gitblit v1.8.0