From 192d1bcd8e1e4dc1295d63bf9d6618891b714582 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期三, 23 八月 2023 17:18:47 +0800
Subject: [PATCH] 12adsa

---
 screen_standard/src/views/index.vue |   44 +++++++++++++++++++++++++-------------------
 1 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/screen_standard/src/views/index.vue b/screen_standard/src/views/index.vue
index 7b7a115..98a72b4 100644
--- a/screen_standard/src/views/index.vue
+++ b/screen_standard/src/views/index.vue
@@ -54,7 +54,7 @@
                 <div class="scroll_item_row">{{ item.materialName }}</div>
                 <div class="scroll_item_row">{{ item.materialCode }}</div>
                 <div class="scroll_item_row">{{ item.num }}</div>
-                <div class="scroll_item_row">
+                <div class="scroll_item_row" style="text-align: left;">
                   <el-tooltip v-for="(child, i) in item.procedureList" :key="i" effect="dark"
                     :content="'宸叉姤宸ヨ壇鍝佹暟' + child.doneNum + '锛涘伐搴忚鍒掓暟' + child.planNum" placement="top">
                     <div class="scroll_item_row_item" @click="jump(child.procedureId, child.procedureName)">
@@ -137,8 +137,8 @@
                 <div v-for="(item, index) in data.log" :key="index"
                   :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
                   <div class="scroll_item_row">{{ item.userName }}</div>
+                  <div class="scroll_item_row">{{ item.materialName }}</div>
                   <div class="scroll_item_row">{{ item.procedureName }}</div>
-                  <div class="scroll_item_row">{{ item.materialCode }}</div>
                   <div class="scroll_item_row">{{ dateToSub(item.createTime) }}</div>
                   <div class="scroll_item_row">{{ item.qualifiedNum || 0 }}</div>
                   <div class="scroll_item_row">{{ item.unqualifiedNum || 0 }}</div>
@@ -170,7 +170,7 @@
         </div>
       </div>
       <!-- 璁惧宸℃璁板綍 -->
-      <div class="content_right_bottom">
+      <div class="content_right_bottom" ref="bottom1">
         <div class="content_right_bottom_head">
           <span>璁惧宸℃璁板綍</span>
         </div>
@@ -187,7 +187,10 @@
                 :class="index % 2 == 0 ? 'scroll_item scroll_item_bg1' : 'scroll_item scroll_item_bg2'">
                 <div class="scroll_item_row">{{ dateToSub(item.checkdate) }}</div>
                 <div class="scroll_item_row">{{ item.deviceName }}</div>
-                <div class="scroll_item_row">{{ item.status == 0 ? '鍚堟牸' : '涓嶅悎鏍�' }}</div>
+                <div class="scroll_item_row">
+                  <span v-if="item.status == 0">姝e父</span>
+                  <span v-else style="color: #F84F26">寮傚父</span>
+                </div>
                 <div class="scroll_item_row">{{ item.userName }}</div>
               </div>
             </div>
@@ -229,11 +232,13 @@
 let timer3 = ref(null)
 let timer4 = ref(null)
 let timer5 = ref(null)
+let bottomAuthHeight = 284;
 let scrollContainer = ref(null)
 let scrollContainer1 = ref(null)
 let scrollContainer2 = ref(null)
 let scrollContainer3 = ref(null)
 let scrollContainer4 = ref(null)
+let bottom1 = ref(null)
 let cate = ref([
   {
     name: '鎴愬搧璁″垝杩涘害',
@@ -274,6 +279,7 @@
 start1()
 
 const init = () => {
+  setBottomHeight();
   // 褰撴棩鍛樺伐浜ч噺TOP10
   getTop(companyId.value, departId.value)
     .then(res => {
@@ -370,6 +376,11 @@
     .then(res => {
       enterprise.setNum(res)
     })
+}
+function  setBottomHeight(){
+  const pageHeight = window.innerHeight;
+  bottomAuthHeight = pageHeight -700;
+  // bottom1.style.height=bottomAuthHeight;
 }
 
 /**
@@ -542,14 +553,6 @@
   }
   option && myChart.setOption(option);
 }
-
-// onBeforeUnmount(()=>{
-//     clearTimeout(timer.value)
-//     clearTimeout(timer1.value)
-//     clearTimeout(timer2.value)
-//     clearTimeout(timer3.value)
-//     clearTimeout(timer4.value)
-// })
 onUnmounted(() => {
   clearTimeout(timer.value)
   clearTimeout(timer1.value)
@@ -804,7 +807,8 @@
     margin-right: 20px;
     .content_left_item1 {
       width: 100%;
-      height: 284px;
+      height:  calc(100vh - 700px);
+    //  height: 284px;
       margin-bottom: 20px;
       .content_left_item1_head {
         background: url('@/assets/img/home_title_short@2x.png');
@@ -1079,7 +1083,7 @@
             color: #01D9FE;
 
             &:nth-child(5) {
-              flex: 2.7;
+              flex: 3;
               
             }
           }
@@ -1120,7 +1124,7 @@
 
                 &:nth-child(5) {
                   flex: 3;
-                  
+                  justify-content: start;
                 }
                 .scroll_item_row_item {
                   margin-top: -11px;
@@ -1276,7 +1280,8 @@
 
     .content_center_bottom {
       width: 100%;
-      height: 284px;
+     // height: 284px;
+      height:  calc(100vh - 700px);
       flex: 2;
       .content_center_bottom_head {
         width: 100%;
@@ -1417,8 +1422,8 @@
           left: 50%;
           transform: translate(-50%, -50%);
           z-index: 999;
-          width: 114px;
-          height: 114px;
+          width: 100px;
+          height: 100px;
           border-radius: 50%;
           border: 2px dashed #01D9FE;
           display: flex;
@@ -1460,8 +1465,9 @@
 
     .content_right_bottom {
       width: 100%;
-      height: 284px;
+     // height: 284px;
 
+      height:  calc(100vh - 700px);
       .content_right_bottom_head {
         width: 100%;
         height: 38px;

--
Gitblit v1.9.3