数据字典应用
This commit is contained in:
@ -178,8 +178,6 @@ $.ajaxSetup({
|
||||
$.modalConfirm("登陆超时!请重新登陆!", function() {
|
||||
window.location.href = ctx + "login";
|
||||
})
|
||||
} else if (textStatus == "error") {
|
||||
$.modalAlert("请求超时!请稍后再试!", 'warning');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -16,5 +16,5 @@ $("#form-job-add").validate({
|
||||
});
|
||||
|
||||
function add() {
|
||||
_ajax_save(ctx + "/monitor/job/save", $("#form-job-add").serialize());
|
||||
_ajax_save(ctx + "monitor/job/save", $("#form-job-add").serialize());
|
||||
}
|
@ -16,5 +16,5 @@ $("#form-job-edit").validate({
|
||||
});
|
||||
|
||||
function edit() {
|
||||
_ajax_save(ctx + "/monitor/job/save", $("#form-job-edit").serialize());
|
||||
_ajax_save(ctx + "monitor/job/save", $("#form-job-edit").serialize());
|
||||
}
|
@ -22,13 +22,13 @@ $(function() {
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '操作状态',
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (value == 0) {
|
||||
return '<span class="label label-success">正常</span>';
|
||||
} else if (value == 1) {
|
||||
return '<span class="label label-danger">禁用</span>';
|
||||
return '<span class="label label-danger">停用</span>';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -18,13 +18,13 @@ $(function() {
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '操作状态',
|
||||
title: '状态',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (value == 0) {
|
||||
return '<span class="label label-success">正常</span>';
|
||||
} else if (value == 1) {
|
||||
return '<span class="label label-danger">禁用</span>';
|
||||
return '<span class="label label-danger">停用</span>';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user