From a16d3fbdfd6f051ae471d01a874c528075407981 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 28 二月 2025 08:10:17 +0800
Subject: [PATCH] #优化 绑定集货区后,数据刷新

---
 construction-data/src/components/datav/index.vue |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/construction-data/src/components/datav/index.vue b/construction-data/src/components/datav/index.vue
index 0ac35a5..21760c7 100644
--- a/construction-data/src/components/datav/index.vue
+++ b/construction-data/src/components/datav/index.vue
@@ -189,13 +189,9 @@
     }
   },
   created () {
-    //鑾峰彇褰撳墠鎵ц浠诲姟
-    this.getWaves()
-    //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭�
-    this.getSeedLoc()
-    //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯
-    this.getAllPlatforms()
+    this.fetch()
   },
+
   computed: {
     getLightStatus() {
       return (item)=> {
@@ -208,6 +204,14 @@
     }
   },
   methods: {
+    fetch() {
+      //鑾峰彇褰撳墠鎵ц浠诲姟
+      this.getWaves()
+      //鑾峰彇褰撳墠鎾澧欏簱浣嶄俊鎭�
+      this.getSeedLoc()
+      //鑾峰彇鎵�鏈夊彂璐ф殏瀛樺尯
+      this.getAllPlatforms()
+    },
     printPage() {
       // let element = document.querySelector('#datav');
       // let el = this.$refs.datav
@@ -246,6 +250,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)

--
Gitblit v1.9.1