记录和显示最近常用的集群

This commit is contained in:
GoEdgeLab
2021-05-03 11:32:59 +08:00
parent 6ead9a6496
commit 8698f302d5
6 changed files with 49 additions and 2 deletions

View File

@@ -11,8 +11,14 @@
<div class="ui field">
<button class="ui button" type="submit">搜索</button>
</div>
<div class="ui field" v-if="latestClusters.length > 0">
<a href="" @click.prevent="showLatest()">常用<i class="icon angle" :class="{down: !latestVisible, up: latestVisible}"></i> </a>
</div>
</div>
</form>
<div class="ui segment" v-if="latestVisible">
常用集群:<span v-for="cluster in latestClusters"><a :href="'/clusters/cluster?clusterId=' + cluster.id">{{cluster.name}}</a> &nbsp; </span>
</div>
<div class="ui tabular menu" v-if="isSearching">
<a :href="'/clusters?searchType=cluster&keyword=' + keyword" class="item" :class="{active: searchType == '' || searchType == 'cluster'}">集群({{countClusters}})</a>