|  | @@ -90,18 +90,18 @@
 | 
	
		
			
				|  |  |                <div class="box-bottom-class scroll-container" style="position: absolute; width: 100%; height: 100%" id="drawBox" v-drag :style="{ width: boxWidth ? boxWidth + 'px' : '100%', height: boxWidth ? boxWidth + 'px' : '100%'}" ref="seatBox" v-if="seatType">
 | 
	
		
			
				|  |  |                  <div v-for="row in seatMap.row" :key="row" style="display: inline-block">
 | 
	
		
			
				|  |  |                    <div class="seat-tag"
 | 
	
		
			
				|  |  | -                       :id="row+'_'+col"
 | 
	
		
			
				|  |  | -                       @click.stop="setSeatTemplateMap(row, col)"
 | 
	
		
			
				|  |  | -                       v-for="col in seatMap.col"
 | 
	
		
			
				|  |  | +                       :id="(((row - 1) * seatMap.col) + index + '_')"
 | 
	
		
			
				|  |  | +                       @click.stop="setSeatTemplateMap((((row - 1) * seatMap.col) + index + '_'))"
 | 
	
		
			
				|  |  | +                       v-for="(col, index) in seatMap.col"
 | 
	
		
			
				|  |  |                         :key="col"
 | 
	
		
			
				|  |  |                         :style="{
 | 
	
		
			
				|  |  |                         width: seatWidth + 'px',
 | 
	
		
			
				|  |  |                         height: seatWidth + 'px',
 | 
	
		
			
				|  |  | -                       backgroundColor: colSeatMap[row+'_'+col] && colSeatMap[row+'_'+col].color ? colSeatMap[row+'_'+col].color : ''}"
 | 
	
		
			
				|  |  | +                       backgroundColor: colSeatMap[((row - 1) * seatMap.col) + index + '_'] && colSeatMap[((row - 1) * seatMap.col) + index + '_'].color ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].color : ''}"
 | 
	
		
			
				|  |  |                    >
 | 
	
		
			
				|  |  |                      <div v-if="seatWidth > 160" :style="{paddingTop: (seatWidth / 4) + 'px', width: seatWidth + 'px', height: seatWidth + 'px'}" class="seat-p-class">
 | 
	
		
			
				|  |  | -                      <p style="font-size: 16px !important;"><span>{{colSeatMap[row+'_'+col].name ? colSeatMap[row+'_'+col].name : (colSeatMap[row+'_'+col].rowNo + '排' + colSeatMap[row+'_'+col].columnNo + '座')}}</span><span style="font-size: 14px !important;" v-if="colSeatMap[row+'_'+col].seatLabel">({{colSeatMap[row+'_'+col].seatLabel}})</span></p>
 | 
	
		
			
				|  |  | -                      <p style="font-size: 14px !important;" v-if="colSeatMap[row+'_'+col].priority">自动分配优先级 <span>({{colSeatMap[row+'_'+col].priority}})</span></p>
 | 
	
		
			
				|  |  | +                      <p style="font-size: 16px !important;"><span>{{colSeatMap[((row - 1) * seatMap.col) + index + '_'].name ? colSeatMap[((row - 1) * seatMap.col) + index + '_'].name : (colSeatMap[((row - 1) * seatMap.col) + index + '_'].rowNo + '排' + (colSeatMap[((row - 1) * seatMap.col) + index + '_'].columnNo) + '座')}}</span><span style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel">({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].seatLabel}})</span></p>
 | 
	
		
			
				|  |  | +                      <p style="font-size: 14px !important;" v-if="colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority">自动分配优先级 <span>({{colSeatMap[((row - 1) * seatMap.col) + index + '_'].priority}})</span></p>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
		
			
				|  |  |                    </div>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
	
		
			
				|  | @@ -262,22 +262,21 @@ export default {
 | 
	
		
			
				|  |  |                  let rect_div = child_div[j].getBoundingClientRect();
 | 
	
		
			
				|  |  |                  if(rect.top < (rect_div.top + rect_div.height) && rect.bottom > (rect_div.bottom - rect_div.height) &&
 | 
	
		
			
				|  |  |                    rect.left < (rect_div.left + rect_div.width) && rect.right > (rect_div.right - rect_div.width)) {
 | 
	
		
			
				|  |  | -                  select_div.push(i+"_"+j);
 | 
	
		
			
				|  |  | +                  select_div.push(child_div[j].getAttribute("id"));
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          select_div.forEach(item => {
 | 
	
		
			
				|  |  | -            let row_col = item.split("_");
 | 
	
		
			
				|  |  | -            this.setSeatDrawMap(parseInt(row_col[0]) + 1, parseInt(row_col[1]) + 1);
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | +          for (let i = 0; i < select_div.length; i++) {
 | 
	
		
			
				|  |  | +            this.setSeatDrawMap(select_div[i]);
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            this.drawDialogClen()
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 画框座位放置参数
 | 
	
		
			
				|  |  | -    setSeatDrawMap(row, col) {
 | 
	
		
			
				|  |  | -      let map = this.colSeatMap[row + '_' +col];
 | 
	
		
			
				|  |  | +    setSeatDrawMap(key) {
 | 
	
		
			
				|  |  | +      let map = this.colSeatMap[key];
 | 
	
		
			
				|  |  |        map.status = this.drawForm.status;
 | 
	
		
			
				|  |  |        map.color = this.drawForm.seat ? this.drawForm.seat.color : '';
 | 
	
		
			
				|  |  |        map.seatTypeId = this.drawForm.seat ? this.drawForm.seat.id : '';
 | 
	
	
		
			
				|  | @@ -290,7 +289,7 @@ export default {
 | 
	
		
			
				|  |  |          map.seatTypeId = '';
 | 
	
		
			
				|  |  |          map.seatLabel = '';
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.$set(this.colSeatMap, row + '_' +col, map);
 | 
	
		
			
				|  |  | +      this.$set(this.colSeatMap, key, map);
 | 
	
		
			
				|  |  |        this.countNum();
 | 
	
		
			
				|  |  |        this.$forceUpdate()
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -366,7 +365,7 @@ export default {
 | 
	
		
			
				|  |  |              if(item.status == 2){
 | 
	
		
			
				|  |  |                item.color = '#7d7d7e';
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            this.$set(this.colSeatMap, item.rowNo + '_' + item.columnNo, item);
 | 
	
		
			
				|  |  | +            this.$set(this.colSeatMap, item.sortId + '_', item);
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |            this.seatType = true;
 | 
	
		
			
				|  |  |            this.$nextTick(() =>{
 | 
	
	
		
			
				|  | @@ -399,12 +398,14 @@ export default {
 | 
	
		
			
				|  |  |            this.seatType = false;
 | 
	
		
			
				|  |  |            this.seatType = true;
 | 
	
		
			
				|  |  |            this.colSeatMap  = {}
 | 
	
		
			
				|  |  | +          let index = 0;
 | 
	
		
			
				|  |  |            for (let i = 1; i < this.seatMap.row + 1; i++) {
 | 
	
		
			
				|  |  | -            for (let j = 1; j < this.seatMap.col + 1; j++) {
 | 
	
		
			
				|  |  | +            for (let j = this.seatMap.col; j > 0; j--) {
 | 
	
		
			
				|  |  |                let rowColMap = {
 | 
	
		
			
				|  |  |                  "auditoriumId": this.auditoriumId,
 | 
	
		
			
				|  |  |                  "name": "",
 | 
	
		
			
				|  |  |                  "rowNo": i,
 | 
	
		
			
				|  |  | +                "sortId": index,
 | 
	
		
			
				|  |  |                  "columnNo": j,
 | 
	
		
			
				|  |  |                  "seatTypeColor": '#fdfdfd',
 | 
	
		
			
				|  |  |                  "seatTypeId": "",
 | 
	
	
		
			
				|  | @@ -412,7 +413,8 @@ export default {
 | 
	
		
			
				|  |  |                  "priority": "",
 | 
	
		
			
				|  |  |                  "status": 2
 | 
	
		
			
				|  |  |                };
 | 
	
		
			
				|  |  | -              this.$set(this.colSeatMap, i + '_' + j, rowColMap);
 | 
	
		
			
				|  |  | +              this.$set(this.colSeatMap, index + '_', rowColMap);
 | 
	
		
			
				|  |  | +              index ++;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            this.$nextTick(() =>{
 | 
	
	
		
			
				|  | @@ -486,21 +488,21 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // 点击座位放置参数
 | 
	
		
			
				|  |  | -    setSeatTemplateMap(row, col) {
 | 
	
		
			
				|  |  | +    setSeatTemplateMap(key) {
 | 
	
		
			
				|  |  |        if(this.dragStatus){
 | 
	
		
			
				|  |  |          return false
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        if(!this.seatSetMap.status){
 | 
	
		
			
				|  |  |          this.seatSetMap.color = '#7d7d7e';
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      let map = this.colSeatMap[row + '_' +col];
 | 
	
		
			
				|  |  | +      let map = this.colSeatMap[key];
 | 
	
		
			
				|  |  |        map.status = this.seatSetMap.status;
 | 
	
		
			
				|  |  |        map.color = this.seatSetMap.color;
 | 
	
		
			
				|  |  |        map.seatTypeId = this.seatSetMap.seatTypeId;
 | 
	
		
			
				|  |  |        map.seatLabel = this.seatSetMap.seatLabel;
 | 
	
		
			
				|  |  |        map.name = this.seatSetMap.name;
 | 
	
		
			
				|  |  |        map.priority = this.seatSetMap.priority;
 | 
	
		
			
				|  |  | -      this.$set(this.colSeatMap, row + '_' +col, map);
 | 
	
		
			
				|  |  | +      this.$set(this.colSeatMap, key, map);
 | 
	
		
			
				|  |  |        this.countNum();
 | 
	
		
			
				|  |  |        this.$forceUpdate()
 | 
	
		
			
				|  |  |      },
 |