Browse Source

模型转换界面交互。

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

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

@@ -179,7 +179,7 @@ func SaveModelConvert(ctx *context.Context) {
} }
models.SaveModelConvert(modelConvert) models.SaveModelConvert(modelConvert)


ShowModelConvertInfo(ctx)
ConvertModelTemplate(ctx)


} }




+ 4
- 5
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -287,7 +287,7 @@
console.log("name=" + data['name'] + " desc=" + data['desc'] + " modelId=" + data['modelId'] + " SrcEngine=" + data['SrcEngine']); 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']); console.log("inputshape=" + data['inputshape'] + " inputdataformat=" + data['inputdataformat'] + " DestFormat=" + data['DestFormat'] + " NetOutputFormat=" + data['NetOutputFormat']);
$('.ui.modal.second').modal('hide'); $('.ui.modal.second').modal('hide');
$('.ui.form').submit();
//$('.ui.form').submit();
/* /*
let url_href = `${repolink}/modelmanage/create_model_convert`; let url_href = `${repolink}/modelmanage/create_model_convert`;
$.ajax({ $.ajax({
@@ -304,10 +304,9 @@
console.log("completed=" + xhr); 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(){ function createModelName(){


Loading…
Cancel
Save