From 8b377bb2a7de4c76b1db07c1081edeb800579aee Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 23 Jun 2022 11:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0TRT=E8=BD=AC=E6=8D=A2=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 530c97409..911026752 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -297,10 +297,9 @@ data['ModelFile'] = $('#ModelFile').val(); console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine'] + " ModelFile=" + data['ModelFile']); 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); + $('.ui.modal.second').modal('hide'); if(result.result_code ==0){ window.location.reload(); } @@ -329,9 +328,14 @@ }, onHide:function(){ document.getElementById("formId").reset(); + $('#model_convert_name').val("") $('#choice_model').dropdown('clear') $('#choice_version').dropdown('clear') $('#choice_file').dropdown('clear') + $('#ModelFile').val("") + $('#SrcEngine').dropdown('clear') + $('#DestFormat').dropdown('clear') + $('#NetOutputFormat').dropdown('clear') $('.ui.dimmer').css({"background-color":""}) $('.ui.error.message').text() $('.ui.error.message').css('display','none')