|
@@ -94,7 +94,7 @@ export default {
|
|
|
this.moveSelected.style.bottom=Number(this.moveSelected.style.top.split('px')[0])+Number(this.moveSelected.style.height.split('px')[0]) + 'px';
|
|
|
this.moveSelected.style.right=Number(this.moveSelected.style.left.split('px')[0])+Number(this.moveSelected.style.width.split('px')[0])+'px';
|
|
|
this.flag=false;
|
|
|
- if( this.isMousemove){
|
|
|
+ if(this.isMousemove){
|
|
|
this.getSelectItem()
|
|
|
}else {
|
|
|
// let id = event.srcElement.getAttribute('dragSelectId')
|
|
@@ -145,6 +145,8 @@ export default {
|
|
|
let drawDialog = document.getElementById("moveSelected");
|
|
|
// 获取div元素的坐标点
|
|
|
let rect = drawDialog.getBoundingClientRect();
|
|
|
+ // let drawDialog = this.$refs.moveSelected;
|
|
|
+ // let rect = drawDialog.getBoundingClientRect();
|
|
|
for(let i = 0; i < list.length; i++) {
|
|
|
let rect_div = list[i].getBoundingClientRect();
|
|
|
//console.log("rect===",list[i].getAttribute('index'),rect_div.top,rect_div.left)
|
|
@@ -153,6 +155,7 @@ export default {
|
|
|
listCopy.push(list[i].getAttribute("dragSelectId"));
|
|
|
}
|
|
|
}
|
|
|
+ console.log(listCopy,'listCopy');
|
|
|
let listCopy1 = [] // 已选择的座位
|
|
|
listCopy.forEach((item,index)=>{
|
|
|
this.setList.forEach((item1,index1)=>{
|
|
@@ -161,6 +164,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ console.log(listCopy1,'listCopy1');
|
|
|
let flog = false;
|
|
|
let seatTypeId = null
|
|
|
let occupyStatus = listCopy1.length>0?listCopy1[0].occupyStatus:null
|
|
@@ -256,7 +260,8 @@ export default {
|
|
|
*
|
|
|
*
|
|
|
*/
|
|
|
- if( listCopy1.length > this.seatTypeLimit['seatNum_'+listCopy1[0].seatTypeId].stockTotal-this.seatTypeLimit['seatNum_'+listCopy1[0].seatTypeId].stockYes ) {
|
|
|
+ console.log(listCopy1,this.seatTypeLimit,'listCopy1');
|
|
|
+ if(listCopy1.length > this.seatTypeLimit['seatNum_'+listCopy1[0].seatTypeId].stockTotal-this.seatTypeLimit['seatNum_'+listCopy1[0].seatTypeId].stockYes) {
|
|
|
this.$message.error('选择的座位类型已超过库存!!!');
|
|
|
return
|
|
|
}
|
|
@@ -287,7 +292,7 @@ export default {
|
|
|
this.seatSelectListNo = this.seatSelectListNo.concat(listCopy2)
|
|
|
// 配置该用户 可以购买锁定票
|
|
|
if(this.isBuylock === 1) {
|
|
|
- console.log(this.isBuylock,'this.isBuylock33');
|
|
|
+ // console.log(this.isBuylock,'this.isBuylock33');
|
|
|
this.seatSelectList = this.seatSelectList.concat(listCopy2)
|
|
|
}
|
|
|
}else {
|
|
@@ -296,8 +301,8 @@ export default {
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
this.$emit('selectSeat',this.seatSelectList)
|
|
|
- console.log("listCopy===",listCopy)
|
|
|
- console.log("listCopy1===",listCopy1)
|
|
|
+ // console.log("listCopy===",listCopy)
|
|
|
+ // console.log("listCopy1===",listCopy1)
|
|
|
},
|
|
|
/** 清除全部已选 */
|
|
|
clearSeatSelectListAll () {
|