提交 802e9e76 编写于 作者: P ph

add clearable

上级 95c51f09
...@@ -63,11 +63,15 @@ ...@@ -63,11 +63,15 @@
v-if="statisticType === 0" v-if="statisticType === 0"
suffix-icon="el-icon-search" suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByType')" :placeholder="$t('profiler.searchByType')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
<el-input v-model="searchByNameInput" <el-input v-model="searchByNameInput"
v-if="statisticType === 1" v-if="statisticType === 1"
suffix-icon="el-icon-search" suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
clearable
@clear="searchOpCoreList()"
@keyup.enter.native="searchOpCoreList()"></el-input> @keyup.enter.native="searchOpCoreList()"></el-input>
</div> </div>
</div> </div>
...@@ -170,6 +174,8 @@ ...@@ -170,6 +174,8 @@
<el-input v-model="searchByCPUNameInput" <el-input v-model="searchByCPUNameInput"
suffix-icon="el-icon-search" suffix-icon="el-icon-search"
:placeholder="$t('profiler.searchByName')" :placeholder="$t('profiler.searchByName')"
clearable
@clear="searchOpCpuList()"
@keyup.enter.native="searchOpCpuList()"></el-input> @keyup.enter.native="searchOpCpuList()"></el-input>
</div> </div>
<el-table v-show="opCpuList.opDetailCol && opCpuList.opDetailCol.length" <el-table v-show="opCpuList.opDetailCol && opCpuList.opDetailCol.length"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册