Browse Source

修改样式。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 2 years ago
parent
commit
af0dc77e51
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      templates/repo/grampus/trainjob/show.tmpl

+ 14
- 5
templates/repo/grampus/trainjob/show.tmpl View File

@@ -756,18 +756,27 @@
onShow: function () {
$('input[name="Version"]').addClass('model_disabled')
// $('input[name="JobId"]').text(obj.JobName)
$('#JobName').val(obj.DisplayJobName).addClass('model_disabled')
// $('#JobName').val(obj.DisplayJobName).addClass('model_disabled')
$('input[name="JobId"]').val(obj.JobID)
$('input[name="VersionName"]').val("V0001")
if(obj.ComputeResource=="NPU"){
$('#choice_Engine .default.text').text("TensorFlow");
$('#choice_Engine input[name="Engine"]').val(1)
if (obj.EngineName != null && obj.EngineName != "") {
srcEngine = obj.EngineName.split('-')[0]
srcEngine = srcEngine.trim().toLowerCase();
if (srcEngine == 'tensorflow') {
$('#choice_Engine .default.text').text("TensorFlow");
$('#choice_Engine input[name="Engine"]').val(1)
}
if (srcEngine == 'mindspore') {
$('#choice_Engine .default.text').text("MindSpore");
$('#choice_Engine input[name="Engine"]').val(1)
}
}
}else{
$('#choice_Engine .default.text').text("PyTorch");
$('#choice_Engine input[name="Engine"]').val(0)
}
}
$('.ui.dimmer').css({ "background-color": "rgb(136, 136, 136,0.7)" })
createModelName();
loadSelectedModelFile(obj);


Loading…
Cancel
Save