Commit 2fc8e464 authored by zhangyanni's avatar zhangyanni

筛选

parent 7ae38b9b
...@@ -50,17 +50,19 @@ ...@@ -50,17 +50,19 @@
this.searchData.companyNationIds = [1]; this.searchData.companyNationIds = [1];
this.searchData.companyProvinceIds = b; this.searchData.companyProvinceIds = b;
this.searchData.companyCityIds = c; this.searchData.companyCityIds = c;
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
}else{ }else{
if(!!b) { if(!!b) {
this.searchData.companyNationIds = b; this.searchData.companyNationIds = b;
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
} }
else { else {
this.searchData.companyNationIds = [-1]; this.searchData.companyNationIds = [-1];
this.searchData.companyProvinceIds = []; this.searchData.companyProvinceIds = [];
this.searchData.companyCityIds = []; this.searchData.companyCityIds = [];
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
} }
} }
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
this.$emit('active',this.searchData); this.$emit('active',this.searchData);
}, },
......
...@@ -309,12 +309,16 @@ ...@@ -309,12 +309,16 @@
}, },
}, },
mounted(){ mounted(){
if(this.searchReturnData){
},
watch:{
searchReturnData(val){
if(this.searchReturnData.companyNationIds){ if(this.searchReturnData.companyNationIds){
this.wholecheck = []; this.wholecheck = [];
if(this.searchReturnData.companyNationIds[0]==1) { if(this.searchReturnData.companyNationIds[0]==1) {
this.$set(this.cityList[0],"checked",true) this.$set(this.cityList[0],"checked",true)
this.$set(this.checkboxlocation,0,this.$t("Otherjson.domestic")) this.checkboxlocation.push(this.$t("Otherjson.domestic"))
// this.$set(this.checkboxlocation,0,this.$t("Otherjson.domestic"))
this.wholecheck = []; this.wholecheck = [];
this.overseas = []; this.overseas = [];
this.provinceIf = true; this.provinceIf = true;
...@@ -334,7 +338,8 @@ ...@@ -334,7 +338,8 @@
}else{ }else{
this.$set(this.cityList[1],"checked",true); this.$set(this.cityList[1],"checked",true);
this.$set(this.checkboxlocation,0,this.$t("Otherjson.overseas")); this.checkboxlocation.push(this.$t("Otherjson.overseas"))
// this.$set(this.checkboxlocation,0,this.$t("Otherjson.overseas"));
this.wholecheck = []; this.wholecheck = [];
this.checkprovince = []; this.checkprovince = [];
this.checkcity = []; this.checkcity = [];
...@@ -353,11 +358,6 @@ ...@@ -353,11 +358,6 @@
} }
} }
} }
},
watch:{
searchReturnData(val){
}
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment