From 47ee647ad4b08891d1cba06449577b3b3aaae5ef Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期四, 16 一月 2025 11:51:55 +0800
Subject: [PATCH] 禁用校验

---
 src/views/data/ind/item/CalIndDefineForm.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/data/ind/item/CalIndDefineForm.vue b/src/views/data/ind/item/CalIndDefineForm.vue
index 0d5fc81..119ef91 100644
--- a/src/views/data/ind/item/CalIndDefineForm.vue
+++ b/src/views/data/ind/item/CalIndDefineForm.vue
@@ -20,7 +20,8 @@
       <el-row>
         <el-col :span="12">
           <el-form-item label="指标分类" prop="itemCategory">
-            <el-select v-model="formData.itemCategory" clearable placeholder="请选择指标分类">
+            <el-select v-model="formData.itemCategory" clearable filterable
+                       allow-create placeholder="请选择指标分类">
               <el-option
                 v-for="item in dataCategoryList"
                 :key="item.id"
@@ -183,9 +184,9 @@
   const operatorList = ref(['+', '-', '*', '/', '&', '|', '!', '>', '<'])
   const formRules = reactive({
     itemName: [{required: true, message: '指标名称不能为空', trigger: 'blur'}],
-    itemCategory: [{required: true, message: '指标类型不能为空', trigger: 'blur'}],
-    precision: [{validator: validateAsNumber, trigger: 'blur' }],
-    coefficient: [{validator: validateAsNumber, trigger: 'blur' }],
+    itemCategory: [{required: true, message: '指标类型不能为空', trigger: 'blur'}]
+    // precision: [{validator: validateAsNumber, trigger: 'blur' }],
+    // coefficient: [{validator: validateAsNumber, trigger: 'blur' }],
   })
   const formRef = ref() // 表单 Ref
   const dataSourceList = ref([] as DataSourceConfigApi.DataSourceConfigVO[])

--
Gitblit v1.9.3