licp
2024-04-25 421145f9db00b79e1c6dedd9e9ec3719b36a407a
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,6 +867,12 @@
    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
            }
        })
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
            this.$message.success('检测标准参数保存成功')