From 3f6cd5f8b39c8fdae604090e0db3995123f28cc8 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期三, 24 四月 2024 18:33:21 +0800
Subject: [PATCH] xiug

---
 src/views/quality/teststandard/standard-form.vue |    8 +++++++-
 vue.config.js                                    |   12 ++++++++++--
 src/views/quality/teststandard/index.vue         |   15 +++++++++------
 3 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue
index 241ac69..ff128d8 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,14 +867,16 @@
     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 !== undefined) {
+                value = value.replace(',','锛�').replace('(','锛�').replace(')','锛�')
           } else{
             this.$message.warning('瑕佹眰鑼冨洿娌℃湁濉啓!')
+            this.isSubmit = false
+            return;
           }
-        })
+        }
         addTestStandardParam(this.testStandardParams)
           .then((response) => {
             this.$message.success('妫�娴嬫爣鍑嗗弬鏁颁繚瀛樻垚鍔�')
diff --git a/src/views/quality/teststandard/standard-form.vue b/src/views/quality/teststandard/standard-form.vue
index 45b2db6..061e4af 100644
--- a/src/views/quality/teststandard/standard-form.vue
+++ b/src/views/quality/teststandard/standard-form.vue
@@ -93,12 +93,18 @@
     </el-form>
     <span slot="footer" class="dialog-footer">
       <el-button @click="visible = false">鍙栨秷</el-button>
-      <el-button
+      <!-- <el-button
         type="primary"
         :disabled="isSubmit"
         v-thinclick="`dataFormSubmit`"
         v-if="editable"
         >纭畾</el-button
+      > -->
+      <el-button
+        type="primary"
+        :disabled="isSubmit"
+        v-thinclick="`dataFormSubmit`"
+        >纭畾</el-button
       >
     </span>
     <operationDialog
diff --git a/vue.config.js b/vue.config.js
index 299f2a3..7f15d0b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,3 +1,11 @@
+/***
+ * @Author licp lichunping@guanfang.com.cn
+ * @Date 2024-04-12 14:16:06
+ * @LastEditors licp lichunping@guanfang.com.cn
+ * @LastEditTime 2024-04-24 18:03:40
+ * @FilePath \mes-ocea-before\vue.config.js
+ * @Description 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 /**
  * 閰嶇疆鍙傝��:
  * https://cli.vuejs.org/zh/config/
@@ -5,8 +13,8 @@
 
 
 
-// const url = 'https://ztms-mes.chinaztt.cn/'
-const url = 'http://localhost:9999'
+const url = 'https://ztms-mes.chinaztt.cn/'
+// const url = 'http://localhost:9999'
 // const url = 'http://192.168.32.45:9999'
 
 

--
Gitblit v1.9.3