Commit 6d4df449 authored by 黄奎's avatar 黄奎

座位图修改

parent c80da369
...@@ -557,7 +557,7 @@ ...@@ -557,7 +557,7 @@
var tempData = self.cloneTwo(SeatData()[i]); var tempData = self.cloneTwo(SeatData()[i]);
if (tempData.rowIndex != "") { if (tempData.rowIndex != "") {
var subindex = self.CreateNum(i, 3); var subindex = self.CreateNum(i, 3);
tempData.rowIndex = (subindex - lourow) + "排"; tempData.rowIndex = (subindex) + "排";
SeatData.replace(SeatData()[i], tempData); SeatData.replace(SeatData()[i], tempData);
} }
} }
...@@ -567,7 +567,7 @@ ...@@ -567,7 +567,7 @@
newObj.rowIndex = (dataRowIndex + 1) + "排"; newObj.rowIndex = (dataRowIndex + 1) + "排";
SeatData.replace(SeatData()[dataRowIndex], newObj); SeatData.replace(SeatData()[dataRowIndex], newObj);
if (houseType == 1) { if (houseType == 1) {
for (var i = dataRowIndex + 1; i < lourow; i++) { for (var i =0; i < lourow; i++) {
var tempData = self.cloneTwo(SeatData()[i]); var tempData = self.cloneTwo(SeatData()[i]);
if (tempData.rowIndex != "") { if (tempData.rowIndex != "") {
var newIndex = self.CreateNum(i, 1); var newIndex = self.CreateNum(i, 1);
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
var tempData = self.cloneTwo(SeatData()[i]); var tempData = self.cloneTwo(SeatData()[i]);
if (tempData.rowIndex != "") { if (tempData.rowIndex != "") {
var newIndex = self.CreateNum(i, 3); var newIndex = self.CreateNum(i, 3);
tempData.rowIndex = (newIndex - lourow) + "排"; tempData.rowIndex = newIndex + "排";
SeatData.replace(SeatData()[i], tempData); SeatData.replace(SeatData()[i], tempData);
} }
} }
...@@ -599,11 +599,11 @@ ...@@ -599,11 +599,11 @@
self.CreateNum = function (index, type) { self.CreateNum = function (index, type) {
var num = 0; var num = 0;
var dataList = SeatData(); var dataList = SeatData();
if (type == 1) { if (type == 1) {
for (var i = 0; i < dataList.length; i++) { for (var i = 0; i < dataList.length; i++) {
if (dataList[i].houseType == 1) { if (dataList[i].houseType == 1) {
if (i <= index && dataList[i].HasValue) { if (i <= index && dataList[i].HasValue) {
this.console.log("dataList[i]", dataList[i]);
num++; num++;
} }
} }
......
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