Browse Source

解决Bug

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.8.2^2
zouap 3 years ago
parent
commit
7e30906006
4 changed files with 6 additions and 4 deletions
  1. +3
    -1
      routers/repo/modelarts.go
  2. +1
    -1
      templates/repo/cloudbrain/trainjob/show.tmpl
  3. +1
    -1
      templates/repo/grampus/trainjob/show.tmpl
  4. +1
    -1
      templates/repo/modelarts/trainjob/show.tmpl

+ 3
- 1
routers/repo/modelarts.go View File

@@ -333,7 +333,9 @@ func NotebookShow(ctx *context.Context) {

func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool) []models.DatasetDownload {
datasetDownload := make([]models.DatasetDownload, 0)

if len(uuid) == 0 {
return datasetDownload
}
uuidList := strings.Split(uuid, ";")
datasetnameList := strings.Split(datasetname, ";")
for i, uuidStr := range uuidList {


+ 1
- 1
templates/repo/cloudbrain/trainjob/show.tmpl View File

@@ -600,7 +600,7 @@
<input type="hidden" name="trainTaskCreate" value="true">

<div class="required inline field">
<label>{{.i18n.Tr "repo.model.manage.createtrainjob"}}</label>
<label>{{.i18n.Tr "repo.modelarts.train_job"}}</label>
<input type="hidden" class="width83" id="JobId" name="JobId" readonly required>
<input type="hidden" id="VersionName" name="VersionName" value="V0001">
<input style="width: 45%;" id="JobName" readonly required>


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

@@ -556,7 +556,7 @@
<input type="hidden" name="trainTaskCreate" value="true">

<div class="required inline field">
<label>{{.i18n.Tr "repo.model.manage.createtrainjob"}}</label>
<label>{{.i18n.Tr "repo.modelarts.train_job"}}</label>
<input type="hidden" class="width83" id="JobId" name="JobId" readonly required>
<input type="hidden" id="VersionName" name="VersionName" value="V0001">
<input style="width: 45%;" id="JobName" readonly required>


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

@@ -610,7 +610,7 @@

<div class="two inline fields ">
<div class="required ten wide field">
<label style="margin-left: -23px;">{{.i18n.Tr "repo.model.manage.createtrainjob"}}</label>
<label style="margin-left: -23px;">{{.i18n.Tr "repo.modelarts.train_job"}}</label>
<input type="hidden" class="width83" id="JobId" name="JobId" readonly required>
<input class="width83" id="JobName" readonly required>



Loading…
Cancel
Save