zs há 6 meses atrás
pai
commit
2d5e4a0cf8
1 ficheiros alterados com 4 adições e 0 exclusões
  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 () => {
 const oneChange = async () => {
   if (checked1.value && checked1.value.length > 0) searchForm.value.industry = checked1.value
   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
   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
   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
   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 = {}
   if (checked1.value.length == 0 && checked2.value.length == 0 && checked3.value.length == 0 && checked4.value.length == 0) searchForm.value = {}
   await search({ skip, limit })
   await search({ skip, limit })
 }
 }