diff --git a/templates/admin/cloudbrain/list.tmpl b/templates/admin/cloudbrain/list.tmpl index 94f80c0fa..c7ae58a71 100755 --- a/templates/admin/cloudbrain/list.tmpl +++ b/templates/admin/cloudbrain/list.tmpl @@ -96,13 +96,20 @@ {{end}}
- {{if eq .JobType "DEBUG"}} + {{if and (eq .JobType "DEBUG") (eq .Cloudbrain.Type 0)}} {{.DisplayJobName}} + {{else if eq .JobType "DEBUG"}} + + {{.DisplayJobName}} + {{else if or (eq .JobType "SNN4IMAGENET") (eq .JobType "BRAINSCORE")}}
- {{if eq .JobType "DEBUG"}} + {{if and (eq .JobType "DEBUG") (eq .Cloudbrain.Type 0)}} {{.DisplayJobName}} + {{else if eq .JobType "DEBUG"}} + + {{.DisplayJobName}} + {{else if (eq .JobType "SNN4IMAGENET" "BRAINSCORE")}} { const cloudbrain = type === 'INCREASE' ? record.Action?.Cloudbrain : record.Cloudbrain; switch (cloudbrain?.JobType) { case 'DEBUG': - if (cloudbrain.ComputeResource === 'CPU/GPU') { - link += `/cloudbrain/${cloudbrain.ID}`; + if (cloudbrain.Type === 0) { + if (cloudbrain.ComputeResource === 'CPU/GPU') { + link += `/cloudbrain/${cloudbrain.ID}`; + } else { + link += `/modelarts/notebook/${cloudbrain.ID}`; + } } else { - link += `/modelarts/notebook/${cloudbrain.ID}`; + link += `/grampus/notebook/${cloudbrain.ID}`; } break; case 'TRAIN':