From 3affb8887f5eff7d3c12f919aac7fe57da3a0f03 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期六, 18 一月 2025 11:57:26 +0800
Subject: [PATCH] 计算预测项 表达式数据异常判定bug

---
 src/views/model/pre/item/MmPredictItemForm.vue |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/views/model/pre/item/MmPredictItemForm.vue b/src/views/model/pre/item/MmPredictItemForm.vue
index 22e5776..c8eee15 100644
--- a/src/views/model/pre/item/MmPredictItemForm.vue
+++ b/src/views/model/pre/item/MmPredictItemForm.vue
@@ -298,7 +298,7 @@
         <el-table-column prop="valuetype" label="类型" align="center" min-width="150"/>
         <el-table-column prop="" label="值" align="center" min-width="200">
           <template #default="scope">
-            <el-input size="mini" v-model="scope.row.value" maxlength="1000"
+            <el-input v-model="scope.row.value" maxlength="1000"
                       :disabled="scope.row.key === 'pyFile'"
                       style="width:100%;height:100%"/>
           </template>
@@ -372,14 +372,12 @@
           <template #default="scope">
             <el-button
               @click="addRow(scope.$index, dataForm.mmModelParamList)"
-              type="text"
-              size="mini">
+              type="text">
               添加
             </el-button>
             <el-button
               @click="deleteRow(scope.$index, scope.row, dataForm.mmModelParamList)"
-              type="text"
-              size="mini">
+              type="text">
               删除
             </el-button>
           </template>
@@ -667,7 +665,7 @@
 
     let flag = false
     expressionList.value.forEach((e,index) => {
-      if (e.point == undefined || e.point === '' || e.operator == undefined || (e.operator === '' && index != expressionList.value.length - 1)) {
+      if (e.point == undefined || e.point === '' || ((e.operator == undefined || e.operator === '') && index != expressionList.value.length - 1)) {
         message.error("表达式数据异常")
         flag = true
         return

--
Gitblit v1.9.3