修改选择维修项目搜索功能
This commit is contained in:
@@ -129,5 +129,10 @@
|
||||
},
|
||||
"vueVersion" : "3",
|
||||
"locale" : "zh-Hans",
|
||||
"fallbackLocale" : "zh-Hans"
|
||||
"fallbackLocale" : "zh-Hans",
|
||||
"app-harmony" : {
|
||||
"distribute" : {
|
||||
"bundleName" : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ const searchKey = ref('')
|
||||
const currentProjectList = computed(() => {
|
||||
let list = projectList.value.filter(item => item.categoryId === activeCategory.value)
|
||||
if (searchKey.value) {
|
||||
list = list.filter(item => item.name.includes(searchKey.value))
|
||||
list = list.filter(item => item.projectName.includes(searchKey.value))
|
||||
}
|
||||
return list
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user