From 0d68be1fa109b0f55fa0b4c023baf4b66dcc9f28 Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期四, 09 六月 2022 14:06:39 +0800
Subject: [PATCH] BUG修改

---
 src/views/components/peripheralUnit/list.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/components/peripheralUnit/list.vue b/src/views/components/peripheralUnit/list.vue
index eed3928..9f9c863 100644
--- a/src/views/components/peripheralUnit/list.vue
+++ b/src/views/components/peripheralUnit/list.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px" @submit.native.prevent>
       <el-form-item label="澶栬浠g爜" prop="code">
         <el-input
           v-model="queryParams.code"
@@ -26,16 +26,16 @@
     </el-form>
 
     <el-table v-loading="loading" :data="peripheralUnitList" highlight-current-row
-              @current-change="handleCurrentChange">
+              @current-change="handleCurrentChange" height="50vh">
       <el-table-column label="搴忓彿" align="center" width="50">
         <template slot-scope="scope">
           <span>{{ scope.$index + (queryParams.pageNum - 1) * queryParams.pageSize + 1 }} </span>
         </template>
       </el-table-column>
       <el-table-column label="澶栬浠g爜" width="80" align="center" prop="code"/>
-      <el-table-column label="澶栬鍚嶇О" align="center" prop="name" show-overflow-tooltip/>
-      <el-table-column label="瑙勬牸鍨嬪彿" align="center" prop="model" min-width="60"/>
-      <el-table-column label="鐢熶骇鍘傚晢" align="center" prop="manufacturer_dictText"/>
+      <el-table-column label="澶栬鍚嶇О" align="center" min-width="180" prop="name" show-overflow-tooltip/>
+      <el-table-column label="瑙勬牸鍨嬪彿" align="center" prop="model" min-width="120"/>
+      <el-table-column label="鐢熶骇鍘傚晢" align="center" min-width="150" show-overflow-tooltip prop="manufacturer_dictText"/>
       <el-table-column label="鍘傚晢浠g爜" width="100" align="center" prop="vendorCode_dictText"/>
       <el-table-column label="娉㈢壒鐜�" width="100" align="center" prop="baudRate">
         <template slot-scope="scope">
@@ -117,6 +117,7 @@
     },
     handleCurrentChange(v) {
       this.currentRow = v;
+      this.$emit('setCurrentRow', this.currentRow)
     }
   }
 };

--
Gitblit v1.9.1