From 482efd9ee971fe7d799a015dc288340c85b8805c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 29 九月 2022 11:24:17 +0800
Subject: [PATCH] 1.新增  提交类按钮只能提交一次的控制2.关联类的按钮  接口返回成功后显示对话框

---
 src/views/kb/ckgl.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/views/kb/ckgl.vue b/src/views/kb/ckgl.vue
index 5b1fe05..91121aa 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"
@@ -291,11 +291,12 @@
         <div class="kb_right kb_pd10">
           <div class="kb_right_top kb_pd10">
             <div class="kb_right_top_content">
-              <div class="content_head kb_title_text" style="margin-top: 30px;">浜у搧搴撳瓨閲忔帓琛孴op5</div>
+              <div class="content_head kb_title_text" style="margin-top: 30px;">鍗婃垚鍝併�佷骇鍝佸簱瀛橀噺鎺掕Top5</div>
               <div class="content_body" style="height:402px;">
                 <div id="bar03" style="width: 100%;height:100%" />
               </div>
-              <div class="content_head kb_title_text" style="margin-top: 12px">鍗婃垚鍝佸簱瀛橀噺鎺掕Top5</div>
+              <!--              <div class="content_head kb_title_text" style="margin-top: 12px">鍗婃垚鍝佸簱瀛橀噺鎺掕Top5</div>-->
+              <div class="content_head kb_title_text" style="margin-top: 12px">鍘熸潗鏂欏簱瀛橀噺鎺掕Top5</div>
               <div class="content_body">
                 <div id="bar04" style="width: 100%;height:100%" />
               </div>
@@ -330,6 +331,9 @@
       tableDataTop: [],
       tableDataBottom: [],
 
+      number1: '',
+      number2: '',
+
       MarqueeTipsContent: '', // 鍏憡
       speed: 100// 鍏憡鎾斁鐨勯�熷害
     }
@@ -357,7 +361,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 +374,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 +388,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 +401,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 +513,7 @@
           //font-size: 18px;
           margin-bottom: 10px;
           margin-top: -10px;
+          display: flex;
           color: #00ffff;
 
         }

--
Gitblit v1.9.3