From 79ab38a8bdd0e94c83f1a2e3f8d9a49378993517 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 25 四月 2024 09:51:32 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before into master --- src/views/quality/teststandard/index.vue | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue index 241ac69..df01346 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,15 @@ 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 - } else{ - this.$message.warning('瑕佹眰鑼冨洿娌℃湁濉啓!') - } - }) + for(let standardParam in this.testStandardParams) { + let value = this.testStandardParams[standardParam].referenceValue + if( value !=null) { + value = value.replace(',','锛�').replace('(','锛�').replace(')','锛�') + if (!isNaN(value)) { + value='='+value + } + } + } addTestStandardParam(this.testStandardParams) .then((response) => { this.$message.success('妫�娴嬫爣鍑嗗弬鏁颁繚瀛樻垚鍔�') -- Gitblit v1.9.3