mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
feat 洗版设置
This commit is contained in:
@@ -13,7 +13,11 @@ export interface Subscribe {
|
|||||||
|
|
||||||
// 搜索关键字
|
// 搜索关键字
|
||||||
keyword?: string
|
keyword?: string
|
||||||
|
|
||||||
|
// TMDB ID
|
||||||
tmdbid: number
|
tmdbid: number
|
||||||
|
|
||||||
|
// 豆瓣ID
|
||||||
doubanid?: string
|
doubanid?: string
|
||||||
|
|
||||||
// 季号
|
// 季号
|
||||||
@@ -63,6 +67,12 @@ export interface Subscribe {
|
|||||||
|
|
||||||
// 订阅站点
|
// 订阅站点
|
||||||
sites: number[]
|
sites: number[]
|
||||||
|
|
||||||
|
// 是否洗版
|
||||||
|
best_version: number
|
||||||
|
|
||||||
|
// 当前优先级
|
||||||
|
current_priority: number
|
||||||
}
|
}
|
||||||
|
|
||||||
// 历史记录
|
// 历史记录
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ const subscribeForm = reactive({
|
|||||||
|
|
||||||
// 订阅站点
|
// 订阅站点
|
||||||
sites: props.media?.sites,
|
sites: props.media?.sites,
|
||||||
|
|
||||||
|
// 是否洗版
|
||||||
|
best_version: !!props.media?.best_version,
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// 上一次更新时间
|
// 上一次更新时间
|
||||||
@@ -218,6 +222,7 @@ const dropdownItems = ref([
|
|||||||
<VCard
|
<VCard
|
||||||
v-if="cardState"
|
v-if="cardState"
|
||||||
:key="props.media?.id"
|
:key="props.media?.id"
|
||||||
|
:class="`${props.media?.best_version ? 'outline-dotted' : ''}`"
|
||||||
@click="editSubscribeDialog"
|
@click="editSubscribeDialog"
|
||||||
>
|
>
|
||||||
<template #image>
|
<template #image>
|
||||||
@@ -413,6 +418,14 @@ const dropdownItems = ref([
|
|||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
|
<VRow>
|
||||||
|
<VCol cols="12">
|
||||||
|
<VSwitch
|
||||||
|
v-model="subscribeForm.best_version"
|
||||||
|
label="洗版"
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
</VForm>
|
</VForm>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ const filteredDataList = computed(() => {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="filteredDataList.length > 0"
|
v-if="filteredDataList.length > 0"
|
||||||
class="grid gap-3 grid-subscribe-card"
|
class="grid gap-3 grid-subscribe-card p-1"
|
||||||
>
|
>
|
||||||
<SubscribeCard
|
<SubscribeCard
|
||||||
v-for="data in filteredDataList"
|
v-for="data in filteredDataList"
|
||||||
|
|||||||
Reference in New Issue
Block a user