修复下载状态判断问题
This commit is contained in:
parent
1d28a89851
commit
21d8053dbf
@ -107,9 +107,8 @@
|
||||
|
||||
<el-dialog v-model="isViewing" width="100%" top="0" style="padding: 0">
|
||||
<div style="height: 20vh; font: bold 16px semi-expanded">
|
||||
<el-image :src="currentGallery.download === undefined ?'' : 'https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/0?gid=' + currentGallery.gid"
|
||||
style="float: left; width: 40vw; height: 20vh" fit="contain"
|
||||
:preview-src-list="currentGallery.download === undefined ? [] : ['https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/1?gid=' + currentGallery.gid,]"></el-image>
|
||||
<el-image :src="getGalleryThumb(currentGallery)"
|
||||
style="float: left; width: 40vw; height: 20vh" fit="contain"/>
|
||||
{{adjustGalleryName(currentGallery.name, 150)}}
|
||||
</div>
|
||||
<div style="font: bold 20px semi-expanded">
|
||||
@ -129,19 +128,19 @@
|
||||
</span>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="downloadTask(currentGallery.download)" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="downloadTask(currentGallery.download)" :disabled="currentGallery.status !== '下载完成' || currentGallery.mode === 2"
|
||||
size="large">下载</el-button>
|
||||
<el-button @click="deleteGallery(currentGallery.gid)" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="deleteGallery(currentGallery.gid)" :disabled="currentGallery.status !== '下载完成'"
|
||||
size="large">删除</el-button>
|
||||
<el-button @click="shareGallery({gid:currentGallery.gid, shortName:currentGallery.shortName + '.zip'})" v-if="isLion"
|
||||
size="large">分享</el-button>
|
||||
<el-button @click="changeGalleryCollect(currentGallery.gid, currentGallery.isCollect)" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="changeGalleryCollect(currentGallery.gid, currentGallery.isCollect)" :disabled="currentGallery.status !== '下载完成'"
|
||||
size="large">{{currentGallery.isCollect ? '取消收藏' : '收藏'}}</el-button>
|
||||
<el-button @click="onlineGalleryReader" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="onlineGalleryReader" :disabled="currentGallery.status !== '下载完成' || currentGallery.mode === 1"
|
||||
size="large">在线看</el-button>
|
||||
<el-button @click="editGalleryTag(currentGallery)" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="editGalleryTag(currentGallery)" :disabled="currentGallery.status !== '下载完成'"
|
||||
size="large">编辑标签</el-button>
|
||||
<el-button @click="updateGallery(currentGallery.link)" :disabled="currentGallery.download === undefined"
|
||||
<el-button @click="updateGallery(currentGallery.link)" :disabled="currentGallery.status !== '下载完成'"
|
||||
size="large">更新本子</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user