修改readme+优化跳转
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
|
||||
if (out.status == 0) {
|
||||
// layer.msg("操作成功")
|
||||
layer.alert('你成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
layer.msg('你成功了', {icon: 1,shade:0.3,time:2000},function(index){
|
||||
window.location.reload();
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -144,9 +144,11 @@ var $,form;
|
||||
}
|
||||
|
||||
var data = {'role_name':role_name,'id':id,'detail':detail,'nodes_data':nodes_data,'server_group_ids':server_group_ids,'task_group_ids':task_group_ids}
|
||||
// console.log(data);
|
||||
// return;
|
||||
$.post('{{urlfor "RoleController.AjaxSave"}}', data, function (out) {
|
||||
if (out.status == 0) {
|
||||
layer.alert('保存成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
layer.msg('保存成功了', {icon: 1,shade:0.3,time:1000},function(index){
|
||||
layer.close(index);
|
||||
window.location.href="/role/list"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user