From b524dc50dedb0e6d8ae0a432ae2d436829da9319 Mon Sep 17 00:00:00 2001
From: gaosp <gaosp>
Date: 星期六, 13 一月 2024 11:35:45 +0800
Subject: [PATCH] update

---
 src/container/deviceType/index.vue |  118 +++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 67 insertions(+), 51 deletions(-)

diff --git a/src/container/deviceType/index.vue b/src/container/deviceType/index.vue
index 5800299..aa9bc41 100644
--- a/src/container/deviceType/index.vue
+++ b/src/container/deviceType/index.vue
@@ -1,22 +1,22 @@
 <!--
  * @Date: 2024-01-06 17:40:19
  * @LastEditors: Sneed
- * @LastEditTime: 2024-01-12 22:44:37
+ * @LastEditTime: 2024-01-13 11:35:29
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/deviceType/index.vue
 -->
 <template>
     <div class="maintenance">
-        <div class="nav">璁惧淇濆吇/鏃ュ父淇濆吇</div>
-        <List ref="list" url="/component/pageQuery">
+        <div class="nav">宸ヤ欢淇℃伅</div>
+        <List ref="list" :url="url">
             <template slot="search">
                 <div class="item">
                     <span>闆朵欢鍙�</span>
                     <el-select class="item-value" v-model="queryInfo.component" placeholder="璇烽�夋嫨">
                         <el-option
                         v-for="item in componentList"
-                        :key="item.value"
-                        :label="item.label"
-                        :value="item.value">
+                        :key="item"
+                        :label="item"
+                        :value="item">
                         </el-option>
                     </el-select>
                 </div>
@@ -26,9 +26,9 @@
                     <el-select class="item-value" v-model="queryInfo.precess" placeholder="璇烽�夋嫨">
                         <el-option
                         v-for="item in precessList"
-                        :key="item.value"
-                        :label="item.label"
-                        :value="item.value">
+                        :key="item"
+                        :label="item"
+                        :value="item">
                         </el-option>
                     </el-select>
                 </div>
@@ -56,10 +56,10 @@
                     </el-date-picker>
                 </div>
                 <div class="item">
-                    <div class="query btn" @click="query">鏌ヨ</div>
+                    <el-button type="primary" size="small" @click="query">鏌ヨ</el-button>
                 </div>
                 <div class="item">
-                    <div class="reset btn" @click="reset">閲嶇疆</div>
+                    <el-button type="primary" size="small" @click="reset">閲嶇疆</el-button>
                 </div>
             </template>
             <template slot="columns">
@@ -87,12 +87,14 @@
 </template>
 <script>
     import List from '../list/index.vue'
+    import { getUrl } from '@/api/Api'
     export default {
         components: {
             List
         },
         data () {
             return {
+                url: '',
                 queryInfo: {
                     timeBegin: '',
                     timeEnd: '',
@@ -104,6 +106,7 @@
             }
         },
         created () {
+            this.url = getUrl('componentQuery')
             this.init()
             // this.getProtocolList()
         },
@@ -140,51 +143,64 @@
             border: 1px solid #435F9E;
         }
     }
+    .el-button--mini {
+        background: transparent;
+    }
+    .el-button--primary {
+        background-color: transparent;
+    }
 }
 </style>
 <style lang="scss" scoped>
-    .maintenance {
-        width: 100%;
-        height: 100%;
-        overflow: hidden;
-        color: #FFF;
+.maintenance {
+    width: 100%;
+    height: 100%;
+    overflow: hidden;
+    color: #FFF;
+    display: flex;
+    flex-direction: column;
+
+    .nav {
+        padding: 10px 30px;
+    }
+
+    .item {
+        margin-top: 20px;
+        margin-left: 50px;
         display: flex;
-        flex-direction: column;
-        .nav {
-            padding: 10px 30px;
+        align-items: center;
+
+        span {
+            width: 120px;
+            font-size: 16px;
+            font-family: PingFangSC, PingFang SC;
+            color: #C6DCE0;
+            text-align: right;
+            padding-right: 20px;
         }
-        .item {
-            margin-top: 20px;
-            margin-left: 50px;
-            display: flex;
-            align-items: center;
-            span {
-                width: 120px;
-                font-size: 16px;
-                font-family: PingFangSC, PingFang SC;
-                color: #C6DCE0;
-                text-align: right;
-                padding-right: 20px;
-            }
-            .item-value {
-                width: 200px;
-                border: 1px solid #435F9E;
-            }
-            .btn {
-                line-height: 1.5;
-                width: 100px;
-                text-align: center;
-                font-size: 16px;
-                cursor: pointer;
-            }
-            .reset {
-                background: #AAB6BA;
-                color: #FFF;
-            }
-            .query {
-                background: #5DD1FC;
-                color: #FFF;
-            }
+
+        .item-value {
+            width: 200px;
+            border: 1px solid #435F9E;
+        }
+
+        .btn {
+            line-height: 1.5;
+            width: 100px;
+            text-align: center;
+            font-size: 16px;
+            cursor: pointer;
+        }
+
+        .reset {
+            background: #AAB6BA;
+            color: #FFF;
+        }
+
+        .query {
+            background: #5DD1FC;
+            color: #FFF;
         }
     }
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3