Commit 76f4f4f2 authored by 吴春's avatar 吴春

楼巷堂巷座位图生成

parent 7a190af1
......@@ -285,9 +285,12 @@
}
jiArrlou.reverse();
var newArrlou = jiArrlou.concat(ouArrlou);
jiArrlou.reverse();
jiArrtang.reverse();
var newArrtang = jiArrtang.concat(ouArrtang);
var tempArray = JSON.parse(JSON.stringify(SeatData()));
console.log(newArrlou.length);
console.log(newArrtang.length);
//行增加
if (tempArray.length < row_input) {
var currentIndex = tempArray.length;
......@@ -295,9 +298,11 @@
currentIndex = 0;
}
for (var i = currentIndex; i < row_input; i++) {
if (parseInt(lourow)>0) {
if (parseInt(lourow) > 0 && (i + 1) <= parseInt(lourow)) {
var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 1, ColumnArray: [] };
for (var j = 0; j < newArrlou.length; j++) {
var dataColumn = {
col: newArrlou[j],
SeatClassStr: 'seat',
......@@ -309,23 +314,26 @@
dataRow.ColumnArray.push(dataColumn);
}
}
if (parseInt(tangrow) > 0) {
if (i + 1 > lourow) {
var dataRow = { rowIndex: ((i + 1 - lourow) + '排'), rowOriIndex: i + 1, houseType:3, ColumnArray: [] };
}
else {
var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 3, ColumnArray: [] };
}
for (var j = 0; j < newArrtang.length; j++) {
var dataColumn = {
col: newArrtang[j],
SeatClassStr: 'seat',
AreaSeat: '',
changedCol: '',
columnIndex: j + 1,
rowIndex: i + 1,
};
dataRow.ColumnArray.push(dataColumn);
else {
if (parseInt(tangrow) > 0) {
if (i + 1 > lourow) {
var dataRow = { rowIndex: ((i + 1 - lourow) + '排'), rowOriIndex: i + 1, houseType: 3, ColumnArray: [] };
}
else {
var dataRow = { rowIndex: (i + 1 + '排'), rowOriIndex: i + 1, houseType: 3, ColumnArray: [] };
}
for (var j = 0; j < newArrtang.length; j++) {
var dataColumn = {
col: newArrtang[j],
SeatClassStr: 'seat',
AreaSeat: '',
changedCol: '',
columnIndex: j + 1,
rowIndex: i + 1,
};
dataRow.ColumnArray.push(dataColumn);
}
}
}
......
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