Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_ad_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
maliang
lwby_ad_data
Commits
4d40b00a
Commit
4d40b00a
authored
Apr 28, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限控制
parent
bdb78e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
AdvertiserUserList.html
src/main/resources/static/pages/user/AdvertiserUserList.html
+24
-4
No files found.
src/main/resources/static/pages/user/AdvertiserUserList.html
View file @
4d40b00a
...
...
@@ -53,13 +53,33 @@ var table=$("#advertiserTable");
function
setTable
(
data
)
{
if
(
data
[
0
].
status
===
0
){
table
.
append
(
"<tr><td>"
+
data
[
0
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
0
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
0
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
0
].
userId
+
"
\"
>"
);
}
else
if
(
data
[
0
].
status
==
1
){
table
.
append
(
"<tr><td>"
+
data
[
0
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
0
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
0
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
0
].
userId
+
"
\"
checked>"
);
}
for
(
var
i
in
data
){
if
(
data
[
i
].
status
===
0
){
table
.
append
(
"<tr><td>"
+
data
[
i
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
></td></tr>"
);
}
else
{
table
.
append
(
"<tr><td>"
+
data
[
i
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
checked></td></tr>"
);
var
count
=
0
;
var
id
=
data
[
i
].
userId
;
if
(
id
==
data
[
i
].
userId
){
if
(
data
[
i
].
status
===
0
&&
count
!=
0
){
table
.
append
(
"<input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
>"
);
}
else
if
(
data
[
i
].
status
==
1
&&
count
!=
0
){
table
.
append
(
"<input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
checked>"
);
}
count
++
;
}
else
{
id
=
data
[
i
].
userId
;
count
=
0
;
table
.
append
(
"</td></tr>"
)
if
(
data
[
i
].
status
===
0
&&
count
==
0
){
table
.
append
(
"<tr><td>"
+
data
[
i
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
>"
);
}
else
if
(
data
[
i
].
status
==
1
&&
count
==
0
){
table
.
append
(
"<tr><td>"
+
data
[
i
].
nickname
+
"</td><td><input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
checked>"
);
}
}
}
}
...
...
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