|
@@ -213,7 +213,28 @@ const sizeChange = (limits) => {
|
|
|
currentPage.value = 1
|
|
|
search({ skip: 0, limit: limit })
|
|
|
}
|
|
|
-const toSelect = (data, type) => {
|
|
|
+// 筛选条件
|
|
|
+const toSearchFind = async () => {
|
|
|
+ if (industry.value && industry.value.length > 0) {
|
|
|
+ searchForm.value.industry = industry.value.map((i) => {
|
|
|
+ return i.title
|
|
|
+ })
|
|
|
+ } else delete searchForm.value.industry
|
|
|
+ if (field.value && field.value.length > 0) {
|
|
|
+ searchForm.value.field = field.value.map((i) => {
|
|
|
+ return i.label
|
|
|
+ })
|
|
|
+ } else delete searchForm.value.field
|
|
|
+ if (city.value && city.value.length > 0) {
|
|
|
+ searchForm.value.area = city.value.map((i) => {
|
|
|
+ return i.name
|
|
|
+ })
|
|
|
+ } else delete searchForm.value.area
|
|
|
+
|
|
|
+ await search({ skip, limit })
|
|
|
+}
|
|
|
+
|
|
|
+const toSelect = async (data, type) => {
|
|
|
if (data.is_active) {
|
|
|
toDel(data, type)
|
|
|
} else {
|
|
@@ -262,8 +283,9 @@ const toSelect = (data, type) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ await toSearchFind()
|
|
|
}
|
|
|
-const toDel = (data, type) => {
|
|
|
+const toDel = async (data, type) => {
|
|
|
if (type == '1') {
|
|
|
for (const val of plateList.value) {
|
|
|
if (data.id == val.id) val.is_active = false
|
|
@@ -295,6 +317,7 @@ const toDel = (data, type) => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ await toSearchFind()
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|