| @@ -213,7 +213,7 @@ | |||||
| function createModelName(){ | function createModelName(){ | ||||
| let repoName = location.pathname.split('/')[2] | let repoName = location.pathname.split('/')[2] | ||||
| let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4) | let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4) | ||||
| $('#name').val(modelName) | |||||
| $('#model_convert_name').val(modelName) | |||||
| } | } | ||||
| function showcreate(obj){ | function showcreate(obj){ | ||||
| $('.ui.modal.second') | $('.ui.modal.second') | ||||
| @@ -221,9 +221,7 @@ | |||||
| centered: false, | centered: false, | ||||
| onShow:function(){ | onShow:function(){ | ||||
| $('#model_header').text("创建模型转换任务") | $('#model_header').text("创建模型转换任务") | ||||
| $('input[name="Version"]').addClass('model_disabled') | |||||
| $('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) | $('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) | ||||
| $("#job-name").empty() | |||||
| createModelName() | createModelName() | ||||
| loadModelList() | loadModelList() | ||||
| }, | }, | ||||
| @@ -290,6 +288,7 @@ | |||||
| $("#model-version").append(train_html) | $("#model-version").append(train_html) | ||||
| $(".ui.dropdown.selection.search.width70").removeClass("loading") | $(".ui.dropdown.selection.search.width70").removeClass("loading") | ||||
| $('#choice_version .default.text').text(versionList[0].Version) | $('#choice_version .default.text').text(versionList[0].Version) | ||||
| $('#choice_version input[name="ModelVersion"]').val(versionList[i].ID) | |||||
| } | } | ||||
| } | } | ||||