From 9b2a3f36ec28dfc50d26e9cb4aa9fe13497e8dff Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 22 三月 2024 18:55:57 +0800
Subject: [PATCH] 单位组件调整

---
 src/views/overview/OverviewListView.vue |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue
index 19b3bd4..974ba53 100644
--- a/src/views/overview/OverviewListView.vue
+++ b/src/views/overview/OverviewListView.vue
@@ -247,8 +247,8 @@
           const list = res.data.map((item) => {
             return {
               ...item,
-              // from: item.fromLocation.name,
-              // to: item.toLocation.name
+              from: item.location.jointName,
+              to: item.location.jointName
             }
           })
           this.tableList.tableInfomation = list || []
@@ -273,7 +273,18 @@
         item.fromLocationId=item.fromLocation.jointName
         item.toLocationId=item.toLocation.jointName
       })
+      row.location={
+        value:row.location.id||row.location.value,
+        label:row.location.jointName||row.location.label
+      }
+      row.toLocation={
+        value:row.toLocation.id||row.toLocation.value,
+        label:row.toLocation.jointName||row.toLocation.label
+      }
       row.locationID=row.location.jointName
+      row.locationId=row.location.value
+      
+      // row.tolocationId=row.tolocation.value
       this.editConfig.infomation = { ...row }
     },
     // 鏂板缓
@@ -282,7 +293,9 @@
       this.addName = this.params.name
       this.editConfig.operationTypeId = this.params.id
       this.editConfig.code = this.params.code
-      this.editConfig.infomation = {}
+      this.editConfig.infomation = {
+        // location:{jointName:""}
+      }
       this.editConfig.visible = true
     },
     // 鐘舵��

--
Gitblit v1.8.0