From a77cb099cec732a5ff4282a6173034b4a13b8571 Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 2 Jun 2022 09:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=BD=AC=E6=8D=A2=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=BA=A4=E4=BA=92=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_manage.go | 2 +- templates/repo/modelmanage/convertIndex.tmpl | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 6a8b09f9f..9521e6f2c 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -179,7 +179,7 @@ func SaveModelConvert(ctx *context.Context) { } models.SaveModelConvert(modelConvert) - ShowModelConvertInfo(ctx) + ConvertModelTemplate(ctx) } diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index cff582974..1bb6d2a21 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -287,7 +287,7 @@ console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine']); console.log("inputshape=" + data['inputshape'] + " inputdataformat=" + data['inputdataformat'] + " DestFormat=" + data['DestFormat'] + " NetOutputFormat=" + data['NetOutputFormat']); $('.ui.modal.second').modal('hide'); - $('.ui.form').submit(); + //$('.ui.form').submit(); /* let url_href = `${repolink}/modelmanage/create_model_convert`; $.ajax({ @@ -304,10 +304,9 @@ console.log("completed=" + xhr); } })*/ - // $.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => { - // console.log("result=" + result); - // }) - + $.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => { + console.log("result=" + result); + }) }) function createModelName(){