diff --git a/business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue b/business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue index 2b1b362..bc561cd 100644 --- a/business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue +++ b/business-css/frontend/src/views/business/algorithmManagement/algorithm/index.vue @@ -104,20 +104,40 @@ function confirmClick(formEl: any) { defaultHyperParams: info.value.defaultHyperParams, status: info.value.status, } - addAlgorithms(params).then((res) => { - gettableData(); + addAlgorithms(params).then((res:any) => { + if(res == true){ + ElMessage({ + type: "success", + message: "新增成功", + }); + gettableData(); + } dialogVisible.value = false; }); } else if (info.value.algorithmId) { const params = { - algorithmId: info.value.algorithmId, - name: info.value.name, - description: info.value.description, - version: info.value.version, - principle: info.value.principle, + algorithmId: info.value.algorithmId, + algorithmType: info.value.algorithmType, + name: info.value.name, + description: info.value.description, + version: info.value.version, + principle: info.value.principle, + inputParams: info.value.inputParams, + outputParams: info.value.outputParams, + inferBaseUrl: info.value.inferBaseUrl, + trainBaseUrl: info.value.trainBaseUrl, + supportedDeviceTypes: info.value.supportedDeviceTypes, + defaultHyperParams: info.value.defaultHyperParams, + } + updateAlgorithms(params).then((res:any) => { + if(res == true){ + ElMessage({ + type: "success", + message: "修改成功", + }); + gettableData(); } - updateAlgorithms(params).then((res) => { - gettableData(); + dialogVisible.value = false; }); } else { @@ -286,7 +306,7 @@ function changeStatus(row: any) { :modal="false" draggable :before-close="handleClose" :title="title" append-to-body width="1145px" height="600px"> + style="margin-top: 20px;max-height: calc(100vh - 150px);overflow: auto;"> @@ -311,7 +331,7 @@ function changeStatus(row: any) { - + diff --git a/business-css/frontend/src/views/component/scenario/index.vue b/business-css/frontend/src/views/component/scenario/index.vue index 83e9417..55a6e7b 100644 --- a/business-css/frontend/src/views/component/scenario/index.vue +++ b/business-css/frontend/src/views/component/scenario/index.vue @@ -219,10 +219,10 @@ function submitClick(){ let data:any = { scenarioId: info.value.scenarioId, - algorithm_type: info.value.algorithmType, + algorithmType: info.value.algorithmType, name: info.value.name, description: info.value.description, - keffThreshold: info.value.keffThreshold, + keffThreshold: info.value.keffThreshold, } let device_algo_config:any = {} let isTrue:any = false @@ -468,7 +468,7 @@ function initDeviceData(){ - +