From 1017428aa86212e6497cee6e889c4c5f90f4e4c9 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 22 十一月 2023 14:10:11 +0800
Subject: [PATCH] 	modified:   src/views/quality/rawMaterial/index.vue 	modified:   src/views/quality/rawMaterial/rawMaterial-form.vue 	modified:   src/views/quality/teststandard/standard-form.vue

---
 src/views/quality/teststandard/standard-form.vue |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/src/views/quality/teststandard/standard-form.vue b/src/views/quality/teststandard/standard-form.vue
index 6e9dfa2..3b0cbde 100644
--- a/src/views/quality/teststandard/standard-form.vue
+++ b/src/views/quality/teststandard/standard-form.vue
@@ -155,6 +155,23 @@
     ZttMonacoEditor,
     operationDialog
   },
+  watch:{
+    visible(newVal){
+      if(!newVal){
+        this.dataForm = {
+          id: 0,
+          standardName: '',
+          standardNo: '',
+          remark: '',
+          judgeFormula: '',
+          inspectionType: null,
+          operationId: null,
+          operationNo: null,
+          operationName: null,
+        }
+      }
+    }
+  },
   created() {
     this.funcs = funcForStandard()
     this.constants = constantForStandard()
@@ -194,20 +211,8 @@
       this.visible = true
       this.$nextTick(() => {
         this.$refs.dataForm.resetFields()
-        this.dataForm = {
-          id: 0,
-          standardName: '',
-          standardNo: '',
-          remark: '',
-          judgeFormula: '',
-          inspectionType: null,
-          operationId: null,
-          operationNo: null,
-          operationName: null,
-        }
         if (this.dataForm.id) {
           getTestStandard(this.dataForm.id).then((response) => {
-            console.log(response.data.data)
             this.dataForm = response.data.data
             // this.$refs.templateJudgmentCondition.setVal(
             //   this.dataForm.judgeFormula == null

--
Gitblit v1.9.3