修改bug

This commit is contained in:
limengnan 2026-03-12 16:49:52 +08:00
parent 099486cfc1
commit df9410b2d2
2 changed files with 7 additions and 3 deletions

View File

@ -471,6 +471,9 @@ function confirmsClick(){
</el-upload>
</el-form-item>
<el-form-item label="参数配置" style="width: 100%;" >
<div>
<span style="font-weight: bold;">输入数据预处理说明</span>输入数据在训练前已进行标准化处理StandardScaler,因此 rbf_length_scale 等参数对应的是标准化后的尺度不是原始数据的物理单位
</div>
<el-table v-loading="loading" :data="algorithmsTypeData" style="width: 100%;" border
:header-cell-style="{ background: 'rgb(250 250 250)', color: '#383838', height: '50px' }">
<el-table-column prop="name" label="参数名称" width="180" ></el-table-column>

View File

@ -110,6 +110,9 @@ const rules = ref({
function editClick(row: any,type: string) {
title.value =type + "事故情景";
info.value = JSON.parse(JSON.stringify(row));
for(let i = 0;i<deviceData.value.length;i++){
deviceData.value[i].algorithmType = ''
}
if(info.value.deviceAlgoConfig !=null && info.value.deviceAlgoConfig != ''){
let device_algo_config = JSON.parse(info.value.deviceAlgoConfig)
for(let key in device_algo_config){
@ -479,10 +482,8 @@ function initDeviceData(){
</div>
<Createscenario v-if="dialogVisible" :projectInfo="projectInfo" @closeCreatescenario ="closeCreatescenario"/>
<el-dialog v-model="dialogEditVisible" :close-on-click-modal="false"
:modal="false" draggable :before-close="handleClose" title="新增事故情景"
:modal="false" draggable :before-close="handleClose" :title="title"
append-to-body width="590px">
<el-form ref="infoForm" :model="info" :rules="rules" label-width="140px" style="width:500px">
<el-form-item label="事故情景名称:" prop="name">
<el-input v-model="info.name" style="width: 100%" placeholder="输入事故情景名称" :disabled="title == '查看事故情景'"></el-input>