Browse Source

提交代码,修改Bug

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2826/head
zouap 2 years ago
parent
commit
94b2b0c7a7
2 changed files with 6 additions and 5 deletions
  1. +5
    -4
      routers/repo/modelarts.go
  2. +1
    -1
      templates/repo/modelmanage/showinfo.tmpl

+ 5
- 4
routers/repo/modelarts.go View File

@@ -341,6 +341,7 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool)
for i, uuidStr := range uuidList {
name := ""
link := ""
url := ""
isDelete := false
attachment, err := models.GetAttachmentByUUID(uuidStr)
if err != nil {
@@ -360,11 +361,11 @@ func GetCloudBrainDataSetInfo(uuid string, datasetname string, isNeedDown bool)
link = repo.Link() + "/datasets"
}
}
if isNeedDown {
url = attachment.S3DownloadURL()
}
}
url := ""
if isNeedDown {
url = attachment.S3DownloadURL()
}

datasetDownload = append(datasetDownload, models.DatasetDownload{
DatasetName: name,
DatasetDownloadLink: url,


+ 1
- 1
templates/repo/modelmanage/showinfo.tmpl View File

@@ -125,7 +125,7 @@
</td>
</tr>
<tr>
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.model.manage.createtrainjob"}}</td>
<td class="ti-text-form-label text-width80">{{$.i18n.Tr "repo.modelarts.train_job"}}</td>
<td class="ti-text-form-content word-elipsis">
<a id="DisplayJobNameHref" class="title" style="font-size: 14px;" target="_blank">
<span id="DisplayJobName" class="fitted" style="width: 90%;vertical-align: middle;"></span>


Loading…
Cancel
Save