修复缩略图预览;优化下载链接;(同步更新) 调整搜索框长度

This commit is contained in:
chuzhongzai 2023-09-10 13:04:52 +08:00
parent 853ed0c2f2
commit 26b622262e
3 changed files with 7 additions and 5 deletions

View File

@ -25,12 +25,12 @@
<el-button @click="isViewingTag = true">查看标签</el-button>
<br>
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
<div v-show="thumbnailGallery !== {}">
<div v-show="thumbnailGallery.url !== undefined">
<span>
{{thumbnailGallery.shortName}}
</span><br>
<picture>
<el-image :src="thumbnailGallery.url" :preview-src-list="[thumbnailGallery.url,]" :initial-index="0" class="preview"
<el-image :src="thumbnailGallery.url" :preview-src-list="[thumbnailGallery.images[0],]" :initial-index="0" class="preview"
style="height: 30vh" fit="contain"/>
</picture>
</div>
@ -217,6 +217,8 @@ let tags = computed(() => {
})
let thumbnailGallery = computed(() => {
if(store.state.thumbnailGallery.images === undefined)
store.state.thumbnailGallery.images = []
return store.state.thumbnailGallery
})

View File

@ -28,14 +28,14 @@
<el-option value="keyword" label="关键字"/>
<el-option value="tag" label="标签"/>
</el-select>
<el-input style="width: 63vw" v-model="param" v-show="type === 'keyword'" placeholder="关键字搜索">
<el-input style="width: 60vw" v-model="param" v-show="type === 'keyword'" placeholder="关键字搜索">
<template #append>
<el-button @click="queryLocalTask">搜索</el-button>
</template>
</el-input>
<el-autocomplete v-model="param" :fetch-suggestions="generateQueryTag"
@select="handleQueryTagSelect" placeholder="检索标签"
style="width: 63vw" v-if="type === 'tag'">
style="width: 60vw" v-if="type === 'tag'">
<template #append>
<el-button :disabled="paramForTags.length === 0" @click="removeAllQueryTag">清空tag</el-button>
</template>

View File

@ -299,7 +299,7 @@ const mutations = {
break;
case "下载完成":
task.progress = "下载完成"
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode
task.download = GalleryManageUrl + "/file/" + encodeURI(task.name) + ".zip?AuthCode=" + state.AuthCode + "&gid=" + task.gid
let links = []
for(let i=1; i<=task.pages; i++)
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);