选择原模型框架
@@ -198,25 +199,24 @@
let repoId = {{$repository}}
const {_AppSubUrl, _StaticUrlPrefix, csrf} = window.config;
$('input[name="_csrf"]').val(csrf)
+ var modelData;
function createModelName(){
let repoName = location.pathname.split('/')[2]
- let modelName = repoName + '_model_' + Math.random().toString(36).substr(2, 4)
+ let modelName = repoName + '_modelConvert_' + Math.random().toString(36).substr(2, 4)
$('#name').val(modelName)
- $('#version').val("0.0.1")
}
function showcreate(obj){
$('.ui.modal.second')
.modal({
centered: false,
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)"})
$("#job-name").empty()
createModelName()
- loadTrainList()
-
+ loadModelList()
},
onHide:function(){
document.getElementById("formId").reset();
@@ -236,50 +236,43 @@
onChange:function(value){
$(".ui.dropdown.selection.search.width70").addClass("loading")
$('#choice_version').dropdown('clear')
- $("#job-version").empty()
+ $("#model-version").empty()
loadTrainVersion(value)
}
})
})
- function loadTrainList(){
- $.get(`${repolink}/modelmanage/query_train_job?repoId=${repoId}`, (data) => {
-
- const n_length = data.length
+ function loadModelList(){
+ $.get(`${repolink}/modelmanage/query_model_for_predict?repoId=${repoId}`, (data) => {
+ modelData = data
+ let nameList = data.nameList
+ const n_length = nameList.length
let train_html=''
for (let i=0;i
${data[i].DisplayJobName}