Commit 172d9cd1 authored by 罗超's avatar 罗超

完成列表页调整

parent cb8925a4
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
<text style="font-size: 28rpx;color:#111;font-weight: 800;margin-right: 10rpx;">{{x.DestinationName}}</text> <text style="font-size: 28rpx;color:#111;font-weight: 800;margin-right: 10rpx;">{{x.DestinationName}}</text>
</view> </view>
<view class="team-box"> <view class="team-box">
<view v-for="(y,yi) in x.Teams" :key="i" class="team" :class="{'active':msg.team.indexOf(y.TeamId)!=-1}" <view v-for="(y,yi) in x.Teams" :key="yi" class="team" :class="{'active':msg.team.indexOf(y.TeamId)!=-1}"
@click="setTeams(y.TeamId)"> @click="setTeams(y.TeamId)">
<view class="team-content">{{y.TeamName}}</view> <view class="team-content">{{y.TeamName}}</view>
</view> </view>
...@@ -596,6 +596,8 @@ ...@@ -596,6 +596,8 @@
this.msg.team.push(parseInt(x)); this.msg.team.push(parseInt(x));
}) })
} }
}else if(option && option.lineId){
this.msg.lineId=option.lineId
} }
if(option&&option.PlaceIds){ if(option&&option.PlaceIds){
this.msg.PlaceIds = option.PlaceIds this.msg.PlaceIds = option.PlaceIds
...@@ -614,7 +616,6 @@ ...@@ -614,7 +616,6 @@
this.allTeams=false this.allTeams=false
this.currentLineId=item this.currentLineId=item
//changeTeam //changeTeam
}, },
//获取查询条件 //获取查询条件
getLineQuery() { getLineQuery() {
...@@ -630,6 +631,17 @@ ...@@ -630,6 +631,17 @@
this.currentBrachName = this.branchList[0].BName; this.currentBrachName = this.branchList[0].BName;
this.CityId = this.branchList[0].CityId; this.CityId = this.branchList[0].CityId;
this.currentLineId = this.lineList[0] this.currentLineId = this.lineList[0]
if(this.msg.lineId!=0){
let temp = this.lineList.find(x=>x.LineID==this.msg.lineId)
if(temp){
this.currentLineId=temp
this.optionsTitle[1] = temp.LineShortName
}else{
this.currentLineId = this.lineList[0]
}
}else{
this.currentLineId = this.lineList[0]
}
//let temp = '' //let temp = ''
// if(this.msg.team.length>0){ // if(this.msg.team.length>0){
// if(this.lineList.length>0){ // if(this.lineList.length>0){
...@@ -725,10 +737,12 @@ ...@@ -725,10 +737,12 @@
} else { } else {
let temp = '' let temp = ''
this.lineList.forEach(x => { this.lineList.forEach(x => {
x.Teams.forEach(y => { x.PlaceList.forEach(y=>{
if (this.msg.team.indexOf(y.TeamId) != -1) { y.Teams.forEach(z => {
temp += y.TeamName + "," if (this.msg.team.indexOf(z.TeamId) != -1) {
} temp += z.TeamName + ","
}
})
}) })
}) })
this.optionsTitle[1] = temp this.optionsTitle[1] = temp
...@@ -741,7 +755,6 @@ ...@@ -741,7 +755,6 @@
this.research(); this.research();
}, },
setTeams(teamId) { setTeams(teamId) {
console.log(teamId,this.msg.team)
let id = teamId let id = teamId
let temp = this.msg.team.indexOf(id) let temp = this.msg.team.indexOf(id)
if (temp == -1) { if (temp == -1) {
......
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