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 |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/ecg/doctor/DevDismantle.vue b/src/views/ecg/doctor/DevDismantle.vue
index b4ec0e3..a6c616c 100644
--- a/src/views/ecg/doctor/DevDismantle.vue
+++ b/src/views/ecg/doctor/DevDismantle.vue
@@ -45,11 +45,11 @@
       </el-form-item>
     </el-form>
     <el-button @click="submitForm" type="primary" :disabled="formLoading">鎷嗘満瀹屾垚</el-button>
-    <el-button @click="dialogVisible = false">鍙� 娑�</el-button>
+    <el-button @click="resetForm()">閲嶇疆</el-button>
 
   <!-- 鍖荤敓鎷嗘満鍒楄〃 -->
   <ContentWrap>
-    <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
+    <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @current-change="onCurChange" >
       <el-table-column label="id" align="center" prop="id" />
       <el-table-column label="浣滀笟绫诲瀷" align="center" prop="jobType" />
       <el-table-column label="鍖荤敓缂栧彿" align="center" prop="docId" />
@@ -193,6 +193,7 @@
   }
 }
 
+
 const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑
 const list = ref<JobRecordVO[]>([]) // 鍒楄〃鐨勬暟鎹�
 const total = ref(0) // 鍒楄〃鐨勬�婚〉鏁�
@@ -222,6 +223,15 @@
   }
 }
 
+const onCurChange = (cur) => {
+  if (cur !== null)
+    getSelectedRent( cur.rentId )
+}
+
+const getSelectedRent = async (rentId) => {
+  formData.value = await DevRentApi.getDevRent(rentId)
+}
+
 /** 鍒濆鍖� **/
 onMounted(() => {
   getList()

--
Gitblit v1.9.3