允许创建任务时一并提交tag,修复切换搜索类型时本子会变的问题(我也不确定有没有修好)

This commit is contained in:
chuzhongzai
2023-04-23 16:11:48 +08:00
parent 9a653d3bc5
commit 6644d420db
2 changed files with 19 additions and 9 deletions
+11 -4
View File
@@ -46,12 +46,16 @@
<tr>本子大小:{{chosenGallery.fileSize}}</tr>
<tr>本子状态:{{chosenGallery.status}}</tr>
<tr v-if="chosenGallery.availableResolution">
目标分辨率:<el-select v-model="targetResolution">
目标分辨率:<el-select v-model="targetResolution" style="width: 200px">
<el-option v-for="(fileSize, resolution) in chosenGallery.availableResolution" :value="resolution"
:label="resolution + ' ' + fileSize">
</el-option>
</el-select>
</tr>
<tr v-if="chosenGallery.availableResolution">
自定义标签:<el-input v-model="tag"/>
</tr>
</table>
<el-button @click="postTask" v-if="chosenGallery.availableResolution">下载</el-button>
<tr v-if="chosenGallery.status === '下载完成'">
@@ -162,6 +166,7 @@ let type = ref("link")
let param = ref("")
let targetResolution = ref("")
let tag = ref("")
let realAuthCode = computed(() => {
return store.state.AuthCode
@@ -208,7 +213,10 @@ function postTask(){
return
}
let tempLink = coverLink(param.value)
store.dispatch("postGalleryTask", {link: tempLink, targetResolution: targetResolution.value})
store.dispatch("postGalleryTask",
{link: tempLink,
targetResolution: targetResolution.value,
tag:tag.value})
targetResolution.value = ""
}
@@ -236,7 +244,6 @@ function queryLocalTask(){
}
function resetLocalQuery(){
store.commit("_searchLocalByKeyword", "")
store.commit("_searchLocalByTag", [''])
param.value = ""
}
function queryGalleries(link){
@@ -425,7 +432,7 @@ function saveDarkConfig(){
text-align: center;
}
.el-input{
width: 300px;
width: 200px;
}
#loading {