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/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