mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix ui
This commit is contained in:
@@ -87,6 +87,14 @@ const statusItems = [
|
|||||||
{ title: '停用', value: false },
|
{ title: '停用', value: false },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// 生成1到50的优先级下拉框选项
|
||||||
|
const priorityItems = ref(
|
||||||
|
Array.from({ length: 50 }, (_, i) => i + 1).map(item => ({
|
||||||
|
title: item,
|
||||||
|
value: item,
|
||||||
|
})),
|
||||||
|
)
|
||||||
|
|
||||||
// 站点编辑表单数据
|
// 站点编辑表单数据
|
||||||
const siteForm = reactive<any>(cardProps.site ?? {})
|
const siteForm = reactive<any>(cardProps.site ?? {})
|
||||||
|
|
||||||
@@ -456,7 +464,7 @@ onMounted(() => {
|
|||||||
<VSelect
|
<VSelect
|
||||||
v-model="siteForm.pri"
|
v-model="siteForm.pri"
|
||||||
label="优先级"
|
label="优先级"
|
||||||
:items="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
|
:items="priorityItems"
|
||||||
:rules="[requiredValidator]"
|
:rules="[requiredValidator]"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|||||||
@@ -30,6 +30,14 @@ const statusItems = [
|
|||||||
{ title: '停用', value: false },
|
{ title: '停用', value: false },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// 生成1到50的优先级下拉框选项
|
||||||
|
const priorityItems = ref(
|
||||||
|
Array.from({ length: 50 }, (_, i) => i + 1).map(item => ({
|
||||||
|
title: item,
|
||||||
|
value: item,
|
||||||
|
})),
|
||||||
|
)
|
||||||
|
|
||||||
// 站点编辑表单数据
|
// 站点编辑表单数据
|
||||||
const siteForm = reactive<Site>({
|
const siteForm = reactive<Site>({
|
||||||
id: 0,
|
id: 0,
|
||||||
@@ -161,7 +169,7 @@ onBeforeMount(fetchData)
|
|||||||
<VSelect
|
<VSelect
|
||||||
v-model="siteForm.pri"
|
v-model="siteForm.pri"
|
||||||
label="优先级"
|
label="优先级"
|
||||||
:items="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
|
:items="priorityItems"
|
||||||
:rules="[requiredValidator]"
|
:rules="[requiredValidator]"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|||||||
Reference in New Issue
Block a user