diff --git a/templates/repo/cloudbrain/benchmark/show.tmpl b/templates/repo/cloudbrain/benchmark/show.tmpl index 46e73752d..dd5aaa971 100644 --- a/templates/repo/cloudbrain/benchmark/show.tmpl +++ b/templates/repo/cloudbrain/benchmark/show.tmpl @@ -436,62 +436,8 @@ td, th { - -
- + +
{{template "base/footer" .}} @@ -525,61 +471,7 @@ td, th { } let timeid = window.setInterval(loadJobStatus, 30000); $(document).ready(loadJobStatus); - function showcreate(obj){ - $('.ui.modal.second') - .modal({ - centered: false, - onShow:function(){ - $('input[name="Version"]').addClass('model_disabled') - // $('input[name="JobId"]').text(obj.JobName) - $('#JobName').val(obj.JobName).addClass('model_disabled') - $('input[name="JobId"]').val(obj.JobID) - $('input[name="VersionName"]').val(obj.VersionName).addClass('model_disabled') - $('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) - createModelName() - - - }, - onHide:function(){ - document.getElementById("formId").reset(); - $('.ui.dimmer').css({"background-color":""}) - $('.ui.error.message').text() - $('.ui.error.message').css('display','none') - - } - }) - .modal('show') - } - function createModel(){ - let url_href = `/${userName}/${repoPath}/modelmanage/create_new_model` - let data = $("#formId").serialize() - $("#mask").css({"display":"block","z-index":"9999"}) - $.ajax({ - url:url_href, - type:'POST', - data:data, - success:function(res){ - location.href=`/${userName}/${repoPath}/modelmanage/show_model` - $('.ui.modal.second').modal('hide') - }, - error: function(xhr){ - // 隐藏 loading - // 只有请求不正常(状态码不为200)才会执行 - $('.ui.error.message').text(xhr.responseText) - $('.ui.error.message').css('display','block') - }, - complete:function(xhr){ - $("#mask").css({"display":"none","z-index":"1"}) - } - }) - - } - function createModelName(){ - let repoName = location.pathname.split('/')[2] - let modelName = repoName + '_model_' + Math.random().toString(36).substr(2, 4) - $('#name').val(modelName) - $('#version').val("0.0.1") - } + function renderSize(value){ if(null==value||value==''){ return "0 Bytes";