From bac758243189e7c21da1248c11591dab9d228f13 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期五, 12 十一月 2021 16:37:12 +0800
Subject: [PATCH] 暂存

---
 src/pages/syslog/views/pollingLog.vue |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/src/pages/syslog/views/pollingLog.vue b/src/pages/syslog/views/pollingLog.vue
index 895c3cf..e8f92d5 100644
--- a/src/pages/syslog/views/pollingLog.vue
+++ b/src/pages/syslog/views/pollingLog.vue
@@ -16,21 +16,32 @@
         <div class="search">
           <el-input
             placeholder="鎼滅储"
-            v-model="procName"
+            v-model="fuzzySearch"
             size="small"
             class="input-with-select"
+            @keyup.enter.native="getOperationLog(1)"
           >
             <span
-              class="icon iconfont"
+              class="icon iconfont icon_clear"
+              @click="clearSearch"
+              slot="append"
+              v-if="fuzzySearch"
+            >
+              &#xe785;
+            </span>
+            <span
+              class="icon iconfont icon_search"
               @click="getOperationLog(1)"
               slot="append"
+              v-else
             >
               &#xe714;
             </span>
+
             <!-- <el-button
               slot="append"
               icon="el-icon-search"
-              @click="getScheduleLog"
+              @click="getOperationLog(1)"
             ></el-button> -->
           </el-input>
         </div>
@@ -290,6 +301,11 @@
     },
     handleSelectionChange() {},
     handleClose() {},
+    getOperationLog() {},
+    clearSearch() {
+      this.fuzzySearch = "";
+      this.getOperationLog(1);
+    },
   },
 };
 </script>
@@ -458,6 +474,13 @@
       }
 
       tr {
+        td:first-child {
+          border-radius: 4px 0 0 4px;
+        }
+        td:last-child {
+          border-radius: 0 4px 4px 0;
+        }
+
         &.current-row td {
           background-color: #4e94ff !important;
           color: #fff;

--
Gitblit v1.8.0