| @@ -121,7 +121,7 @@ | |||||
| </form> | </form> | ||||
| {{if .IsCanOper}} | {{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> | </a> | ||||
| {{else}} | {{else}} | ||||
| @@ -54,6 +54,11 @@ export default async function initCloudrain() { | |||||
| } else { | } else { | ||||
| $('#ai-delete-' + ID).removeClass('blue').addClass('disabled') | $('#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) { | }).fail(function (err) { | ||||
| console.log(err); | console.log(err); | ||||
| }); | }); | ||||