改进 使用 Table 显示蜘蛛
This commit is contained in:
parent
d393183c1f
commit
6f92671745
@ -2,26 +2,38 @@
|
|||||||
<h1>蜘蛛</h1>
|
<h1>蜘蛛</h1>
|
||||||
<p>蜘蛛将不定期的查询网页。</p>
|
<p>蜘蛛将不定期的查询网页。</p>
|
||||||
|
|
||||||
<v-card class="mt-3">
|
<v-table theme="dark" class="mt-3">
|
||||||
<v-list>
|
<thead>
|
||||||
<v-list-item
|
<tr>
|
||||||
|
<th class="text-left">
|
||||||
|
名称
|
||||||
|
</th>
|
||||||
|
<th class="text-left">
|
||||||
|
状态
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr
|
||||||
v-for="item in spiders.Spiders"
|
v-for="item in spiders.Spiders"
|
||||||
:key="item.Id"
|
:key="item.Id"
|
||||||
>
|
>
|
||||||
|
<td>{{ item.Name }}</td>
|
||||||
|
<td>
|
||||||
|
<span class="text-success" v-if="item.Status == 'up'">
|
||||||
|
<v-icon icon="mdi-check"></v-icon>
|
||||||
|
</span>
|
||||||
|
<span class="text-danger" v-else-if="item.Status == 'down'">
|
||||||
|
<v-icon icon="mdi-close"></v-icon>
|
||||||
|
</span>
|
||||||
|
<span class="text-warning" v-else-if="item.Status == 'unknown'">
|
||||||
|
<v-icon icon="mdi-help"></v-icon>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</td>
|
||||||
<template v-slot:append="{ isActive }">
|
</tr>
|
||||||
<v-list-item-action end>
|
</tbody>
|
||||||
<v-btn rounded="xl" @click.stop="console.log(isActive)">
|
</v-table>
|
||||||
<v-icon>mdi-check</v-icon>
|
|
||||||
</v-btn>
|
|
||||||
</v-list-item-action>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<v-list-item-title>{{ item.Name }}</v-list-item-title>
|
|
||||||
</v-list-item>
|
|
||||||
</v-list>
|
|
||||||
</v-card>
|
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<v-container>
|
<v-container>
|
||||||
@ -47,7 +59,6 @@
|
|||||||
import {theSpiderApi} from "@/plugins/api";
|
import {theSpiderApi} from "@/plugins/api";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const page = ref(1);
|
const page = ref(1);
|
||||||
const spiders = ref({});
|
const spiders = ref({});
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user