From 9e0a038387707684c2222d188528f9cecb8b4681 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 25 四月 2024 09:48:51 +0800
Subject: [PATCH] 检测标准bug

---
 src/views/quality/teststandard/index.vue |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue
index 392c8ed..df01346 100644
--- a/src/views/quality/teststandard/index.vue
+++ b/src/views/quality/teststandard/index.vue
@@ -497,10 +497,11 @@
   },
   computed: {
     ...mapGetters(['permissions']),
-    editable: function() {
+    editable : function() {
       if (!this.currentTestStandard) {
         return true
       }
+      console.log('99999999999', this.currentTestStandard)
       if (
         this.currentTestStandard.id &&
         this.currentTestStandard.state === '01draft'
@@ -866,12 +867,15 @@
     dataFormTestStandardParam() {
       this.isSubmit = true
       if (this.testStandardParams.length > 0) {
-        this.testStandardParams.map(m=>{
-          if(m.referenceValue !== undefined) {
-              m.referenceValue = m.referenceValue.replace(',','锛�').replace('(','锛�').replace(')','锛�')
-            return m
-          }
-        })
+        for(let standardParam in this.testStandardParams) {
+            let value = this.testStandardParams[standardParam].referenceValue
+            if( value !=null) {
+                value = value.replace(',','锛�').replace('(','锛�').replace(')','锛�')
+                if (!isNaN(value)) {
+                  value='='+value
+                }
+            }
+        }
         addTestStandardParam(this.testStandardParams)
           .then((response) => {
             this.$message.success('妫�娴嬫爣鍑嗗弬鏁颁繚瀛樻垚鍔�')

--
Gitblit v1.9.3