| @@ -297,10 +297,9 @@ | |||||
| data['ModelFile'] = $('#ModelFile').val(); | data['ModelFile'] = $('#ModelFile').val(); | ||||
| console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine'] + " ModelFile=" + data['ModelFile']); | 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']); | 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) => { | $.post(`${repolink}/modelmanage/create_model_convert`,data,(result) => { | ||||
| console.log("result=" + result); | console.log("result=" + result); | ||||
| $('.ui.modal.second').modal('hide'); | |||||
| if(result.result_code ==0){ | if(result.result_code ==0){ | ||||
| window.location.reload(); | window.location.reload(); | ||||
| } | } | ||||
| @@ -329,9 +328,14 @@ | |||||
| }, | }, | ||||
| onHide:function(){ | onHide:function(){ | ||||
| document.getElementById("formId").reset(); | document.getElementById("formId").reset(); | ||||
| $('#model_convert_name').val("") | |||||
| $('#choice_model').dropdown('clear') | $('#choice_model').dropdown('clear') | ||||
| $('#choice_version').dropdown('clear') | $('#choice_version').dropdown('clear') | ||||
| $('#choice_file').dropdown('clear') | $('#choice_file').dropdown('clear') | ||||
| $('#ModelFile').val("") | |||||
| $('#SrcEngine').dropdown('clear') | |||||
| $('#DestFormat').dropdown('clear') | |||||
| $('#NetOutputFormat').dropdown('clear') | |||||
| $('.ui.dimmer').css({"background-color":""}) | $('.ui.dimmer').css({"background-color":""}) | ||||
| $('.ui.error.message').text() | $('.ui.error.message').text() | ||||
| $('.ui.error.message').css('display','none') | $('.ui.error.message').css('display','none') | ||||