Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-shiro
Overview
Overview
Details
Activity
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
常超
xzxt-shiro
Commits
5a7cf2e2
Commit
5a7cf2e2
authored
Oct 11, 2018
by
liuyongshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改批量授权的一个问题;修改批量授权提示的样式
parent
85ec004e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/main/webapp/WEB-INF/jsp/admin/user/batchUpdate.jsp
+5
-6
src/main/webapp/resources/common/css/common.css
+3
-0
No files found.
src/main/webapp/WEB-INF/jsp/admin/user/batchUpdate.jsp
View file @
5a7cf2e2
...
@@ -235,7 +235,6 @@
...
@@ -235,7 +235,6 @@
})
})
});
});
function
removeUser
(
obj
)
{
function
removeUser
(
obj
)
{
console
.
log
(
obj
);
var
checkboxs
,
origin
,
target
,
num
=
0
;
var
checkboxs
,
origin
,
target
,
num
=
0
;
if
(
$
(
obj
).
hasClass
(
'right'
))
{
if
(
$
(
obj
).
hasClass
(
'right'
))
{
origin
=
$
(
'.layui-table-main'
);
origin
=
$
(
'.layui-table-main'
);
...
@@ -254,16 +253,16 @@
...
@@ -254,16 +253,16 @@
$
(
checkboxs
[
i
]).
parents
(
"tr"
).
find
(
"td"
).
each
(
function
()
{
$
(
checkboxs
[
i
]).
parents
(
"tr"
).
find
(
"td"
).
each
(
function
()
{
if
(
$
(
this
).
attr
(
"data-field"
)
==
"id"
){
if
(
$
(
this
).
attr
(
"data-field"
)
==
"id"
){
idStr
=
$
(
this
).
find
(
"div"
).
text
();
idStr
=
$
(
this
).
find
(
"div"
).
text
();
console
.
log
(
"id:"
+
idStr
);
}
}
});
});
target
.
each
(
function
()
{
target
.
find
(
'.layui-form-checkbox'
).
each
(
function
()
{
if
(
$
(
this
).
attr
(
"data-field"
)
==
"id"
)
{
$
(
this
).
parents
(
"tr"
).
find
(
"td"
).
each
(
function
()
{
if
(
idStr
==
$
(
this
).
find
(
"div"
).
text
()){
if
(
idStr
==
$
(
this
).
find
(
"div"
).
text
()){
//如果已经有该用户,则不再允许移动
running
=
true
;
running
=
true
;
return
;
return
;
}
;
}
}
}
);
});
});
}
}
...
...
src/main/webapp/resources/common/css/common.css
View file @
5a7cf2e2
...
@@ -33,3 +33,6 @@
...
@@ -33,3 +33,6 @@
.layui-layer-dialog
>
.layui-layer-content
{
.layui-layer-dialog
>
.layui-layer-content
{
color
:
black
;
color
:
black
;
}
}
.layui-layer-msg
{
background
:
rgba
(
235
,
235
,
235
,
0.82
);
}
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