From dc4c6d96b425f294877e3265cb1628dd8b27ff5c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 11 三月 2025 19:57:07 +0800
Subject: [PATCH] 代码初始化
---
 screen/src/views/TaskEfficiency.vue |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/screen/src/views/TaskEfficiency.vue b/screen/src/views/TaskEfficiency.vue
index 3189033..f71d802 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">
@@ -166,9 +166,9 @@
             <div class="modal_bg" v-if="showWorkModal" @click="closeModal"></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>
@@ -704,12 +704,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
     })
   })
@@ -812,7 +812,7 @@
 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 +1021,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 +1043,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 {
@@ -1153,6 +1158,7 @@
         left: 850px;
         top: 60px;
         z-index: 99999999;
+
         .head {
           display: flex;
           justify-content: space-between;
--
Gitblit v1.9.3