From 3d20b6a507a78cff677549e1fe2c768ce26c0921 Mon Sep 17 00:00:00 2001 From: Zhangxinguo <1245579343@qq.com> Date: Sat, 27 May 2017 18:56:33 +0800 Subject: [PATCH] refactor code for script job property --- .../src/main/resources/console/html/job/add_job.html | 8 ++++++++ .../src/main/resources/console/html/job/detail_job.html | 8 ++++++++ .../src/main/resources/console/html/job/modify_job.html | 8 ++++++++ .../src/main/resources/console/js/job/job_common.js | 1 + .../src/main/resources/console/js/job/jobs_overview.js | 1 + 5 files changed, 26 insertions(+) diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/add_job.html b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/add_job.html index cf007973ea..0b03b2f1e7 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/add_job.html +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/add_job.html @@ -144,6 +144,14 @@ +
+ +
diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/detail_job.html b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/detail_job.html index 86e8a3afea..9c30a04cd8 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/detail_job.html +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/detail_job.html @@ -144,6 +144,14 @@
+
+ +
diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/modify_job.html b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/modify_job.html index 0792fb85d6..801ee51491 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/modify_job.html +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/html/job/modify_job.html @@ -144,6 +144,14 @@
+
+ +
diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/job_common.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/job_common.js index f8b10f1f79..54d168e847 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/job_common.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/job_common.js @@ -236,6 +236,7 @@ function getJob() { streamingProcess: $("#streaming-process").prop("checked"), applicationContext: $("#application-context").val(), shardingItemParameters: $("#sharding-item-parameters").val(), + scriptCommandLine: $("#script-command-line").val(), description: $("#description").val() }; } diff --git a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/jobs_overview.js b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/jobs_overview.js index 8493503d64..59185cdbd2 100644 --- a/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/jobs_overview.js +++ b/elastic-job-cloud/elastic-job-cloud-scheduler/src/main/resources/console/js/job/jobs_overview.js @@ -206,6 +206,7 @@ function renderJob(job) { $("#misfire").prop("checked", job.misfire); $("#streaming-process").prop("checked", job.streamingProcess); $("#job-type").val(job.jobType); + $("#script-command-line").val(job.scriptCommandLine); if("SIMPLE" === job.jobType) { $("#job-class").attr("value", job.jobClass); $("#job-class-model").show();