修复Cron可视化查看数据清空问题;

This commit is contained in:
xuxueli 2019-10-25 18:07:57 +08:00
parent dd2d7d3c0c
commit 1abe154c40
1 changed files with 2 additions and 6 deletions

View File

@ -362,6 +362,7 @@ $(function() {
$(".add").click(function(){ $(".add").click(function(){
// init-cronGen // init-cronGen
$("#addModal .form input[name='jobCron']").show().siblings().remove();
$("#addModal .form input[name='jobCron']").cronGen({}); $("#addModal .form input[name='jobCron']").cronGen({});
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show'); $('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
@ -460,9 +461,6 @@ $(function() {
$("#addModal .form .form-group").removeClass("has-error"); $("#addModal .form .form-group").removeClass("has-error");
$(".remote_panel").show(); // remote $(".remote_panel").show(); // remote
// remove-cronGen
$("#addModal .form input[name='jobCron']").show().siblings().remove();
$("#addModal .form input[name='executorHandler']").removeAttr("readonly"); $("#addModal .form input[name='executorHandler']").removeAttr("readonly");
}); });
@ -525,6 +523,7 @@ $(function() {
$("#updateModal .form select[name=glueType]").change(); $("#updateModal .form select[name=glueType]").change();
// init-cronGen // init-cronGen
$("#updateModal .form input[name='jobCron']").show().siblings().remove();
$("#updateModal .form input[name='jobCron']").cronGen({}); $("#updateModal .form input[name='jobCron']").cronGen({});
// show // show
@ -623,9 +622,6 @@ $(function() {
updateModalValidate.resetForm(); updateModalValidate.resetForm();
$("#updateModal .form")[0].reset(); $("#updateModal .form")[0].reset();
$("#updateModal .form .form-group").removeClass("has-error"); $("#updateModal .form .form-group").removeClass("has-error");
// remove-cronGen
$("#updateModal .form input[name='jobCron']").show().siblings().remove();
}); });
/** /**