fix: 修复一些小问题

This commit is contained in:
寻鹿 2023-11-06 00:14:55 +08:00
parent f98975e877
commit 325110867f
3 changed files with 18 additions and 8 deletions

View File

@ -593,7 +593,6 @@ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, cod
}
.v-table__wrapper {
height: calc(100% - 80px);
border-radius: inherit;
overflow: auto;
}

View File

@ -182,7 +182,10 @@ export default {
ElMessage.error("用户名或密码错误");
this.$store.state.isLoading = false;
});
if (!result) return;
if (!result) {
this.$store.state.isLoading = false;
return;
}
if (result.data.code !== 200) {
ElMessage.error(result.data.message);
this.$store.state.isLoading = false;

View File

@ -3,8 +3,7 @@
<div class="v-container">
<div class="v-card">
<div class="video-table-card">
<div class="v-table">
<div class="v-table__wrapper" v-loading="loading">
<div class="v-table" v-loading="loading">
<div class="top">
<div class="navbar">
<div class="bar-item" :class="videoStatus === 0 ? 'active' : ''" @click="changeStatus(0)">待审核</div>
@ -15,15 +14,16 @@
<div class="refresh" @click="reloadVideos">刷新</div>
<div class="total"> {{ total }} </div>
</div>
</div>
</div>
<div class="v-table__wrapper">
<table>
<thead>
<tr>
<th style="min-width: 90px;">VID</th>
<th style="min-width: 176px;">封面</th>
<th style="min-width: 200px;">标题</th>
<th style="min-width: 150px;">投稿用户</th>
<th style="min-width: 160px;">分区</th>
<th style="min-width: 120px;">投稿用户</th>
<th style="min-width: 180px;">分区</th>
<th style="min-width: 150px;">投稿时间</th>
<th style="min-width: 100px;">状态</th>
<th style="min-width: 80px;"></th>
@ -39,7 +39,7 @@
<td style="min-width: 120px;">
<span class="nickname">{{ item.user.nickname }}</span>
</td>
<td style="min-width: 160px;">
<td style="min-width: 180px;">
<span class="category" style="background-color: #ffd024;">{{ item.category.mcName }}</span>
<span class="category" style="background-color: #3ad2f0;">{{ item.category.scName }}</span>
</td>
@ -264,6 +264,14 @@ export default {
color: var(--Lb6);
}
.v-table__wrapper {
height: calc(100% - 150px);
}
.v-table__wrapper table {
padding: 0 4px 8px;
}
.cover {
height: 81px;
width: 144px;