From 32396ca82284498b42cc132ff9fa51c6207f0d37 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 22 十一月 2024 14:00:01 +0800
Subject: [PATCH] 预测项输出描述

---
 src/views/model/pre/item/MmPredictItemForm.vue |   15 ++++++++++-----
 src/views/model/pre/analysis/index.vue         |   10 +++++-----
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/views/model/pre/analysis/index.vue b/src/views/model/pre/analysis/index.vue
index b0939c3..ef66aba 100644
--- a/src/views/model/pre/analysis/index.vue
+++ b/src/views/model/pre/analysis/index.vue
@@ -361,7 +361,7 @@
       })
       offset = offset + 40
       if (chartCheckArray.indexOf('真实值') !== -1) {
-        let legendName = dataView.resultstr + '(真实)';
+        let legendName = dataView.resultName + '(真实)';
         legendData.push(legendName);
         seriesData.push({
           name: legendName,
@@ -376,7 +376,7 @@
         });
       }
       if (chartCheckArray.indexOf('T+N') !== -1) {
-        let legendName = dataView.resultstr + '(T+N)';
+        let legendName = dataView.resultName + '(T+N)';
         seriesData.push({
           name: legendName,
           data: dataView.preDataN || [],
@@ -390,7 +390,7 @@
         });
       }
       if (chartCheckArray.indexOf('T+L') !== -1) {
-        let legendName = dataView.resultstr + '(T+L)';
+        let legendName = dataView.resultName + '(T+L)';
         legendData.push(legendName);
         seriesData.push({
           name: legendName,
@@ -406,7 +406,7 @@
         });
       }
       if (chartCheckArray.indexOf('当时') !== -1) {
-        let legendName = dataView.resultstr + '(当时)';
+        let legendName = dataView.resultName + '(当时)';
         legendData.push(legendName);
         seriesData.push({
           name: legendName,
@@ -421,7 +421,7 @@
         });
       }
       if (chartCheckArray.indexOf('调整值') !== -1) {
-        let legendName = dataView.resultstr + '(调整值)';
+        let legendName = dataView.resultName + '(调整值)';
         legendData.push(legendName);
         seriesData.push({
           name: legendName,
diff --git a/src/views/model/pre/item/MmPredictItemForm.vue b/src/views/model/pre/item/MmPredictItemForm.vue
index cb01f79..2ee0b2e 100644
--- a/src/views/model/pre/item/MmPredictItemForm.vue
+++ b/src/views/model/pre/item/MmPredictItemForm.vue
@@ -1,5 +1,5 @@
 <template>
-  <Dialog v-model="dialogVisible" :title="dialogTitle" width="50%">
+  <Dialog v-model="dialogVisible" :title="dialogTitle" width="60%">
     <el-form
       ref="formRef"
       v-loading="formLoading"
@@ -212,12 +212,12 @@
         border
         style="width: 100%; margin-top: 5px;">
         <el-table-column prop="outputorder" label="排序" align="center" width="80px"/>
-        <el-table-column label="结果" align="center" width="150px">
+        <el-table-column label="结果KEY" align="center" width="150px">
           <template #default="scope">
             <el-input v-model="scope.row.resultstr" placeholder="请输入"/>
           </template>
         </el-table-column>
-        <el-table-column label="结果数据类型" align="center" width="150px">
+        <el-table-column label="结果类型" align="center" width="150px">
           <template #default="scope">
             <el-select
               v-model="scope.row.resultType"
@@ -232,11 +232,16 @@
             </el-select>
           </template>
         </el-table-column>
-        <el-table-column label="索引" align="center" width="120px">
+        <el-table-column label="索引" align="center" width="100px">
           <template #default="scope">
             <el-input-number style="width:100%;hight:100%" :disabled="scope.row.resultType !== 2"
                              v-model="scope.row.resultIndex" :min="0" step-strictly
                              controls-position="right"/>
+          </template>
+        </el-table-column>
+        <el-table-column label="结果名称" align="center" width="150px">
+          <template #default="scope">
+            <el-input v-model="scope.row.resultName" placeholder="请输入"/>
           </template>
         </el-table-column>
         <el-table-column label="数据点" align="center">
@@ -275,7 +280,7 @@
         <el-table-column prop="key" label="键" align="center" min-width="150"/>
         <el-table-column prop="name" label="名称" align="center" min-width="150"/>
         <el-table-column prop="valuetype" label="类型" align="center" min-width="150"/>
-        <el-table-column prop="" 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="256"
                       style="width:100%;height:100%"/>

--
Gitblit v1.9.3