mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
feat(ReorganizeDialog): 添加文件操作整理方式选项
This commit is contained in:
@@ -71,3 +71,10 @@ export const storageDict = storageOptions.reduce((dict, item) => {
|
|||||||
dict[item.value] = item.title
|
dict[item.value] = item.title
|
||||||
return dict
|
return dict
|
||||||
}, {} as Record<string, string>)
|
}, {} as Record<string, string>)
|
||||||
|
|
||||||
|
export const transferTypeOptions = [
|
||||||
|
{ title: '复制', value: 'copy' },
|
||||||
|
{ title: '移动', value: 'move' },
|
||||||
|
{ title: '硬链接', value: 'link' },
|
||||||
|
{ title: '软链接', value: 'softlink' },
|
||||||
|
]
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { numberValidator } from '@/@validators'
|
|||||||
import { useDisplay } from 'vuetify'
|
import { useDisplay } from 'vuetify'
|
||||||
import ProgressDialog from './ProgressDialog.vue'
|
import ProgressDialog from './ProgressDialog.vue'
|
||||||
import { FileItem } from '@/api/types'
|
import { FileItem } from '@/api/types'
|
||||||
|
import { transferTypeOptions } from '@/api/constants'
|
||||||
|
|
||||||
// 显示器宽度
|
// 显示器宽度
|
||||||
const display = useDisplay()
|
const display = useDisplay()
|
||||||
@@ -75,7 +76,7 @@ const transferForm = reactive({
|
|||||||
doubanid: null,
|
doubanid: null,
|
||||||
season: null,
|
season: null,
|
||||||
type_name: '',
|
type_name: '',
|
||||||
transfer_type: '',
|
transfer_type: 'copy',
|
||||||
episode_format: '',
|
episode_format: '',
|
||||||
episode_detail: '',
|
episode_detail: '',
|
||||||
episode_part: '',
|
episode_part: '',
|
||||||
@@ -190,13 +191,7 @@ async function handleTransferLog(logid: number) {
|
|||||||
<VSelect
|
<VSelect
|
||||||
v-model="transferForm.transfer_type"
|
v-model="transferForm.transfer_type"
|
||||||
label="整理方式"
|
label="整理方式"
|
||||||
:items="[
|
:items="transferTypeOptions"
|
||||||
{ title: '默认', value: '' },
|
|
||||||
{ title: '移动', value: 'move' },
|
|
||||||
{ title: '复制', value: 'copy' },
|
|
||||||
{ title: '硬链接', value: 'link' },
|
|
||||||
{ title: '软链接', value: 'softlink' },
|
|
||||||
]"
|
|
||||||
hint="文件操作整理方式"
|
hint="文件操作整理方式"
|
||||||
persistent-hint
|
persistent-hint
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user