From 677697e36b35ff80e3b45bb07a0e008fac8e9bd9 Mon Sep 17 00:00:00 2001
From: gaosp <gaosp>
Date: 星期二, 16 一月 2024 23:04:55 +0800
Subject: [PATCH] update

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

diff --git a/src/container/maintenance/index.vue b/src/container/maintenance/index.vue
index 0ee6856..257e81b 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 23:02:37
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
 -->
 <template>
@@ -11,11 +11,11 @@
             <template slot="search">
                 <div class="item">
                     <span>缁熶竴缂栧彿</span>
-                    <el-input class="item-value" v-model="queryInfo.uuid"></el-input>
+                    <el-input class="item-value" v-model="queryInfo.uuid" clearable></el-input>
                 </div>
                 <div class="item">
                     <span>璁惧鍚嶇О</span>
-                    <el-select class="item-value" v-model="queryInfo.machineName" placeholder="璇烽�夋嫨">
+                    <el-select class="item-value" v-model="queryInfo.machineName" placeholder="璇烽�夋嫨" clearable>
                         <el-option v-for="item in machineList" :key="item.id" :label="item.machineName" :value="item.id">
                         </el-option>
                     </el-select>
@@ -30,7 +30,7 @@
                 </div> -->
                 <div class="item">
                     <span>浣跨敤閮ㄩ棬</span>
-                    <el-select class="item-value" v-model="queryInfo.department">
+                    <el-select class="item-value" v-model="queryInfo.department" clearable>
                         <el-option v-for="item in departmentlist" :key="item.value" :label="item.label" :value="item.value">
                         </el-option>
                     </el-select>
@@ -41,18 +41,16 @@
                 </div> -->
                 <div class="item">
                     <span>璁″垝寮�濮嬫棩鏈�</span>
-                    <el-date-picker class="item-value" v-model="queryInfo.planStartDate" align="right" type="date" placeholder="閫夋嫨鏃ユ湡">
+                    <el-date-picker class="item-value" clearable v-model="queryInfo.planStartDate" align="right" type="date" placeholder="閫夋嫨鏃ユ湡">
                     </el-date-picker>
                 </div>
                 <div class="item">
                     <span>璁″垝瀹屾垚鏃ユ湡</span>
-                    <el-date-picker class="item-value" v-model="queryInfo.planFinishDate" align="right" type="date" placeholder="閫夋嫨鏃ユ湡">
+                    <el-date-picker class="item-value" clearable v-model="queryInfo.planFinishDate" align="right" type="date" placeholder="閫夋嫨鏃ユ湡">
                     </el-date-picker>
                 </div>
-                <div class="item">
+                <div class="item"  style="flex: 1 1 auto;justify-content: flex-end;">
                     <el-button type="primary" size="small" @click="query">鏌ヨ</el-button>
-                </div>
-                <div class="item">
                     <el-button type="primary" size="small" @click="reset">閲嶇疆</el-button>
                 </div>
             </template>
@@ -113,7 +111,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 +129,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 +144,7 @@
             queryInfo: {
                 uuid: '',
                 machineName: '',
-				style: this.$route.params.style,
+				style: 1,
                 type: '',
                 specification: '',
                 department: '',

--
Gitblit v1.9.3