From 666248b402414addf20de2fecbc85ae257b83f8a Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Thu, 19 Mar 2026 15:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../algorithmManagement/algorithm/index.vue | 42 ++++++++++++++----- .../src/views/component/scenario/index.vue | 6 +-- 2 files changed, 34 insertions(+), 14 deletions(-) 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(){ - +