Browse Source

模型转换界面交互。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
1be5bdca80
2 changed files with 4 additions and 10 deletions
  1. +3
    -3
      routers/repo/ai_model_manage.go
  2. +1
    -7
      templates/repo/modelmanage/convertIndex.tmpl

+ 3
- 3
routers/repo/ai_model_manage.go View File

@@ -153,9 +153,9 @@ func SaveModelConvert(ctx *context.Context) {
ctx.JSON(403, ctx.Tr("repo.model_noright"))
return
}
name := ctx.Query("model_convert_name")
desc := ctx.Query("Description")
modelId := ctx.Query("ModelVersion")
name := ctx.Query("name")
desc := ctx.Query("desc")
modelId := ctx.Query("modelId")
SrcEngine := ctx.QueryInt("SrcEngine")
InputShape := ctx.Query("inputshape")
InputDataFormat := ctx.Query("inputdataformat")


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

@@ -115,15 +115,9 @@
<form id="delForm-{{.ID}}" action="{{$.RepoLink}}/modelmanage/delete_model_convert/{{.ID}}" method="post">
<input type="hidden" name="debugListType" value="all">
{{$.CsrfTokenHtml}}
{{if .IsCanDelete}}
<a id="ai-delete-{{.ID}}" class='ui basic ai_delete {{if eq .Status "STOPPED" "FAILED" "START_FAILED" "SUCCEEDED"}}blue {{else}}disabled {{end}}button' style="border-radius: .28571429rem;">
<a id="ai-delete-{{.ID}}" class='ui basic ai_delete blue button' style="border-radius: .28571429rem;">
{{$.i18n.Tr "repo.delete"}}
</a>
{{else}}
<a class="ui basic button disabled" style="border-radius: .28571429rem;">
{{$.i18n.Tr "repo.delete"}}
</a>
{{end}}
</form>
</div>
</div>


Loading…
Cancel
Save