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
70da0ecb
Commit
70da0ecb
authored
Dec 04, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新状态的显示
parent
885f8a85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/main/webapp/assets/modular/system/user/user.js
+12
-2
No files found.
src/main/webapp/assets/modular/system/user/user.js
View file @
70da0ecb
...
@@ -27,7 +27,17 @@ MgrUser.initColumn = function () {
...
@@ -27,7 +27,17 @@ MgrUser.initColumn = function () {
{
title
:
'邮箱'
,
field
:
'email'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'邮箱'
,
field
:
'email'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'电话'
,
field
:
'phone'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'电话'
,
field
:
'phone'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'创建时间'
,
field
:
'createtime'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'创建时间'
,
field
:
'createtime'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'状态'
,
field
:
'statusName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
}];
{
title
:
'状态'
,
field
:
'status'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
===
1
)
{
return
'<button type="button" class="btn btn-sm btn-success">启用</button>'
;
}
else
if
(
value
===
2
)
{
return
'<button type="button" class="btn btn-sm btn-warning">冻结</button>'
;
}
else
if
(
value
===
3
)
{
return
'<button type="button" class="btn btn-sm btn-danger">删除</button>'
;
}
}
}];
};
};
/**
/**
...
@@ -150,7 +160,7 @@ MgrUser.unfreeze = function () {
...
@@ -150,7 +160,7 @@ MgrUser.unfreeze = function () {
MgrUser
.
resetPwd
=
function
()
{
MgrUser
.
resetPwd
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
userId
=
this
.
seItem
.
id
;
var
userId
=
this
.
seItem
.
id
;
Feng
.
confirm
(
"是否重置密码为111111 ?"
,
function
()
{
Feng
.
confirm
(
"是否重置密码为111111 ?"
,
function
()
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/mgr/reset"
,
function
(
data
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/mgr/reset"
,
function
(
data
)
{
Feng
.
success
(
"重置密码成功!"
);
Feng
.
success
(
"重置密码成功!"
);
},
function
(
data
)
{
},
function
(
data
)
{
...
...
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