From dc1226c67b9b34b602254ed3ca3de0e5b272cffa Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 22 九月 2022 17:49:06 +0800
Subject: [PATCH] 1.不良明细报表、品质异常排行报表、维修明细报表开发完成

---
 src/views/kb/ckgl.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/kb/ckgl.vue b/src/views/kb/ckgl.vue
index 5b1fe05..219485c 100644
--- a/src/views/kb/ckgl.vue
+++ b/src/views/kb/ckgl.vue
@@ -21,7 +21,7 @@
           <!-- 1-->
           <div class="kb_left_top kb_pd10">
             <div class="kb_left_top_block" style="margin-top: 10px">
-              <div class="headTitle kb_title_text">浜у搧寰呭叆搴�</div>
+              <div class="headTitle kb_title_text">浜у搧寰呭叆搴� <div style="margin-left: 30px">{{ number1 }} 鍗�</div></div>
               <div class="content">
                 <el-table
                   ref="tableDataTopRef"
@@ -151,7 +151,7 @@
               </div>
             </div>
             <div class="kb_left_top_block" style="margin-top: 25px">
-              <div class="headTitle kb_title_text">浜у搧寰呭彂璐�</div>
+              <div class="headTitle kb_title_text">浜у搧寰呭彂璐� <div style="margin-left: 30px">{{ number2 }} 鍗�</div></div>
               <div class="content">
                 <el-table
                   ref="tableDataBottomRef"
@@ -330,6 +330,9 @@
       tableDataTop: [],
       tableDataBottom: [],
 
+      number1: '',
+      number2: '',
+
       MarqueeTipsContent: '', // 鍏憡
       speed: 100// 鍏憡鎾斁鐨勯�熷害
     }
@@ -357,7 +360,7 @@
     getWareHouseTopLeftData() {
       WareHouseTopLeftData().then(res => {
         this.tableDataTop = res.data
-
+        this.number1 = this.tableDataTop.length
         const divData = this.$refs.tableDataTopRef.bodyWrapper
         // 鎷垮埌鍏冪礌鍚庯紝瀵瑰厓绱犺繘琛屽畾鏃跺鍔犺窛绂婚《閮ㄨ窛绂伙紝瀹炵幇婊氬姩鏁堟灉(姝ら厤缃负姣�100姣绉诲姩1鍍忕礌)
         const task = setInterval(() => {
@@ -370,6 +373,7 @@
             divData.scrollTop = 0
             WareHouseTopLeftData().then(res => {
               this.tableDataTop = res.data
+              this.number1 = this.tableDataTop.length
               if (this.tableDataTop.length > 9) {
                 clearInterval(task)
                 this.getWareHouseTopLeftData()
@@ -383,7 +387,7 @@
     getWareHouseTopBottomData() {
       WareHouseTopBottomData().then(res => {
         this.tableDataBottom = res.data
-
+        this.number2 = this.tableDataBottom.length
         const divData = this.$refs.tableDataBottomRef.bodyWrapper
         // 鎷垮埌鍏冪礌鍚庯紝瀵瑰厓绱犺繘琛屽畾鏃跺鍔犺窛绂婚《閮ㄨ窛绂伙紝瀹炵幇婊氬姩鏁堟灉(姝ら厤缃负姣�100姣绉诲姩1鍍忕礌)
         const task = setInterval(() => {
@@ -396,7 +400,7 @@
             divData.scrollTop = 0
             WareHouseTopBottomData().then(res => {
               this.tableDataBottom = res.data
-
+              this.number2 = this.tableDataBottom.length
               if (this.tableDataBottom.length > 10) {
                 clearInterval(task)
                 this.getWareHouseTopBottomData()
@@ -508,6 +512,7 @@
           //font-size: 18px;
           margin-bottom: 10px;
           margin-top: -10px;
+          display: flex;
           color: #00ffff;
 
         }

--
Gitblit v1.9.3