Sfoglia il codice sorgente

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

xuxueli 5 anni fa
parent
commit
1abe154c40

+ 2 - 6
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js

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