|
|
@ -324,30 +324,36 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if(_curTarget.type !== 'empty_venue')return; |
|
|
|
|
|
|
|
_venueList[i].items[j]._isSelect = !_curTarget._isSelect; |
|
|
|
let _ctnList = []; // 提示用, 连场列表 |
|
|
|
|
|
|
|
// 连场判断, 需要循环当前列表 |
|
|
|
_venueList[i].items = _venueList[i].items.map(e=>{ |
|
|
|
|
|
|
|
let _flag = e.time_arrow_id&& // 不连场为空 |
|
|
|
// e.is_valid&& // 已售为false |
|
|
|
e.time_arrow_id == _curTarget.time_arrow_id; |
|
|
|
// -----> |
|
|
|
// let _ctnList = []; // 提示用, 连场列表 |
|
|
|
|
|
|
|
if(_flag)e._isSelect = !_curTarget._isSelect; |
|
|
|
// // 连场判断, 需要循环当前列表 |
|
|
|
// _venueList[i].items = _venueList[i].items.map(e=>{ |
|
|
|
|
|
|
|
if(_flag&&!_curTarget._isSelect)_ctnList.push(e); |
|
|
|
// let _flag = e.time_arrow_id&& // 不连场为空 |
|
|
|
// // e.is_valid&& // 已售为false |
|
|
|
// e.time_arrow_id == _curTarget.time_arrow_id; |
|
|
|
|
|
|
|
return e; |
|
|
|
}) || []; |
|
|
|
// if(_flag)e._isSelect = !_curTarget._isSelect; |
|
|
|
|
|
|
|
// if(_flag&&!_curTarget._isSelect)_ctnList.push(e); |
|
|
|
|
|
|
|
// return e; |
|
|
|
// }) || []; |
|
|
|
|
|
|
|
// -----> |
|
|
|
|
|
|
|
this.venueList = _venueList; |
|
|
|
this.$nextTick(_=>{ |
|
|
|
if(_ctnList.length>1){ |
|
|
|
let _tipStr = `${_ctnList[0].duration}-${_ctnList[_ctnList.length-1].duration}为连场预订` |
|
|
|
util.showModal({ title: '连场提示!', content: _tipStr }); |
|
|
|
} |
|
|
|
this.$forceUpdate(); |
|
|
|
// if(_ctnList.length>1){ |
|
|
|
// let _tipStr = `${_ctnList[0].duration}-${_ctnList[_ctnList.length-1].duration}为连场预订` |
|
|
|
// util.showModal({ title: '连场提示!', content: _tipStr }); |
|
|
|
// } |
|
|
|
// this.$forceUpdate(); |
|
|
|
this.getSelectedVenues(); |
|
|
|
}) |
|
|
|
}, |
|
|
|