zouyu
2023-12-27 4e2bb29096ac63837f8d2c5e25766ee094f45d6c
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()
@@ -245,6 +262,9 @@
              this.visible = false
              this.isSubmit = false
              this.$emit('refreshDataList')
            }).catch(error=>{
              console.error(error);
              this.isSubmit = false
            })
          } else {
            addTestStandard(this.dataForm).then((data) => {
@@ -252,6 +272,9 @@
              this.visible = false
              this.isSubmit = false
              this.$emit('refreshDataList')
            }).catch(error=>{
              console.error(error);
              this.isSubmit = false
            })
          }
        } else {