zs 6 months ago
parent
commit
2d5e4a0cf8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/search/parts/project.vue

+ 4 - 0
src/views/search/parts/project.vue

@@ -194,9 +194,13 @@ const sizeChange = (limits) => {
 // 选择
 const oneChange = async () => {
   if (checked1.value && checked1.value.length > 0) searchForm.value.industry = checked1.value
+  else delete searchForm.value.industry
   if (checked2.value && checked2.value.length > 0) searchForm.value.field = checked2.value
+  else delete searchForm.value.field
   if (checked3.value && checked3.value.length > 0) searchForm.value.area = checked3.value
+  else delete searchForm.value.area
   if (checked4.value && checked4.value.length > 0) searchForm.value.maturity = checked4.value
+  else delete searchForm.value.maturity
   if (checked1.value.length == 0 && checked2.value.length == 0 && checked3.value.length == 0 && checked4.value.length == 0) searchForm.value = {}
   await search({ skip, limit })
 }