完善预测页面的筛选

This commit is contained in:
xz2000 2025-07-23 17:49:23 +08:00
parent 87cc7b4d03
commit 4ed92a1bc6
3 changed files with 6 additions and 6 deletions

View File

@ -116,12 +116,12 @@ const filters = reactive({
const pagination = reactive({
currentPage: 1,
pageSize: 8
pageSize: 12
})
const filteredModelList = computed(() => {
return modelList.value.filter(model => {
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type.id
return modelTypeMatch
})
})

View File

@ -125,13 +125,13 @@ const filters = reactive({
const pagination = reactive({
currentPage: 1,
pageSize: 8
pageSize: 12
})
const filteredModelList = computed(() => {
return modelList.value.filter(model => {
const productMatch = !filters.product_id || model.product_id === filters.product_id
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type.id
return productMatch && modelTypeMatch
})
})

View File

@ -126,7 +126,7 @@ const filters = reactive({
const pagination = reactive({
currentPage: 1,
pageSize: 8
pageSize: 12
})
const storeNameMap = computed(() => {
@ -146,7 +146,7 @@ const modelsWithNames = computed(() => {
const filteredModelList = computed(() => {
return modelsWithNames.value.filter(model => {
const storeMatch = !filters.store_id || model.store_id === filters.store_id
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type
const modelTypeMatch = !filters.model_type || model.model_type === filters.model_type.id
return storeMatch && modelTypeMatch
})
})