Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theater
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴春
Theater
Commits
511efba4
Commit
511efba4
authored
Mar 01, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
1ed26065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
TheaterSeat.cshtml
...ll.Web/Areas/Admin/Views/TheaterManage/TheaterSeat.cshtml
+4
-7
No files found.
EheMall.Web/Areas/Admin/Views/TheaterManage/TheaterSeat.cshtml
View file @
511efba4
...
@@ -260,10 +260,10 @@
...
@@ -260,10 +260,10 @@
arr
.
forEach
(
function
(
x
)
{
arr
.
forEach
(
function
(
x
)
{
SeatData
.
push
(
x
);
SeatData
.
push
(
x
);
});
});
var
self
=
this
;
function
MyViewModel
()
{
function
MyViewModel
()
{
alert
();
var
self
=
this
;
//定义数组对象
//定义数组对象
// self.SeatData = ko.observableArray([]);
// self.SeatData = ko.observableArray([]);
self
.
InitSeat
=
function
()
{
self
.
InitSeat
=
function
()
{
...
@@ -389,7 +389,7 @@
...
@@ -389,7 +389,7 @@
self
.
reSeat
=
function
(
dataRowIndex
)
{
self
.
reSeat
=
function
(
dataRowIndex
)
{
var
dataList
=
SeatData
();
var
dataList
=
SeatData
();
alert
();
var
col_input
=
$
(
"#col_input"
).
val
();
var
col_input
=
$
(
"#col_input"
).
val
();
var
newObj
=
self
.
clone
(
SeatData
()[
dataRowIndex
]);
var
newObj
=
self
.
clone
(
SeatData
()[
dataRowIndex
]);
if
(
newObj
.
noLenth
>
0
)
if
(
newObj
.
noLenth
>
0
)
...
@@ -406,7 +406,6 @@
...
@@ -406,7 +406,6 @@
if
(
flag
)
{
if
(
flag
)
{
if
((
i
+
1
)
<
middleIndex
)
{
if
((
i
+
1
)
<
middleIndex
)
{
if
(
newObj
.
ColumnArray
[
i
].
SeatClassStr
==
'noSeat'
)
{
if
(
newObj
.
ColumnArray
[
i
].
SeatClassStr
==
'noSeat'
)
{
newObj
.
ColumnArray
[
i
].
attr
(
'data-noSeat'
)
=
21
;
leftArray
.
push
(
'0'
);
leftArray
.
push
(
'0'
);
}
}
else
{
else
{
...
@@ -771,9 +770,7 @@
...
@@ -771,9 +770,7 @@
if
((
leftFlag
||
rightFlag
)
&&
(
topFlag
||
bottomFlag
))
{
if
((
leftFlag
||
rightFlag
)
&&
(
topFlag
||
bottomFlag
))
{
selectedList
.
push
(
blockList
[
i
]);
selectedList
.
push
(
blockList
[
i
]);
$
(
blockList
[
i
]).
removeClass
(
'seat'
);
$
(
blockList
[
i
]).
removeClass
(
'seat'
);
$
(
blockList
[
i
]).
removeClass
(
'noSeat'
);
reSeat
();
console
.
log
(
blockList
[
i
].
attr
(
'data_row_id'
),
'aaaaaaaaaaaaaaaa'
);
//self.reSeat(parseInt(blockList[i].attr('data_row_id')) - 1);
if
(
$
(
blockList
[
i
]).
hasClass
(
'seled'
))
{
if
(
$
(
blockList
[
i
]).
hasClass
(
'seled'
))
{
$
(
blockList
[
i
]).
removeClass
(
'seled'
);
$
(
blockList
[
i
]).
removeClass
(
'seled'
);
$
(
blockList
[
i
]).
addClass
(
'seat'
);
$
(
blockList
[
i
]).
addClass
(
'seat'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment