From 4aa13af3c74cf57d70bad9c4bc53b2c26e04fb5d Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期三, 26 一月 2022 13:46:53 +0800
Subject: [PATCH] 集群管理搜索集群
---
src/pages/syslog/views/operationLog.vue | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/src/pages/syslog/views/operationLog.vue b/src/pages/syslog/views/operationLog.vue
index 5c67956..d5d2dc2 100644
--- a/src/pages/syslog/views/operationLog.vue
+++ b/src/pages/syslog/views/operationLog.vue
@@ -23,14 +23,25 @@
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"
+ >
+ 
+ </span>
+ <span
+ class="icon iconfont icon_search"
@click="getOperationLog(1)"
slot="append"
+ v-else
>

</span>
+
<!-- <el-button
slot="append"
icon="el-icon-search"
@@ -311,6 +322,10 @@
: new Date(new Date().setHours(0, 0, 0, 0));
this.timeStart = this.getTimeStr(preDay);
},
+ clearSearch() {
+ this.fuzzySearch = "";
+ this.getOperationLog(1);
+ },
},
};
</script>
@@ -376,6 +391,10 @@
height: 36px;
display: flex;
align-items: center;
+
+ .icon_clear:hover {
+ color: #4e94ff;
+ }
.input-with-select {
width: 100%;
@@ -462,6 +481,12 @@
display: none;
}
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