From 5711798e5618511eced42557cfc9f63d40e64336 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 21 三月 2025 16:30:10 +0800
Subject: [PATCH] 设备页面-样式优化

---
 src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue |   67 ++++++++++++++++++++++-----------
 1 files changed, 44 insertions(+), 23 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
index 09150de..6cb7975 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentVerificationPlan.vue
@@ -3,10 +3,12 @@
   <div>
     <div>
       <div style="margin: 10px 0;display: flex;align-items: center;justify-content: space-between;">
-        <span>骞村害璁″垝琛�</span>
+        <div class="title">
+          <span style="font-weight: bold">骞村害璁″垝琛�</span>
+        </div>
         <div style="display: flex;align-items: center;">
-          <el-button style="margin-right: 10px" size="small" type="primary" @click="getYearTableData">鍒锋柊</el-button>
-          <el-button style="margin-right: 10px" size="small" type="primary" @click="addYearPlan('add')">鏂板</el-button>
+          <el-button size="small" type="primary" @click="getYearTableData">鍒锋柊</el-button>
+          <el-button size="small" type="primary" @click="addYearPlan('add')">鏂板</el-button>
           <!--          <el-upload ref="upload" :action="action"-->
           <!--                     :before-upload="beforeUpload" :headers="uploadHeader" :on-error="onError"-->
           <!--                     :on-success="handleSuccessUp" :show-file-list="false" accept='.xls,.xlsx'>-->
@@ -24,7 +26,7 @@
           <el-table-column label="骞翠唤" min-width="80" prop="planYear"></el-table-column>
           <el-table-column label="璁″垝鍚嶇О" min-width="180" prop="planName"></el-table-column>
           <el-table-column label="缂栧埗浜�" min-width="100" prop="writeName"></el-table-column>
-          <el-table-column label="缂栧埗鏃ユ湡" min-width="150" prop="writeTime"></el-table-column>
+          <el-table-column label="缂栧埗鏃ユ湡" min-width="160" prop="writeTime"></el-table-column>
           <el-table-column label="鎵瑰噯鐘舵��" min-width="100" prop="ratifyStatus">
             <template slot-scope="scope">
               <el-tag v-if="scope.row.ratifyStatus === 1" type="success">鎵瑰噯</el-tag>
@@ -50,23 +52,29 @@
           </el-table-column>
         </el-table>
         <el-pagination :current-page="1" :page-size="pagination.size" :page-sizes="[10, 20, 30, 50, 100]"
-          :total="pagination.total" layout="->,total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange"
-          @current-change="handleCurrentChange">
+                       background :total="pagination.total" layout="->,total, sizes, prev, pager, next, jumper"
+                       @size-change="handleSizeChange" @current-change="handleCurrentChange">
         </el-pagination>
       </div>
     </div>
     <div>
-      <span>骞村害璁″垝鏄庣粏琛�</span>
       <div class="title">
-        <div class="title-search">
-          <span style="width: 120px;font-size: 14px">璁惧缂栧彿锛�</span>
-          <el-input v-model="searchForm.deviceNumber" clearable size="small"
-            style="margin-right: 10px;width: 220px"></el-input>
-          <span style="width: 80px;font-size: 14px">璁惧鍚嶇О锛�</span>
-          <el-input v-model="searchForm.deviceName" clearable size="small"
-            style="margin-right: 10px;width: 220px"></el-input>
-          <el-button size="mini" type="primary" @click="getYearTableDetailData(currentRow)">鏌ヨ</el-button>
-          <el-button size="mini" @click="reset">閲嶇疆</el-button>
+        <span style="font-weight: bold">骞村害璁″垝鏄庣粏琛�</span>
+      </div>
+      <div class="search">
+        <div>
+          <el-form :model="searchForm" ref="searchForm" size="small" :inline="true">
+            <el-form-item label="璁惧缂栧彿" prop="deviceNumber">
+              <el-input v-model="searchForm.deviceNumber" clearable size="small"></el-input>
+            </el-form-item>
+            <el-form-item label="璁惧鍚嶇О" prop="deviceName">
+              <el-input v-model="searchForm.deviceName" clearable size="small"></el-input>
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" size="mini" @click="getYearTableDetailData(currentRow)">鏌ヨ</el-button>
+              <el-button size="mini" @click="reset">閲嶇疆</el-button>
+            </el-form-item>
+          </el-form>
         </div>
         <div>
           <el-button size="small" type="primary" @click="handleForm('add')">鏂板</el-button>
@@ -101,7 +109,7 @@
           </el-table-column>
         </el-table>
         <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]"
-          :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper"
+          :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background
           @size-change="handleSizeChange1" @current-change="handleCurrentChange1">
         </el-pagination>
       </div>
@@ -642,15 +650,28 @@
 </script>
 
 <style scoped>
-.title {
+.search {
+  height: 46px;
   display: flex;
   justify-content: space-between;
-  align-items: center;
+}
+.title {
+  position: relative;
+  font-size: 16px;
+  color: #333;
+  font-weight: 400;
+  padding-left: 10px;
+  margin-bottom: 10px;
 }
 
-.title-search {
-  display: flex;
-  align-items: center;
-  margin: 10px 0;
+.title::before {
+  position: absolute;
+  left: 0;
+  top: 4px;
+  content: '';
+  width: 4px;
+  height: 16px;
+  background-color: #3A7BFA;
+  border-radius: 2px;
 }
 </style>

--
Gitblit v1.9.3