From ef8b45aea99e31d95773d82f7508449489b6e278 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 12 九月 2024 17:49:26 +0800
Subject: [PATCH] 放弃装机功能

---
 src/views/ecg/doctor/DevDismantle.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/ecg/doctor/DevDismantle.vue b/src/views/ecg/doctor/DevDismantle.vue
index 090a5a6..a6c616c 100644
--- a/src/views/ecg/doctor/DevDismantle.vue
+++ b/src/views/ecg/doctor/DevDismantle.vue
@@ -193,9 +193,6 @@
   }
 }
 
-const getSelectedRent = async (rentId) => {
-  formData.value = await DevRentApi.getDevRent(rentId)
-}
 
 const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑
 const list = ref<JobRecordVO[]>([]) // 鍒楄〃鐨勬暟鎹�
@@ -227,9 +224,12 @@
 }
 
 const onCurChange = (cur) => {
-  console.log( cur )
-  console.log( cur.rentId)
-  getSelectedRent( cur.rentId )
+  if (cur !== null)
+    getSelectedRent( cur.rentId )
+}
+
+const getSelectedRent = async (rentId) => {
+  formData.value = await DevRentApi.getDevRent(rentId)
 }
 
 /** 鍒濆鍖� **/

--
Gitblit v1.9.3