fix:选项检验提交时缺陷项的规则验证

This commit is contained in:
shijing 2025-09-15 10:27:18 +08:00
parent 96d0202421
commit abaff8fe20
1 changed files with 2 additions and 2 deletions

View File

@ -605,7 +605,7 @@ export default {
obj.note = row.note; obj.note = row.note;
//qct //qct
if(that.qct!==''&&that.qct!==null){ if(that.qct!==''&&that.qct!==null){
that.qct_defects_origin.forEach(item => { that.qct_defects.forEach(item => {
if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){ if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){
let str = item.rule_expression.replace(/`/g, ''); let str = item.rule_expression.replace(/`/g, '');
str = str.replace(/\${(.*?)}/g, 'row.\$1') str = str.replace(/\${(.*?)}/g, 'row.\$1')
@ -716,7 +716,7 @@ export default {
defectCountSun(row){ defectCountSun(row){
let that = this; let that = this;
let index = that.mlogbwlist.indexOf(row); let index = that.mlogbwlist.indexOf(row);
that.qct_defects_origin.forEach(item => { that.qct_defects.forEach(item => {
if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){ if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){
let str = item.rule_expression.replace(/`/g, ''); let str = item.rule_expression.replace(/`/g, '');
str = str.replace(/\${(.*?)}/g, 'row.\$1') str = str.replace(/\${(.*?)}/g, 'row.\$1')