Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
4200174b3d
2 changed files with 59 additions and 30 deletions
  1. +15
    -0
      templates/repo/modelarts/trainjob/show.tmpl
  2. +44
    -30
      templates/repo/modelmanage/index.tmpl

+ 15
- 0
templates/repo/modelarts/trainjob/show.tmpl View File

@@ -599,6 +599,13 @@
<label>模型版本</label>
<input style="width: 45%;" id="version" name="Version" value="" readonly required
maxlength="255">
</div>
<div class="unite min_title inline field required">
<label>模型框架</label>
<div class="ui dropdown selection search width70" id="choice_Engine">
<input type="hidden" id="Engine" name="Engine" required>
<input style="width: 45%;" id="Engine_name" name="Engine_name" value="" readonly required maxlength="255">
</div>
</div>
<div class="inline field">
<label>模型标签</label>
@@ -671,6 +678,14 @@
$('#JobName').val(obj.DisplayJobName).addClass('model_disabled')
$('input[name="JobId"]').val(obj.JobID)
$('input[name="VersionName"]').val(obj.VersionName).addClass('model_disabled')
if(obj.EngineID ==122){
$('input[name="Engine_name"]').val("MindSpore");
$('input[name="Engine"]').val(2);
}
if(obj.EngineID ==121){
$('input[name="Engine_name"]').val("TensorFlow");
$('input[name="Engine"]').val(1);
}
$('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" })
createModelName()
},


+ 44
- 30
templates/repo/modelmanage/index.tmpl View File

@@ -160,48 +160,62 @@

<div class="unite min_title inline field required">
<label>模型文件</label>
<div class="ui list">
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">1</div>
<div class="list">
<div class="ui fluid multiple search normal selection dropdown">
<input type="hidden" name="country">
<i class="dropdown icon"></i>
<div class="default text">选择模型文件</div>
<div class="menu">
<div class="item" data-value="af">
<div class="ui list">
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">000001.pth</div>
</div>
</div>
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">000002</div>
<i class="folder icon"></i>
<div class="content">
<div class="header">src</div>
<div class="description">Source files for project</div>
<div class="list">
<div class="item">
<input type="radio" name="100000" value="">
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">100000.pth</div>
<div class="header">site</div>
<div class="description">Your site's theme</div>
</div>
</div>
<div class="item">
</div>
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">themes</div>
<div class="description">Packaged theme files</div>
<div class="list">
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">default</div>
<div class="description">Default packaged theme</div>
</div>
</div>
<div class="item">
<i class="folder icon"></i>
<div class="content">
<div class="header">my_theme</div>
<div class="description">Packaged themes are also available in this folder</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<i class="file icon"></i>
<div class="content">
<div class="header">200000.pth</div>
<div class="header">theme.config</div>
<div class="description">Config file for setting packaged themes</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="item">
<i class="file icon"></i>
<div class="content">
<div class="header">300000.pth</div>
</div>
</div>
</div>
</div>
</div>

</div>
</div>



Loading…
Cancel
Save