mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 03:27:54 +08:00
Refactor AccountSettingSearch.vue to update the label for filter rule group to "优先级规则组"
Fix AccountSettingSite.vue to set COOKIECLOUD_ENABLE_LOCAL to false by default Refactor AccountSettingSubscribe.vue to add support for selecting best version rule group for subscription filtering
This commit is contained in:
@@ -161,7 +161,7 @@ onMounted(() => {
|
|||||||
multiple
|
multiple
|
||||||
chips
|
chips
|
||||||
:items="filterRuleGroupOptions"
|
:items="filterRuleGroupOptions"
|
||||||
label="过滤规则组"
|
label="优先级规则组"
|
||||||
hint="搜索媒体信息时按选定的过滤规则组对结果进行过滤"
|
hint="搜索媒体信息时按选定的过滤规则组对结果进行过滤"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const siteSetting = ref({
|
|||||||
COOKIECLOUD_PASSWORD: '',
|
COOKIECLOUD_PASSWORD: '',
|
||||||
COOKIECLOUD_INTERVAL: 0,
|
COOKIECLOUD_INTERVAL: 0,
|
||||||
USER_AGENT: '',
|
USER_AGENT: '',
|
||||||
COOKIECLOUD_ENABLE_LOCAL: '',
|
COOKIECLOUD_ENABLE_LOCAL: false,
|
||||||
COOKIECLOUD_BLACKLIST: '',
|
COOKIECLOUD_BLACKLIST: '',
|
||||||
SITEDATA_REFRESH_INTERVAL: 0,
|
SITEDATA_REFRESH_INTERVAL: 0,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -12,9 +12,12 @@ const allSites = ref<Site[]>([])
|
|||||||
// 选中订阅站点
|
// 选中订阅站点
|
||||||
const selectedRssSites = ref<number[]>([])
|
const selectedRssSites = ref<number[]>([])
|
||||||
|
|
||||||
// 选中的优先级规则组
|
// 选中的订阅规则组
|
||||||
const selectedFilterRuleGroup = ref([])
|
const selectedFilterRuleGroup = ref([])
|
||||||
|
|
||||||
|
// 选中的洗版规则组
|
||||||
|
const selectedBestVersionRuleGroup = ref([])
|
||||||
|
|
||||||
// 是否开启订阅定时搜索
|
// 是否开启订阅定时搜索
|
||||||
const enableIntervalSearch = ref(false)
|
const enableIntervalSearch = ref(false)
|
||||||
|
|
||||||
@@ -109,9 +112,12 @@ async function querySubscribeSetting() {
|
|||||||
// 查询站点RSS周期
|
// 查询站点RSS周期
|
||||||
const result3: { [key: string]: any } = await api.get('system/setting/SUBSCRIBE_RSS_INTERVAL')
|
const result3: { [key: string]: any } = await api.get('system/setting/SUBSCRIBE_RSS_INTERVAL')
|
||||||
if (result3.success) selectedRssInterval.value = result3.data?.value
|
if (result3.success) selectedRssInterval.value = result3.data?.value
|
||||||
// 查询优先级规则组
|
// 查询订阅规则组
|
||||||
const result4: { [key: string]: any } = await api.get('system/setting/SubscribeFilterRuleGroups')
|
const result4: { [key: string]: any } = await api.get('system/setting/SubscribeFilterRuleGroups')
|
||||||
if (result4.success) selectedFilterRuleGroup.value = result4.data?.value
|
if (result4.success) selectedFilterRuleGroup.value = result4.data?.value
|
||||||
|
// 查询洗版规则组
|
||||||
|
const result5: { [key: string]: any } = await api.get('system/setting/BestVersionFilterRuleGroups')
|
||||||
|
if (result5.success) selectedBestVersionRuleGroup.value = result5.data?.value
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
@@ -137,7 +143,13 @@ async function saveSubscribeSetting() {
|
|||||||
selectedFilterRuleGroup.value,
|
selectedFilterRuleGroup.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (result1.success && result2.success && result3.success && result4.success) $toast.success('订阅设置保存成功')
|
const result5: { [key: string]: any } = await api.post(
|
||||||
|
'system/setting/BestVersionFilterRuleGroups',
|
||||||
|
selectedBestVersionRuleGroup.value,
|
||||||
|
)
|
||||||
|
|
||||||
|
if (result1.success && result2.success && result3.success && result4.success && result5.success)
|
||||||
|
$toast.success('订阅设置保存成功')
|
||||||
else $toast.error('订阅设置保存失败!')
|
else $toast.error('订阅设置保存失败!')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
@@ -181,17 +193,28 @@ onMounted(() => {
|
|||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="12">
|
<VCol cols="12" md="6">
|
||||||
<VSelect
|
<VSelect
|
||||||
v-model="selectedFilterRuleGroup"
|
v-model="selectedFilterRuleGroup"
|
||||||
:items="filterRuleGroupOptions"
|
:items="filterRuleGroupOptions"
|
||||||
chips
|
chips
|
||||||
multiple
|
multiple
|
||||||
label="优先级规则组"
|
label="订阅优先级规则组"
|
||||||
hint="按选定的过滤规则组对订阅进行过滤"
|
hint="按选定的过滤规则组对订阅进行过滤"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VSelect
|
||||||
|
v-model="selectedBestVersionRuleGroup"
|
||||||
|
:items="filterRuleGroupOptions"
|
||||||
|
chips
|
||||||
|
multiple
|
||||||
|
label="洗版优先级规则组"
|
||||||
|
hint="按选定的过滤规则组对洗版订阅进行过滤"
|
||||||
|
persistent-hint
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow>
|
<VRow>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
|
|||||||
Reference in New Issue
Block a user