Commit 511efba4 authored by zhengke's avatar zhengke

2

parent 1ed26065
......@@ -260,10 +260,10 @@
arr.forEach(function (x) {
SeatData.push(x);
});
var self = this;
function MyViewModel() {
var self = this;
alert();
//定义数组对象
// self.SeatData = ko.observableArray([]);
self.InitSeat = function () {
......@@ -389,7 +389,7 @@
self.reSeat = function (dataRowIndex) {
var dataList = SeatData();
alert();
var col_input = $("#col_input").val();
var newObj = self.clone(SeatData()[dataRowIndex]);
if (newObj.noLenth > 0)
......@@ -406,7 +406,6 @@
if (flag) {
if ((i + 1) < middleIndex) {
if (newObj.ColumnArray[i].SeatClassStr == 'noSeat') {
newObj.ColumnArray[i].attr('data-noSeat')=21;
leftArray.push('0');
}
else {
......@@ -771,9 +770,7 @@
if ((leftFlag || rightFlag) && (topFlag || bottomFlag)) {
selectedList.push(blockList[i]);
$(blockList[i]).removeClass('seat');
$(blockList[i]).removeClass('noSeat');
console.log(blockList[i].attr('data_row_id'),'aaaaaaaaaaaaaaaa');
//self.reSeat(parseInt(blockList[i].attr('data_row_id')) - 1);
reSeat();
if ($(blockList[i]).hasClass('seled')) {
$(blockList[i]).removeClass('seled');
$(blockList[i]).addClass('seat');
......
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