From 522048130f147c2e8fbfb2798bfa83f3da5b4eed Mon Sep 17 00:00:00 2001
From: gaosp <gaosp>
Date: 星期二, 16 一月 2024 22:23:17 +0800
Subject: [PATCH] 更新设备保养

---
 src/container/maintenance/index.vue |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/container/maintenance/index.vue b/src/container/maintenance/index.vue
index 0ee6856..000ef15 100644
--- a/src/container/maintenance/index.vue
+++ b/src/container/maintenance/index.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-01-06 17:40:19
  * @LastEditors: Sneed
- * @LastEditTime: 2024-01-14 18:55:28
+ * @LastEditTime: 2024-01-16 22:23:01
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
 -->
 <template>
@@ -113,7 +113,7 @@
                 </el-table-column>
             </template>
         </List>
-        <DailyMAddD ref="dailyMAddD" @reflash="submitForm" :styleValue="getStyle" :styleName="navName" :departmentlist="departmentlist" :machineList="machineList" :userList="userList"></DailyMAddD>
+        <DailyMAddD ref="dailyMAddD" @reflash="submitForm" :styleValue="queryInfo.style" :styleName="navName" :departmentlist="departmentlist" :machineList="machineList" :userList="userList"></DailyMAddD>
     </div>
 </template>
 <script>
@@ -131,9 +131,11 @@
             let names = ['鏃ュ父淇濆吇','涓�绾т繚鍏�','浜岀骇淇濆吇','涓夌骇淇濆吇']
 			return names[this.$route.params.style-1]
         },
-		
-		getStyle () {
-			return this.$route.params.style;
+    },
+    watch: {
+        $route () {
+            this.queryInfo.style = this.$route.params.style
+            this.query()
         }
     },
     data() {
@@ -144,7 +146,7 @@
             queryInfo: {
                 uuid: '',
                 machineName: '',
-				style: this.$route.params.style,
+				style: 1,
                 type: '',
                 specification: '',
                 department: '',

--
Gitblit v1.9.3