服务器列表优化
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
</div>
|
||||
|
||||
<div class="container" >
|
||||
<table class="table table-striped xianluTable">
|
||||
<table class="table table-striped xianluTable" style="margin-bottom: 10px;">
|
||||
<tr>
|
||||
<th>产品</th>
|
||||
<th>城市</th>
|
||||
@@ -105,6 +105,15 @@
|
||||
<td v-if="site.nasname">{{site.status}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div v-if="!is_all && (product_id == 0)" class="text-center" style="margin-bottom: 20px;">
|
||||
<button @@click="get_index_data()" type="button" class="btn btn-link">
|
||||
更多
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-chevron-double-down" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
||||
<path fill-rule="evenodd" d="M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="~/js/vue.js"></script>
|
||||
@@ -121,7 +130,9 @@
|
||||
search_field:'全部',
|
||||
sstp:'',
|
||||
count:0,
|
||||
use_count:0
|
||||
use_count:0,
|
||||
all_data: [],
|
||||
is_all: false
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -208,7 +219,16 @@
|
||||
use_count = res.use_count;
|
||||
}
|
||||
});
|
||||
this.table_data = datalist;
|
||||
if (ProductId == 0){
|
||||
this.all_data = datalist;
|
||||
let now_data = [];
|
||||
for (let i = 0;i<50;i++){
|
||||
now_data[i] = datalist[i];
|
||||
}
|
||||
this.table_data = now_data;
|
||||
} else {
|
||||
this.table_data = datalist;
|
||||
}
|
||||
this.count = count;
|
||||
if(ProductId != 16){
|
||||
this.use_count = use_count;
|
||||
@@ -216,6 +236,10 @@
|
||||
this.use_count = count;
|
||||
}
|
||||
},
|
||||
get_index_data(){
|
||||
this.table_data = this.all_data;
|
||||
this.is_all = true;
|
||||
},
|
||||
search_all(){
|
||||
if(!this.search_all_data){
|
||||
this.select_product(0);
|
||||
|
||||
Reference in New Issue
Block a user