From 4bcccb320474ec651a603c211afb98f0474258b3 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期六, 21 六月 2025 16:12:26 +0800
Subject: [PATCH] sql问题修复

---
 construction-data/src/components/datav/index.vue |   66 ++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 29 deletions(-)

diff --git a/construction-data/src/components/datav/index.vue b/construction-data/src/components/datav/index.vue
index 69a977f..250631f 100644
--- a/construction-data/src/components/datav/index.vue
+++ b/construction-data/src/components/datav/index.vue
@@ -75,14 +75,14 @@
               </el-row>
               <el-row type="flex" align="center" id="datav">
                 <dv-border-box-11  title="鎾澧�" class="pick-wall" >
-                  <el-row type="flex" align="center" justify="center" class="pick-wall-circle" >
-                    <el-col :span="1">
-                      <p class="pick-wall-tip"></p>
-                    </el-col>
-                    <el-col :span="22">
-                      <p>缁胯壊锛氫换鍔″凡瀹屾垚  榛勮壊锛氱瓑寰呬腑  绾㈣壊锛氭挱绉嶄腑</p>
-                    </el-col>
-                  </el-row>
+<!--                  <el-row type="flex" align="center" justify="center" class="pick-wall-circle" >-->
+<!--                    <el-col :span="1">-->
+<!--                      <p class="pick-wall-tip"></p>-->
+<!--                    </el-col>-->
+<!--                    <el-col :span="22">-->
+<!--                      <p>缁胯壊锛氫换鍔″凡瀹屾垚  榛勮壊锛氱瓑寰呬腑  绾㈣壊锛氭挱绉嶄腑</p>-->
+<!--                    </el-col>-->
+<!--                  </el-row>-->
                   <div class="pick-wall-box">
                     <el-col :span="6" v-for="(item, index) in seedBracket" :key="index" @click.native="lightClick(item)">
                       <div class="seed-bracket" :style="getLightStatus(item)" />
@@ -189,13 +189,12 @@
     }
   },
   created () {
-    //鑾峰彇褰撳墠鎵ц浠诲姟
-    this.getWaves()
-    //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭�
-    this.getSeedLoc()
-    //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯
-    this.getAllPlatforms()
+    let that = this
+    setInterval(() => {
+        that.refreshData()
+    }, 10000)
   },
+
   computed: {
     getLightStatus() {
       return (item)=> {
@@ -208,6 +207,14 @@
     }
   },
   methods: {
+    refreshData() {
+      //鑾峰彇褰撳墠鎵ц浠诲姟
+      this.getWaves()
+      //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭�
+      this.getSeedLoc()
+      //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯
+      this.getAllPlatforms()
+    },
     printPage() {
       // let element = document.querySelector('#datav');
       // let el = this.$refs.datav
@@ -228,6 +235,10 @@
     },
     //鎷嶇伅瀹瑰櫒娴佸姩
     lightClick(item) {
+      if (item.platformId == null || item.platformId == undefined || item.platformId == '') {
+        this.$message.error('璇锋墦鍗拌鍗曟槑缁嗭紝骞堕�夋嫨鐩爣闆嗚揣鍖猴紒锛�')
+        return
+      }
       this.slapLight(item)
     },
     //璁㈠崟鍏ュ簱闆嗚揣鍖�,骞舵墦鍗板崟鎹�
@@ -242,6 +253,7 @@
       // eslint-disable-next-line no-undef
       $ajax.post('/api/bind/shipping/platform', {orderId: order.id, waveId: order.waveId, platformId: plat.id}).then(response => {
         if (response.code === 200) {
+          that.fetch()
           //闅愯棌鍙戣揣鍖�,鎵ц鎵撳嵃
         } else {
           this.$message.error(response.msg)
@@ -408,8 +420,6 @@
 </script>
 
 <style lang="less">
-
-
   @media screen and (max-width: 1920px){
     #data-view {
       width: 100%;
@@ -429,14 +439,10 @@
         margin: 5px 0;
       }
 
-
-
       .pick-order-detl {
         padding: 0 15px;
-
         .detl-box-border {
-          height: 59vh;
-
+          height: 55vh;
           .detl-box-padding {
             height: 65px
           }
@@ -447,10 +453,8 @@
         text-align: center;
         color: white;
         margin: 20vh;
-
         .container {
           padding: 45px 60px;
-
           .btn {
             width: 30vh;height: 7vh;font-size: 23px;
           }
@@ -480,7 +484,7 @@
 
       .pick-wall {
         padding: 60px 10px 10px 10px;
-        height: 68vh;
+        height: 47vh;
 
         .pick-wall-box {
           .seed-bracket {
@@ -500,6 +504,10 @@
             width: 1px;
             background: #03d3ec;
             border-left: 5px solid #50bfff
+          }
+
+          span {
+            margin: 2px;
           }
         }
       }
@@ -543,7 +551,7 @@
 
       .order-box-row {
         width: 84vh;
-        height: 38vh;
+        height: 33vh;
 
         .order-box {
           padding:0px 30px;
@@ -567,16 +575,16 @@
               }
             }
 
-
-
-
             .ship-order-list {
               font-size: 18px; color: white;
             }
           }
         }
         .empty-padding {
-          padding-top: 65px;
+          padding-top: 105px;
+          .el-empty__image {
+            height: 100px;
+          }
         }
       }
       .order-detl-list {

--
Gitblit v1.9.1