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
a9e0f497
Commit
a9e0f497
authored
Apr 28, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限控制
parent
4d40b00a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
17 deletions
+30
-17
AdvertiserUserList.html
src/main/resources/static/pages/user/AdvertiserUserList.html
+30
-17
No files found.
src/main/resources/static/pages/user/AdvertiserUserList.html
View file @
a9e0f497
...
...
@@ -53,37 +53,50 @@ var table=$("#advertiserTable");
function
setTable
(
data
)
{
var
str
=
""
;
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
+
"
\"
>"
);
str
=
"<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
+
"
\"
>"
;
//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>"
);
str
=
"<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>"
;
//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
){
var
count
=
0
;
var
id
=
data
[
i
].
userId
;
var
id
=
data
[
0
].
userId
;
for
(
var
i
=
1
;
i
<
data
.
length
;
i
++
){
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>"
);
if
(
data
[
i
].
status
===
0
){
str
+=
"<input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
>"
;
//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
){
str
+=
"<input lay-filter='formCheckbox' type=
\"
checkbox
\"
advertiserId=
\"
"
+
data
[
i
].
advertiserId
+
"
\"
title=
\"
"
+
data
[
i
].
advertiserName
+
"
\"
userId=
\"
"
+
data
[
i
].
userId
+
"
\"
checked>"
;
//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>"
);
//table.append("
<
/td></
tr
>
");
if(data[i].status===0){
str+="
<
/td></
tr
>
";
table.append(str);
str="
<
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+"
\"
>"
;
//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
){
str
+=
"</td></tr>"
;
table
.
append
(
str
);
str
=
"<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>"
;
//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>"
)
;
}
}
}
str
+=
"</td></tr>"
;
table
.
append
(
str
);
//table.append("
<
/td></
tr
>
")
}
function init(){
$.ajax({
//请求方式
...
...
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