Skip to content

Commit

Permalink
refact
Browse files Browse the repository at this point in the history
  • Loading branch information
owenericsson committed May 30, 2019
1 parent 0924246 commit e3b0e8a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</el-form-item>
<el-form-item class="filter-search">
<el-button type="primary" icon="search" @click="toPage">查询</el-button>
<cluster-manage-search @cluster-search='toPage'></cluster-manage-search>
<cluster-manage-search @cluster-search='toSpecificPage'></cluster-manage-search>
</el-form-item>
</el-form>
</div>
Expand Down Expand Up @@ -207,13 +207,16 @@ export default {
refreshPage() {
this.init();
},
toPage(id) {
toPage() {
this.$router.push({ path: this.$routermapper.GetPath('clusterManage'), query: { currentPage: this.currentPage, clusterId: this.clusterIdForSearch } });
},
toSpecificPage(id) {
if (id) {
this.clusterIdForSearch = id;
} else {
this.clusterIdForSearch = '';
}
this.$router.push({ path: this.$routermapper.GetPath('clusterManage'), query: { currentPage: this.currentPage, clusterId: this.clusterIdForSearch } });
this.toPage();
},
closeDialog() {
this.isClusterInfoVisible = false;
Expand Down

0 comments on commit e3b0e8a

Please sign in to comment.