Commit 2fc8e464 authored by zhangyanni's avatar zhangyanni

筛选

parent 7ae38b9b
......@@ -50,17 +50,19 @@
this.searchData.companyNationIds = [1];
this.searchData.companyProvinceIds = b;
this.searchData.companyCityIds = c;
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
}else{
if(!!b) {
this.searchData.companyNationIds = b;
this.$store.dispatch('saveListPagePars',{path:this.$route.path,pars:this.searchData});
}
else {
this.searchData.companyNationIds = [-1];
this.searchData.companyProvinceIds = [];
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);
},
......
......@@ -309,12 +309,16 @@
},
},
mounted(){
if(this.searchReturnData){
},
watch:{
searchReturnData(val){
if(this.searchReturnData.companyNationIds){
this.wholecheck = [];
if(this.searchReturnData.companyNationIds[0]==1) {
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.overseas = [];
this.provinceIf = true;
......@@ -334,7 +338,8 @@
}else{
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.checkprovince = [];
this.checkcity = [];
......@@ -353,11 +358,6 @@
}
}
}
},
watch:{
searchReturnData(val){
}
}
}
</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