From 6c7e76fadfe61d2d5625e18ec3cc0af822c34bce Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 2 Jun 2022 09:05:07 +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 --- templates/repo/modelmanage/convertIndex.tmpl | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 74f5c2e1f..b6d7c5c24 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -287,9 +287,24 @@ 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'); - $.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => { - console.log("result=" + result); + let url_href = `${repolink}/modelmanage/create_model_convert`; + $.ajax({ + url:url_href, + type:'POST', + data:data, + success:function(res){ + console.log("result=" + res); + }, + error: function(xhr){ + console.log("error=" + xhr); + }, + complete:function(xhr){ + console.log("completed=" + xhr); + } }) + // $.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => { + // console.log("result=" + result); + // }) })