Browse Source

停止任务链接。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
36d306f847
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      templates/repo/modelmanage/convertIndex.tmpl
  2. +5
    -0
      web_src/js/features/cloudrbanin.js

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

@@ -121,7 +121,7 @@
</form>

{{if .IsCanOper}}
<a href="{{$.Repository.HTMLURL}}/modelmanage/download_model_convert/{{.ID}}?AllDownload=true&a=1" class='ui basic {{if eq .Status "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;">
<a id="ai-download-{{.ID}}" href="{{$.Repository.HTMLURL}}/modelmanage/download_model_convert/{{.ID}}?AllDownload=true&a=1" class='ui basic {{if eq .Status "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;">
下载
</a>
{{else}}


+ 5
- 0
web_src/js/features/cloudrbanin.js View File

@@ -54,6 +54,11 @@ export default async function initCloudrain() {
} else {
$('#ai-delete-' + ID).removeClass('blue').addClass('disabled')
}
if (["COMPLETED", "SUCCEEDED"].includes(status)) {
$('#ai-download-' + ID).removeClass('disabled').addClass('blue')
} else {
$('#ai-download-' + ID).removeClass('blue').addClass('disabled')
}
}).fail(function (err) {
console.log(err);
});


Loading…
Cancel
Save