数据字典应用

This commit is contained in:
RuoYi
2018-05-23 22:33:18 +08:00
parent 3c5abd5669
commit ce80396188
29 changed files with 229 additions and 162 deletions

View File

@ -178,8 +178,6 @@ $.ajaxSetup({
$.modalConfirm("登陆超时!请重新登陆!", function() {
window.location.href = ctx + "login";
})
} else if (textStatus == "error") {
$.modalAlert("请求超时!请稍后再试!", 'warning');
}
}
});

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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>';
}
}
},

View File

@ -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>';
}
}
},