Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
160999d9
Commit
160999d9
authored
Jun 05, 2017
by
cyf783
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.oschina.net/cyf783/guns
parents
78afc014
bd6ce38d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DictDao.xml
+1
-1
src/main/webapp/static/modular/system/user/user.js
+14
-9
No files found.
src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DictDao.xml
View file @
160999d9
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<select
id=
"list"
resultType=
"map"
>
<select
id=
"list"
resultType=
"map"
>
select * from dict
select * from dict
where
num
= 0
where
pid
= 0
<if
test=
"condition != null and condition != ''"
>
<if
test=
"condition != null and condition != ''"
>
AND name like CONCAT('%',#{condition},'%')
AND name like CONCAT('%',#{condition},'%')
</if>
</if>
...
...
src/main/webapp/static/modular/system/user/user.js
View file @
160999d9
...
@@ -98,15 +98,20 @@ MgrUser.roleAssign = function () {
...
@@ -98,15 +98,20 @@ MgrUser.roleAssign = function () {
*/
*/
MgrUser
.
delMgrUser
=
function
()
{
MgrUser
.
delMgrUser
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
userId
=
this
.
seItem
.
id
;
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/mgr/delete"
,
function
(
data
)
{
var
operation
=
function
(){
Feng
.
success
(
"删除成功!"
);
var
userId
=
MgrUser
.
seItem
.
id
;
MgrUser
.
table
.
refresh
();
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/mgr/delete"
,
function
()
{
},
function
(
data
)
{
Feng
.
success
(
"删除成功!"
);
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
MgrUser
.
table
.
refresh
();
});
},
function
(
data
)
{
ajax
.
set
(
"userId"
,
userId
);
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
ajax
.
start
();
});
ajax
.
set
(
"userId"
,
userId
);
ajax
.
start
();
};
Feng
.
confirm
(
"是否删除用户"
+
MgrUser
.
seItem
.
account
+
"?"
,
operation
);
}
}
};
};
...
...
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