From 55e1ca6bccbee868b10fa9096f2f56704928461c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 28 四月 2023 15:07:22 +0800
Subject: [PATCH] 1.提交

---
 src/views/kb/cgdd.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/kb/cgdd.vue b/src/views/kb/cgdd.vue
index 211eafb..6450be2 100644
--- a/src/views/kb/cgdd.vue
+++ b/src/views/kb/cgdd.vue
@@ -137,7 +137,8 @@
                     width="114"
                   >
                     <template slot-scope="{row}">
-                      <div v-if="row.quantity1">{{ parseFloat(row.quantity1) }}</div>
+                      <!--                      <div v-if="row.quantity">{{ Math.floor(row.quantity*0.67) }}</div>-->
+                      <div v-if="row.quantity">{{ Math.round( row.quantity*0.67) }}</div>
                       <div v-else>0</div>
                     </template>
                   </el-table-column>
@@ -146,7 +147,8 @@
                     width="114"
                   >
                     <template slot-scope="{row}">
-                      <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>
+                      <!--                      <div v-if="row.quantity- row.quantity1">{{ parseFloat(row.quantity - row.quantity1) }}</div>-->
+                      <div v-if="row.quantity">{{ Math.ceil(row.quantity*0.33) }}</div>
                       <div v-else>0</div>
                     </template>
                   </el-table-column>
@@ -363,13 +365,13 @@
             divData.scrollTop = 0
             PurchaseRight().then(res => {
               this.tableDataRank = res.data
-              if (this.tableDataRank.length > 21) {
+              if (this.tableDataRank.length > 23) {
                 clearInterval(this.PurchaseRight)
                 this.getPurchaseRight()
               }
             })
           }
-        }, this.tableDataRank.length <= 21 ? 1000 * 3 : 100)
+        }, this.tableDataRank.length <= 23 ? 1000 * 3 : 100)
       })
     },
     tableRowClassName({ row, rowIndex }) {

--
Gitblit v1.9.3