Skip to content

Commit

Permalink
优化页面
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 committed Aug 26, 2024
1 parent 64e9140 commit 6d58697
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
18 changes: 16 additions & 2 deletions app/calibre-pages/src/views/BatchMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,21 @@
<el-table-column label="标题" width="200">
<template #default="scope">
<div style="display: flex; align-items: center">

<el-icon @click="goToSearch(scope.row)">
<Search/>
</el-icon>
<span style="margin-left: 10px">{{ scope.row.title }}</span>
<el-tooltip content="I am an el-tooltip">
<span style="margin-left: 10px">{{ scope.row.title }}</span>
<template #content>
<el-image
style="width: 96px; height: 139px"
:src="scope.row.cover"
fit="cover"
/>

</template>
</el-tooltip>
</div>
</template>
</el-table-column>
Expand Down Expand Up @@ -561,7 +572,10 @@ export default {
},
async batchDelete() {
await Promise.all(this.multipleSelection.map(book => this.deleteBook(book)));
await this.fetchBooks();
// 等待1s后刷新
setTimeout(() => {
this.fetchBooks()
}, 1000)
},
async updateMetaData() {
this.metaUpdateDialogVisible = true
Expand Down
10 changes: 0 additions & 10 deletions app/calibre-pages/src/views/Detail.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
<template>
<el-row>
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/' }">homepage</el-breadcrumb-item>
<el-breadcrumb-item>
<a href="/">promotion management</a>
</el-breadcrumb-item>
<el-breadcrumb-item>promotion list</el-breadcrumb-item>
<el-breadcrumb-item>promotion detail</el-breadcrumb-item>
</el-breadcrumb>
</el-row>
<el-row class="detail-header">
<SearchBar/>
</el-row>
Expand Down
10 changes: 0 additions & 10 deletions app/calibre-pages/src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
<template>
<el-row>
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/' }">homepage</el-breadcrumb-item>
<el-breadcrumb-item>
<a href="/">promotion management</a>
</el-breadcrumb-item>
<el-breadcrumb-item>promotion list</el-breadcrumb-item>
<el-breadcrumb-item>promotion detail</el-breadcrumb-item>
</el-breadcrumb>
</el-row>
<el-row>
<SearchBar/>
</el-row>
Expand Down

0 comments on commit 6d58697

Please sign in to comment.