| @@ -406,7 +406,7 @@ | |||||
| $("#job-name").append(train_html) | $("#job-name").append(train_html) | ||||
| $("#choice_model").removeClass("loading") | $("#choice_model").removeClass("loading") | ||||
| $('#choice_model .default.text').text(data[0].DisplayJobName) | $('#choice_model .default.text').text(data[0].DisplayJobName) | ||||
| $('#jobId').val(data[0].JobId) | |||||
| $('#choice_model input[name="jobId"]').val(data[0].JobID) | |||||
| loadTrainVersion() | loadTrainVersion() | ||||
| }else{ | }else{ | ||||
| $("#choice_model").removeClass("loading") | $("#choice_model").removeClass("loading") | ||||
| @@ -414,8 +414,8 @@ | |||||
| }) | }) | ||||
| } | } | ||||
| function loadTrainVersion(value) { | function loadTrainVersion(value) { | ||||
| let tmp = $('jobId').val(); | |||||
| let jobId = !value ? $('#jobId').val() : value | |||||
| let tmp = $('#choice_model input[name="jobId"]').val(); | |||||
| let jobId = !value ? $('#choice_model input[name="jobId"]').val() : value | |||||
| $.get(`${repolink}/modelmanage/query_train_job_version?jobId=${jobId}`, (data) => { | $.get(`${repolink}/modelmanage/query_train_job_version?jobId=${jobId}`, (data) => { | ||||
| const n_length = data.length | const n_length = data.length | ||||
| let train_html = ''; | let train_html = ''; | ||||