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