Commit 18b54152 authored by 黄奎's avatar 黄奎
parents 05451848 bd6f50d4
...@@ -2044,6 +2044,7 @@ ...@@ -2044,6 +2044,7 @@
checkeds.push(x.checked) checkeds.push(x.checked)
} }
}) })
this.getNewChecked(checkeds,checkedsAll,type)
}else if(type==2){ }else if(type==2){
this.isIndeterminate2 = false this.isIndeterminate2 = false
this.list.HotelOrderListReport.forEach(x=>{ this.list.HotelOrderListReport.forEach(x=>{
...@@ -2054,6 +2055,7 @@ ...@@ -2054,6 +2055,7 @@
} }
}) })
}) })
this.getNewChecked(checkeds,checkedsAll,type)
}else if(type==3){ }else if(type==3){
this.isIndeterminate3 = false this.isIndeterminate3 = false
this.list.DiningList.forEach(x=>{ this.list.DiningList.forEach(x=>{
...@@ -2064,6 +2066,7 @@ ...@@ -2064,6 +2066,7 @@
} }
}) })
}) })
this.getNewChecked(checkeds,checkedsAll,type)
}else if(type==4){ }else if(type==4){
this.isIndeterminate4 = false this.isIndeterminate4 = false
this.list.ScenicList.forEach(x=>{ this.list.ScenicList.forEach(x=>{
...@@ -2074,8 +2077,9 @@ ...@@ -2074,8 +2077,9 @@
} }
}) })
}) })
this.getNewChecked(checkeds,checkedsAll,type)
} }
this.getNewChecked(checkeds,checkedsAll,type) this.$forceUpdate()
}, },
getNewChecked(checkeds,checkedsAll,type){ getNewChecked(checkeds,checkedsAll,type){
if(checkeds.length>0&&checkeds.length==checkedsAll.length){ if(checkeds.length>0&&checkeds.length==checkedsAll.length){
...@@ -2091,10 +2095,9 @@ ...@@ -2091,10 +2095,9 @@
}else if(checkeds.length==0){ }else if(checkeds.length==0){
if(type==1){ this.checkedAll1 = false } if(type==1){ this.checkedAll1 = false }
if(type==2){ this.checkedAll2 = false } if(type==2){ this.checkedAll2 = false }
else if(type==3){ this.checkedAll3 = true } else if(type==3){ this.checkedAll3 = false }
else if(type==4){ this.checkedAll4 = true } else if(type==4){ this.checkedAll4 = false }
} }
// this.$forceUpdate()
}, },
// 全选 // 全选
getCheckedAll(type){ getCheckedAll(type){
......
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