From da47a3349dcfd87db23ab8e64fbf35fe1aea5685 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 16:52:21 +0800
Subject: [PATCH] 预测项数据

---
 src/views/model/pre/analysis/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/model/pre/analysis/index.vue b/src/views/model/pre/analysis/index.vue
index f61540c..b21627a 100644
--- a/src/views/model/pre/analysis/index.vue
+++ b/src/views/model/pre/analysis/index.vue
@@ -53,7 +53,7 @@
           </div>
           <div class="his-body-right">
             <div class="his-body-chart">
-              <el-form :inline="true" :model="calRateForm" ref="calRateForm" label-width="100px">
+              <el-form :inline="true" :model="calRateForm" :rules="formRules" ref="calRateForm" label-width="108px">
                 <el-row>
                   <el-col :span="6" >
                     <el-form-item label="预测项" prop="calItem" style="width: 90%">
@@ -164,7 +164,6 @@
           </div>
         </div>
       </el-form>
-
     </div>
   </el-card>
 </template>
@@ -173,7 +172,7 @@
   import * as CategoryApi from "@/api/data/ind/category";
   import * as DmModule from '@/api/model/pre/dm'
   import * as ItemApi from "@/api/data/ind/item/item";
-  import * as MmPredictItem from '@/api/model/pre/predict'
+  import * as MmPredictItem from '@/api/model/pre/item'
   import * as echarts from "echarts";
   import { onMounted, ref } from 'vue';
   import { Search, ArrowLeft, ArrowRight,} from '@element-plus/icons-vue'
@@ -244,6 +243,12 @@
   const treeData = ref([])
   const itemDataObject = ref()
   const timer = ref()
+
+  const formRules = reactive({
+    calItem: [{required: true, message: '预测项不能为空', trigger: 'blur'}],
+    IN_DEVIATION: [{required: true, message: '精准度偏差不能为空', trigger: 'blur'}],
+    OUT_DEVIATION: [{required: true, message: '不可信率偏差不能为空', trigger: 'blur'}],
+  })
   //const myChart = echarts.init(document.getElementById("data-analysis"));
   /** 查询列表 */
   const getList = async () => {
@@ -678,7 +683,7 @@
 
   .his-body {
     width: 100%;
-    height: calc(calc(100vh - 48px - 38px - 130px));
+    height: calc(calc(100vh - 68px - 38px - 160px));
     display: flex;
     flex-direction: row;
     justify-content: flex-start;

--
Gitblit v1.9.3