From 908ce43ff21c2068ef5148b0a417423c8ed9eae5 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 12 三月 2025 16:37:32 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit

---
 screen/src/views/TaskEfficiency.vue |  130 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 119 insertions(+), 11 deletions(-)

diff --git a/screen/src/views/TaskEfficiency.vue b/screen/src/views/TaskEfficiency.vue
index 3189033..2069758 100644
--- a/screen/src/views/TaskEfficiency.vue
+++ b/screen/src/views/TaskEfficiency.vue
@@ -65,7 +65,7 @@
             <div class="list one-swiper">
               <div class="swiper-wrapper">
                 <div class="line one-swiper-slide swiper-slide" v-for="item, i in dataList2" :key="i">
-                  <div class="top" :class="{top3: i < 3}"><span v-if="i < 3">top</span>{{ i + 1 }}</div>
+                  <div class="top" :class="{ top3: i < 3 }"><span v-if="i < 3">top</span>{{ i + 1 }}</div>
                   <div class="id_card">{{ item.platformName }}</div>
                   <div class="wrap">
                     <ChargeRate :rate="item.rate" />
@@ -99,7 +99,7 @@
               <div class="item">
                 <div class="name">鏈堝彴鏁伴噺</div>
                 <div v-if="data4.platformTotal || data4.platformTotal == 0" class="nums">
-                  <div class="num" v-for="n, i in formatNum3(data4.platformTotal) " :key="i">{{ n }}</div>
+                  <div class="num" v-for="n, i in formatNum3(data4.platformTotal)" :key="i">{{ n }}</div>
                 </div>
               </div>
               <div class="item">
@@ -162,13 +162,32 @@
                 <div class="la">棰勮瀹屾垚锛�</div>
                 <div class="val">{{ workModalParam.finishTimeStr }}</div>
               </div>
+              <div class="priview" @click="showJk = true">鏌ョ湅瀹炴椂鐢婚潰</div>
             </div>
             <div class="modal_bg" v-if="showWorkModal" @click="closeModal"></div>
+            <div v-show="showJk" class="camera_wrap">
+              <img class="bg" src="@/assets/images/task/jiankong_bg2@2x.png" alt="">
+              <div class="head">
+                <div class="left">
+                  <img class="icon" src="@/assets/images/task/ic_yuetai@2x.png" alt="">
+                  <div class="name">{{ workModalParam.platformName }}</div>
+                  <span v-if="workModalParam.carNo">{{ workModalParam.carNo }} | {{ workModalParam.workType == 0 ? '鍗歌揣' : '瑁呰揣' }}</span>
+                </div>
+                <div class="right">
+                  <span>{{ workModalParam.statusTemp }} <span v-if="workModalParam.status == 0"> | 棰勮瀹屾垚鏃堕棿锛歿{ workModalParam.finishTimeStr }}</span></span>
+                  <img @click="closeVideo" class="icon" src="@/assets/images/task/ic_close@2x.png" alt="">
+                </div>
+              </div>
+              <div class="content">
+                <Video v-if="showJk && workModalParam && workModalParam.deviceId" :href="workModalParam.videoPluginUrl"
+                  :indexCode="workModalParam.deviceId" />
+              </div>
+            </div>
           </div>
           <div class="center_box_two">
-            <div v-if="data4.videoIndexCodes && data4.videoIndexCodes.length > 0" class="videos">
+            <!-- <div v-if="data4.videoIndexCodes && data4.videoIndexCodes.length > 0" class="videos">
               <Videos :href="data4.videoPluginUrl" :indexCodes="data4.videoIndexCodes" />
-            </div>
+            </div> -->
             <div class="list">
               <div class="line header">
                 <div>鏈堝彴鍚嶇О</div>
@@ -309,6 +328,7 @@
 import 'swiper/css/swiper.min.css'
 import Swiper from 'swiper'
 import Videos from './videoUrl/Videos.vue'
