Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e87b7c45
authored
2018-03-25 00:42:09 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
c7afd550
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
4 deletions
application/views/perm/staff.php
application/views/perm/staff.php
View file @
e87b7c4
...
...
@@ -160,13 +160,61 @@
layer_show('重置密码', '
<?=
site_url
(
'perm/reset'
);
?>
');
}
function
on_off
(id) {
layer.confirm('
您确定要冻结
/
解冻
这个员工账号吗
?
', {
function
freeze
(id) {
layer.confirm('
您确定要冻结这个员工账号吗
?
', {
btn: ['
确认
','
取消
'],
title: '
冻结
/
解冻
',
title: '
冻结
',
icon: 3
}, function(){
layer.msg('
冻结
/
解冻成功
');
$.ajax({
type: '
put
',
url: apiBaseUrl + '
system
/
user
/
freeze
/
' + id,
cache: false,
dataType: '
json
',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('
操作失败
');
} else {
layer.msg('
冻结成功
');
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
function unfreeze(id) {
layer.confirm('
您确定要解冻这个员工账号吗
?
', {
btn: ['
确认
','
取消
'],
title: '
解冻
',
icon: 3
}, function(){
$.ajax({
type: '
put
',
url: apiBaseUrl + '
manage
/
financial
/
confirm
/
' + id + '
?
realRepaymentDate
=
' + Date.now(),
cache: false,
dataType: '
json
',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('
操作失败
');
} else {
layer.msg('
解冻成功
');
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment