From f26b8f425655c86a01e0338b5c8482a919242f2f Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 30 九月 2024 17:28:38 +0800 Subject: [PATCH] 预测数据分析前端代码 --- src/views/model/pre/analysis/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/model/pre/analysis/index.vue b/src/views/model/pre/analysis/index.vue index f61540c..5418745 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%"> @@ -244,6 +244,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 () => { -- Gitblit v1.9.3