修复缩略图预览;优化下载链接;(同步更新) 调整搜索框长度
This commit is contained in:
parent
853ed0c2f2
commit
26b622262e
@ -25,12 +25,12 @@
|
|||||||
<el-button @click="isViewingTag = true">查看标签</el-button>
|
<el-button @click="isViewingTag = true">查看标签</el-button>
|
||||||
<br>
|
<br>
|
||||||
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
<el-button v-if="isLion" @click="resetUndone">重置任务</el-button>
|
||||||
<div v-show="thumbnailGallery !== {}">
|
<div v-show="thumbnailGallery.url !== undefined">
|
||||||
<span>
|
<span>
|
||||||
{{thumbnailGallery.shortName}}
|
{{thumbnailGallery.shortName}}
|
||||||
</span><br>
|
</span><br>
|
||||||
<picture>
|
<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"/>
|
style="height: 30vh" fit="contain"/>
|
||||||
</picture>
|
</picture>
|
||||||
</div>
|
</div>
|
||||||
@ -217,6 +217,8 @@ let tags = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
let thumbnailGallery = computed(() => {
|
let thumbnailGallery = computed(() => {
|
||||||
|
if(store.state.thumbnailGallery.images === undefined)
|
||||||
|
store.state.thumbnailGallery.images = []
|
||||||
return store.state.thumbnailGallery
|
return store.state.thumbnailGallery
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -28,14 +28,14 @@
|
|||||||
<el-option value="keyword" label="关键字"/>
|
<el-option value="keyword" label="关键字"/>
|
||||||
<el-option value="tag" label="标签"/>
|
<el-option value="tag" label="标签"/>
|
||||||
</el-select>
|
</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>
|
<template #append>
|
||||||
<el-button @click="queryLocalTask">搜索</el-button>
|
<el-button @click="queryLocalTask">搜索</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-autocomplete v-model="param" :fetch-suggestions="generateQueryTag"
|
<el-autocomplete v-model="param" :fetch-suggestions="generateQueryTag"
|
||||||
@select="handleQueryTagSelect" placeholder="检索标签"
|
@select="handleQueryTagSelect" placeholder="检索标签"
|
||||||
style="width: 63vw" v-if="type === 'tag'">
|
style="width: 60vw" v-if="type === 'tag'">
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button :disabled="paramForTags.length === 0" @click="removeAllQueryTag">清空tag</el-button>
|
<el-button :disabled="paramForTags.length === 0" @click="removeAllQueryTag">清空tag</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -299,7 +299,7 @@ const mutations = {
|
|||||||
break;
|
break;
|
||||||
case "下载完成":
|
case "下载完成":
|
||||||
task.progress = "下载完成"
|
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 = []
|
let links = []
|
||||||
for(let i=1; i<=task.pages; i++)
|
for(let i=1; i<=task.pages; i++)
|
||||||
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
|
links.push(GalleryManageUrl + "/onlineImage/" + i + "?gid=" + task.gid);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user