Commit 5bae929f authored by 黄奎's avatar 黄奎

查询报错Bug修改

parent a539c102
...@@ -260,17 +260,13 @@ export default { ...@@ -260,17 +260,13 @@ export default {
this.loadTeamData() this.loadTeamData()
}, },
loadTeamData(){ loadTeamData(){
// if(this.keywords=='') {
// this.Info('请输入搜索关键字')
// return
// }
let minTripDay=-1,maxTripDay=-1,minPrice=-1,maxPrice=-1,startDate='',endDate='',startCityId=0 let minTripDay=-1,maxTripDay=-1,minPrice=-1,maxPrice=-1,startDate='',endDate='',startCityId=0
let search0=""; let search0="";
let search1=""; let search1="";
if(this.searchItem[0]!='' && this.searchItem[0]!='0') { if(this.searchItem[0]!='' && this.searchItem[0]!='0') {
this.lines.forEach(x=>{ this.lines.forEach(x=>{
if(x.name==this.searchItem[0]){ if(x.name==this.searchItem[0]){
lineId=x.id; this.lineId=x.id;
search0=x.name; search0=x.name;
} }
}) })
...@@ -279,7 +275,7 @@ export default { ...@@ -279,7 +275,7 @@ export default {
if(this.searchItem[1]!='' && this.searchItem[1]!='0') { if(this.searchItem[1]!='' && this.searchItem[1]!='0') {
this.xilies.forEach(x=>{ this.xilies.forEach(x=>{
if(x.name==this.searchItem[1]){ if(x.name==this.searchItem[1]){
lineTeamId=x.id; this.lineTeamId=x.id;
search1=x.name; search1=x.name;
} }
}) })
...@@ -450,7 +446,6 @@ export default { ...@@ -450,7 +446,6 @@ export default {
if(this.companyId!=-1){ if(this.companyId!=-1){
this.apipost('b2b_get_GetGroupSearchItem',{'companyId':this.companyId,cityId:this.cityId},r=>{ this.apipost('b2b_get_GetGroupSearchItem',{'companyId':this.companyId,cityId:this.cityId},r=>{
this.lines=r.data.data.line this.lines=r.data.data.line
console.log("this.lines",this.lines)
if(this.$route.query.lineId&&this.$route.query.lineteamId){ if(this.$route.query.lineId&&this.$route.query.lineteamId){
this.lineId=this.$route.query.lineId; this.lineId=this.$route.query.lineId;
this.lineteamId=this.$route.query.lineteamId; this.lineteamId=this.$route.query.lineteamId;
......
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