重写筛选组件
This commit is contained in:
@@ -153,7 +153,6 @@ onMounted(() => {
|
||||
// seachAllType = {...seachAllType, ...pitchValue}
|
||||
})
|
||||
|
||||
|
||||
//获取区域下列数据
|
||||
let getLocationData = data => {
|
||||
for (let item in data) {
|
||||
@@ -212,13 +211,15 @@ let setLocation = (type, data, isupdate = true) => {
|
||||
|
||||
//设置搜索数据 type: 类型 data: 数据 second: 二级数据
|
||||
let setSeachConditions = (type, data, second = null) => {
|
||||
console.log("赋值前的数据:",seachAllType);
|
||||
console.log("赋值前的数据:", seachAllType)
|
||||
if (type === "rent") {
|
||||
seachAllType["rent_min"] = data.min
|
||||
seachAllType["rent_max"] = data.max
|
||||
} else if (type !== "") { // 这里是正常的数据 直接赋值
|
||||
} else if (type !== "") {
|
||||
// 这里是正常的数据 直接赋值
|
||||
seachAllType[type] = data
|
||||
} else if (type === "") { // 电梯 阳台 认证 那些是传数组的
|
||||
} else if (type === "") {
|
||||
// 电梯 阳台 认证 那些是传数组的
|
||||
data.indexOf("isintermediary") !== -1 ? (seachAllType["isintermediary"] = 1) : (seachAllType["isintermediary"] = 0)
|
||||
data.indexOf("isverified") !== -1 ? (seachAllType["isverified"] = 1) : (seachAllType["isverified"] = 0)
|
||||
data.indexOf("iselevator") !== -1 ? (seachAllType["iselevator"] = 1) : (seachAllType["iselevator"] = 0)
|
||||
@@ -231,8 +232,8 @@ let setSeachConditions = (type, data, second = null) => {
|
||||
if (second) {
|
||||
seachAllType[second.type] = second.id
|
||||
}
|
||||
console.log(type, data, second);
|
||||
console.log("保存前的处理数据:", seachAllType);
|
||||
console.log(type, data, second)
|
||||
console.log("保存前的处理数据:", seachAllType)
|
||||
|
||||
getDataList(seachAllType)
|
||||
}
|
||||
|
||||
1308
src/components/seachModule/seachModule1.vue
Normal file
1308
src/components/seachModule/seachModule1.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user