+import Video from './videoUrl/Video.vue'
 import {
   cnplatformGroupFinish,
   cnplatformDuration,
@@ -704,12 +724,12 @@
     dataList2.value = result.map(item => {
       if (item.workTotalTime) {
         if (item.workTotalTime > 60) {
-          item.workTotalTimeT = (item.workTotalTime / 60).toFixed(0) + '灏忔椂' + item.workTotalTime % 60 + '鍒嗛挓'
+          item.workTotalTimeT = Math.floor(item.workTotalTime / 60) + '灏忔椂' + item.workTotalTime % 60 + '鍒嗛挓'
         } else {
           item.workTotalTimeT = item.workTotalTime + '鍒嗛挓'
         }
       }
-      item.rate = ((item.workTotalTime / count) * 30).toFixed(0)
+      item.rate = Math.floor((item.workTotalTime / count) * 30)
       return item
     })
   })
@@ -791,6 +811,7 @@
 }
 
 const showWorkModal = ref(false)
+const showJk = ref(false)
 const workModalParam = ref({})
 // point_icon
 const pointList = [
@@ -808,11 +829,15 @@
   { left: 850, top: 60, left2: 520, top2: 190, name: '甯傚叕鍙告湀鍙�' },
 
 ]
+const closeVideo = () => {
+  workModalParam.value = {}
+  showJk.value = false
+}
 
 const platformClick = (val) => {
   const index = pointList.findIndex(i => i.name == val.platformName)
   workModalParam.value = { ...val, ...pointList[index], index: pointList }
-  if(workModalParam.value.workTime){
+  if (workModalParam.value.workTime) {
     workModalParam.value.workTime = workModalParam.value.workTime.replaceAll('m', '鍒嗛挓')
     workModalParam.value.workTime = workModalParam.value.workTime.replaceAll('h', '灏忔椂')
   }
@@ -1021,9 +1046,11 @@
             box-shadow: inset 0px 0px 3px 0px #01D9FE;
             margin-right: 10px;
           }
-          .top3{
+
+          .top3 {
             box-shadow: inset 0px 0px 3px 0px #FEAF01;
           }
+
           .one-swiper-slide {
             height: 40px !important;
           }
@@ -1041,11 +1068,14 @@
 
           .num {
             font-weight: 500;
-            width: 82px;
+            width: 88px;
             text-align: right;
             font-size: 13px;
             color: #DBEAEA;
             margin-left: 2px;
+            overflow: hidden;
+            white-space: nowrap;
+            text-overflow: ellipsis;
           }
 
           .wrap {
@@ -1125,6 +1155,74 @@
       align-items: center;
       position: relative;
 
+      .camera_wrap {
+        position: absolute;
+        top: 0;
+        left: 50%;
+        transform: translate(-50%, 0);
+        width: 672px;
+        height: 568px;
+        z-index: 999;
+        font-size: 14px;
+        color: #D2E0FF;
+        display: flex;
+        flex-direction: column;
+        .content {
+          flex: 1;
+          /* height: calc( 100% - 30px ); */
+          padding: 16px 20px 32px 20px;
+
+          .video {
+            width: 100%;
+            height: 100%;
+          }
+        }
+
+        .head {
+          height: 56px;
+          display: flex;
+          align-items: center;
+          justify-content: space-between;
+          padding: 0 30px;
+
+          .right {
+            display: flex;
+            align-items: center;
+
+            .icon {
+              width: 24px;
+              margin-left: 20px;
+              cursor: pointer;
+            }
+          }
+
+          .left {
+            display: flex;
+            align-items: center;
+
+            .name {
+              font-weight: bold;
+              font-size: 16px;
+              color: #01D9FE;
+              margin-right: 20px;
+            }
+
+            .icon {
+              width: 16px;
+              margin-right: 8px;
+            }
+          }
+        }
+
+        .bg {
+          position: absolute;
+          left: 0;
+          top: 0;
+          width: 100%;
+          height: 100%;
+        }
+      }
+
       .point_icon {
         position: absolute;
         left: 850px;
@@ -1153,6 +1251,16 @@
         left: 850px;
         top: 60px;
         z-index: 99999999;
+
+        .priview {
+          position: absolute;
+          bottom: 24px;
+          right: 40px;
+          font-size: 12px;
+          color: #01D9FE;
+          cursor: pointer;
+        }
+
         .head {
           display: flex;
           justify-content: space-between;
@@ -1215,8 +1323,8 @@
         position: fixed;
         left: 0;
         top: 0;
-        width: 100vw;
-        height: 100vh;
+        width: 100%;
+        height: 100%;
         /* background-color: rgba(0,0,0,.1); */
       }
     }

--
Gitblit v1.9.3