| @@ -192,23 +192,23 @@ | |||
| </div> | |||
| <input type="hidden" name="_csrf" value=""> | |||
| <div class="unite min_title required inline fields" id="task_name"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="model_convert_name">任务名称</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| <input style="width: 70%;" id="model_convert_name" name="model_convert_name" required maxlength="25" onkeyup="this.value=this.value.replace(/[, ]/g,'')"> | |||
| <input id="model_convert_name" name="model_convert_name" required maxlength="25" onkeyup="this.value=this.value.replace(/[, ]/g,'')"> | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="Description">任务描述</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| <textarea style="width: 70%;margin-left: 7px;" id="Description" name="Description" rows="3" maxlength="255" placeholder='{{.i18n.Tr "repo.modelarts.train_job.new_place"}}' onchange="this.value=this.value.substring(0, 255)" onkeydown="this.value=this.value.substring(0, 255)" onkeyup="this.value=this.value.substring(0, 256)"></textarea> | |||
| <textarea id="Description" name="Description" rows="3" maxlength="255" placeholder='{{.i18n.Tr "repo.modelarts.train_job.new_place"}}' onchange="this.value=this.value.substring(0, 255)" onkeydown="this.value=this.value.substring(0, 255)" onkeyup="this.value=this.value.substring(0, 256)"></textarea> | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields required"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="choice_model">模型名称</label> | |||
| </div> | |||
| <div class="ui dropdown selection search eight wide field loading" id="choice_model" name="choice_model"> | |||
| @@ -219,7 +219,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields required"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="choice_version">模型版本</label> | |||
| </div> | |||
| @@ -233,7 +233,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields required"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="choice_file">模型文件</label> | |||
| </div> | |||
| <div class="ui dropdown selection search eight wide field" id="choice_file"> | |||
| @@ -246,7 +246,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields required"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="SrcEngine">原模型框架</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| @@ -256,7 +256,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title required inline fields" id="inputdataformat_div"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="inputdataformat">输入数据格式</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| @@ -267,7 +267,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title required inline fields" id="inputshape_div"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="inputshape">输入张量形状</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| @@ -276,7 +276,7 @@ | |||
| </div> | |||
| <div class="unite min_title inline fields required"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="DestFormat">转换后格式</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| @@ -286,7 +286,7 @@ | |||
| </div> | |||
| </div> | |||
| <div class="unite min_title inline fields"> | |||
| <div class="two wide field right aligned"> | |||
| <div class="three wide field right aligned"> | |||
| <label for="NetOutputFormat">网络输出数据类型</label> | |||
| </div> | |||
| <div class="eight wide field"> | |||
| @@ -381,7 +381,7 @@ | |||
| $(function(){ | |||
| $('#choice_model').dropdown({ | |||
| onChange:function(value){ | |||
| $(".ui.dropdown.selection.search.width70").addClass("loading") | |||
| $("#choice_model").addClass("loading") | |||
| $('#choice_version').dropdown('clear') | |||
| $('#choice_file').dropdown('clear') | |||
| $("#model-version").empty() | |||
| @@ -435,7 +435,7 @@ | |||
| train_html += '</div>' | |||
| } | |||
| $("#model-name").append(train_html) | |||
| $(".ui.dropdown.selection.search.width83").removeClass("loading") | |||
| $("#choice_model").removeClass("loading") | |||
| $('#choice_model .default.text').text(nameList[0]) | |||
| loadModelVersion(nameList[0]) | |||
| }) | |||
| @@ -481,7 +481,7 @@ | |||
| function loadModelVersion(value){ | |||
| console.log("value=" + value); | |||
| if(value ==null || value ==""){ | |||
| $(".ui.dropdown.selection.search.width70").removeClass("loading") | |||
| }else{ | |||
| let nameMap = modelData.nameMap | |||
| let versionList = nameMap[value] | |||
| @@ -492,7 +492,7 @@ | |||
| train_html += '</div>' | |||
| } | |||
| $("#model-version").append(train_html) | |||
| $(".ui.dropdown.selection.search.width70").removeClass("loading") | |||
| $('#choice_version .default.text').text(versionList[0].Version) | |||
| $('#choice_version input[name="ModelVersion"]').val(versionList[0].ID) | |||
| loadModelFile(versionList[0].ID); | |||