fix(接口定义): 修复API 列表刷新多次问题
This commit is contained in:
parent
f96bf64341
commit
0dfc01ab3d
|
@ -1,12 +1,11 @@
|
|||
<template>
|
||||
<div>
|
||||
<div>
|
||||
|
||||
<el-link type="primary" @click="open" style="float: right;margin-top: 5px">{{ $t('commons.adv_search.title') }}
|
||||
</el-link>
|
||||
<el-input :placeholder="$t('commons.search_by_id_name_tag')" @blur="search" class="search-input" size="small"
|
||||
@keyup.enter.native="search"
|
||||
v-model="condition.name"/>
|
||||
@keyup.enter.native="enterSearch"
|
||||
v-model="condition.name" ref="inputVal"/>
|
||||
|
||||
<ms-table :data="tableData" :select-node-ids="selectNodeIds" :condition="condition" :page-size="pageSize"
|
||||
:total="total" enableSelection
|
||||
|
@ -570,6 +569,10 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
enterSearch(){
|
||||
this.$refs.inputVal.blur();
|
||||
this.search();
|
||||
},
|
||||
search() {
|
||||
this.changeSelectDataRangeAll();
|
||||
this.initTable();
|
||||
|
|
Loading…
Reference in New Issue