From 346718058b6fd0d882385a549532adf384633ce6 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 20 一月 2025 14:58:42 +0800
Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3

---
 src/views/model/pre/item/MmPredictItemForm.vue |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/src/views/model/pre/item/MmPredictItemForm.vue b/src/views/model/pre/item/MmPredictItemForm.vue
index c48cbd5..c8eee15 100644
--- a/src/views/model/pre/item/MmPredictItemForm.vue
+++ b/src/views/model/pre/item/MmPredictItemForm.vue
@@ -110,6 +110,21 @@
               maxlength="5"/>
           </el-form-item>
         </el-col>
+        <el-col :span="12">
+          <el-form-item label="真实数据点">
+            <el-select
+              v-model="dataForm.pointId"
+              filterable
+              clearable
+              placeholder="请选择">
+              <el-option
+                v-for="item in pointList"
+                :key="item.id"
+                :label="item.pointName"
+                :value="item.id"/>
+            </el-select>
+          </el-form-item>
+        </el-col>
       </el-row>
       <el-divider content-position="left" v-if="dataForm.itemtypename === 'NormalItem'">模型信息
       </el-divider>
@@ -283,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>
@@ -357,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>
@@ -544,7 +557,8 @@
     num: undefined
   },
   mmModelArithSettingsList: [],
-  mmModelParamList: []
+  mmModelParamList: [],
+  pointId: undefined
 })
 const formRules = reactive({
   'mmPredictItem.itemname': [{required: true, message: '预测项名不能为空', trigger: 'blur'}],
@@ -651,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