| @@ -294,6 +294,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -314,6 +315,7 @@ | |||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -282,6 +282,10 @@ | |||||
| $('#messageInfo p').text(str) | $('#messageInfo p').text(str) | ||||
| return false | return false | ||||
| } | } | ||||
| if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){ | |||||
| $('input[name="ckpt_name"]').parent().addClass("error") | |||||
| return false | |||||
| } | |||||
| let min_value_task = value_task.toLowerCase() | let min_value_task = value_task.toLowerCase() | ||||
| $("input[name='display_job_name']").attr("value", min_value_task) | $("input[name='display_job_name']").attr("value", min_value_task) | ||||
| createFlag = true | createFlag = true | ||||
| @@ -303,6 +303,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -323,6 +324,7 @@ | |||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -277,6 +277,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -297,6 +298,7 @@ | |||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -195,7 +195,7 @@ | |||||
| <span>{{$.i18n.Tr "repo.modelarts.createtime"}}</span> | <span>{{$.i18n.Tr "repo.modelarts.createtime"}}</span> | ||||
| </div> | </div> | ||||
| <div class="two wide column text center"> | <div class="two wide column text center"> | ||||
| <span>{{$.i18n.Tr "repo.modelarts.computing_resources"}}</span> | |||||
| <span>{{$.i18n.Tr "repo.modelarts.cluster.computing_resources"}}</span> | |||||
| </div> | </div> | ||||
| <div class="one wide column text center"> | <div class="one wide column text center"> | ||||
| <span>{{$.i18n.Tr "repo.cloudbrain_creator"}}</span> | <span>{{$.i18n.Tr "repo.cloudbrain_creator"}}</span> | ||||
| @@ -234,9 +234,14 @@ | |||||
| </div> | </div> | ||||
| <div class="two wide column text center"> | <div class="two wide column text center"> | ||||
| <!-- 任务计算资源 --> | <!-- 任务计算资源 --> | ||||
| <span style="font-size: 12px;margin-left: 0.4rem;" | |||||
| class=""> | |||||
| {{.ComputeResource}}</span> | |||||
| <span style="font-size: 12px;margin-left: 0.4rem;"> | |||||
| {{if eq .Cloudbrain.Type 2}} | |||||
| {{$.i18n.Tr "cloudbrain.resource_cluster_c2net_simple"}} | |||||
| {{else}} | |||||
| {{$.i18n.Tr "cloudbrain.resource_cluster_openi_simple"}} | |||||
| {{end}} | |||||
| {{.ComputeResource}} | |||||
| </span> | |||||
| </div> | </div> | ||||
| <div class="one wide column text center"> | <div class="one wide column text center"> | ||||
| {{if .User.Name}} | {{if .User.Name}} | ||||
| @@ -297,7 +302,7 @@ | |||||
| class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED" "CREATE_FAILED" "DELETED"}}disabled {{else}}blue {{end}}button' | class='ui basic ai_stop {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "STOPPING" "CREATING" "STARTING" "SUCCEEDED" "CREATE_FAILED" "DELETED"}}disabled {{else}}blue {{end}}button' | ||||
| data-repopath='{{$.RepoLink}}{{if eq .Cloudbrain.Type 2}}/grampus/notebook{{else}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}{{end}}/{{.Cloudbrain.ID}}/stop' | data-repopath='{{$.RepoLink}}{{if eq .Cloudbrain.Type 2}}/grampus/notebook{{else}}{{if eq .ComputeResource "CPU/GPU"}}/cloudbrain{{else}}/modelarts/notebook{{end}}{{end}}/{{.Cloudbrain.ID}}/stop' | ||||
| data-jobid="{{.Cloudbrain.ID}}"> | data-jobid="{{.Cloudbrain.ID}}"> | ||||
| {{if .BootFile}}data-bootfile="{{.BootFile}}"{{end}} | |||||
| {{$.i18n.Tr "repo.stop"}} | {{$.i18n.Tr "repo.stop"}} | ||||
| </a> | </a> | ||||
| {{else}} | {{else}} | ||||
| @@ -190,6 +190,10 @@ | |||||
| $('#messageInfo p').text(str) | $('#messageInfo p').text(str) | ||||
| return false | return false | ||||
| } | } | ||||
| if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){ | |||||
| $('input[name="ckpt_name"]').parent().addClass("error") | |||||
| return false | |||||
| } | |||||
| let min_value_task = value_task.toLowerCase() | let min_value_task = value_task.toLowerCase() | ||||
| $("input[name='display_job_name']").attr("value", min_value_task) | $("input[name='display_job_name']").attr("value", min_value_task) | ||||
| createFlag = true | createFlag = true | ||||
| @@ -180,6 +180,10 @@ | |||||
| $('#messageInfo p').text(str) | $('#messageInfo p').text(str) | ||||
| return false | return false | ||||
| } | } | ||||
| if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){ | |||||
| $('input[name="ckpt_name"]').parent().addClass("error") | |||||
| return false | |||||
| } | |||||
| let min_value_task = value_task.toLowerCase() | let min_value_task = value_task.toLowerCase() | ||||
| $("input[name='display_job_name']").attr("value",min_value_task) | $("input[name='display_job_name']").attr("value",min_value_task) | ||||
| document.getElementById("mask").style.display = "block" | document.getElementById("mask").style.display = "block" | ||||
| @@ -344,6 +344,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -370,8 +371,9 @@ | |||||
| </tr> | </tr> | ||||
| {{end}} | {{end}} | ||||
| </tbody> | </tbody> | ||||
| {{end}} | |||||
| </table> | </table> | ||||
| {{if eq .ComputeResource "NPU"}} | |||||
| {{if and (eq .ComputeResource "NPU") ($.modelDownload)}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr> | <tr> | ||||
| @@ -308,6 +308,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -326,6 +327,7 @@ | |||||
| {{end}} | {{end}} | ||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -278,6 +278,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -299,6 +300,7 @@ | |||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -163,6 +163,10 @@ | |||||
| $('#messageInfo p').text(str) | $('#messageInfo p').text(str) | ||||
| return false | return false | ||||
| } | } | ||||
| if($('input[name="model_name"]').val() && !$('input[name="ckpt_name"]').val()){ | |||||
| $('input[name="ckpt_name"]').parent().addClass("error") | |||||
| return false | |||||
| } | |||||
| let min_value_task = value_task.toLowerCase() | let min_value_task = value_task.toLowerCase() | ||||
| $("input[name='display_job_name']").attr("value",min_value_task) | $("input[name='display_job_name']").attr("value",min_value_task) | ||||
| document.getElementById("mask").style.display = "block" | document.getElementById("mask").style.display = "block" | ||||
| @@ -246,6 +246,7 @@ | |||||
| </div> | </div> | ||||
| <div style="clear:both"> | <div style="clear:both"> | ||||
| {{if $.datasetDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | <tr><th style="color: #8a8e99;font-size:12px" class="three wide left aligned">{{$.i18n.Tr "dataset.file"}}</th> | ||||
| @@ -268,7 +269,8 @@ | |||||
| {{end}} | {{end}} | ||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| {{if $.modelDownload}} | |||||
| <table style="border:none" class="ui fixed small stackable table"> | <table style="border:none" class="ui fixed small stackable table"> | ||||
| <thead> | <thead> | ||||
| <tr> | <tr> | ||||
| @@ -291,6 +293,7 @@ | |||||
| </tr> | </tr> | ||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {{end}} | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -823,6 +823,7 @@ export default async function initCloudrainSow() { | |||||
| $("#select_model_version").dropdown("set value", ""); | $("#select_model_version").dropdown("set value", ""); | ||||
| $("#select_model_checkpoint").dropdown("set text", ""); | $("#select_model_checkpoint").dropdown("set text", ""); | ||||
| $("#select_model_checkpoint").dropdown("set value", ""); | $("#select_model_checkpoint").dropdown("set value", ""); | ||||
| $("#model_checkpoint").empty(); | |||||
| } | } | ||||
| }, | }, | ||||
| }); | }); | ||||
| @@ -5226,3 +5226,6 @@ function initTopToHome() { | |||||
| } | } | ||||
| initTopToHome(); | initTopToHome(); | ||||
| $(".question.circle.icon").hover(function () { | |||||
| $(this).popup("show"); | |||||
| }); | |||||
| @@ -67,11 +67,6 @@ | |||||
| $(this).attr("id", "para" + cur_index); | $(this).attr("id", "para" + cur_index); | ||||
| }); | }); | ||||
| }); | }); | ||||
| $(".question.circle.icon").hover(function () { | |||||
| $(this).popup("show"); | |||||
| }); | |||||
| var isValidate = false; | var isValidate = false; | ||||
| function validate() { | function validate() { | ||||
| $(".ui.form").form({ | $(".ui.form").form({ | ||||
| @@ -345,6 +345,7 @@ export default { | |||||
| } | } | ||||
| if(err.response.status===401){ | if(err.response.status===401){ | ||||
| location.href=`${AppSubUrl}/user/login` | location.href=`${AppSubUrl}/user/login` | ||||
| return | |||||
| } | } | ||||
| this.btnStatus[index]=0 | this.btnStatus[index]=0 | ||||
| this.alertCb = false | this.alertCb = false | ||||