licp
2024-04-25 421145f9db00b79e1c6dedd9e9ec3719b36a407a
src/views/quality/teststandard/index.vue
@@ -867,16 +867,12 @@
    dataFormTestStandardParam() {
      this.isSubmit = true
      if (this.testStandardParams.length > 0) {
        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;
          }
        }
        this.testStandardParams.map(m=>{
          if(m.referenceValue != undefined) {
              m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')')
            return m
            }
        })
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
            this.$message.success('检测标准参数保存成功')