| | |
| | | valueList.forEach(b => { |
| | | str = str.replace(b.name, b.value) |
| | | }) |
| | | comResult = eval(str) |
| | | if(item.v.f.includes('/')>-1){ |
| | | if(Object.getOwnPropertyNames(comValue).length==valueList.length){ |
| | | comResult = eval(str) |
| | | }else{ |
| | | comResult = '' |
| | | } |
| | | }else{ |
| | | comResult = eval(str) |
| | | } |
| | | break; |
| | | } |
| | | list.forEach(a => { |
| | |
| | | let regex = /[=\+\-\*\%\(\)\/\s]/g |
| | | let mode = item.v.f.replace(regex, ' ').split(' '); |
| | | mode.filter(m => m && !Number(m)).forEach(m => { |
| | | let r = m.split('')[1] - 1 |
| | | let r = m.replace(/[a-zA-Z]/g, "") - 1 |
| | | let c = this.comparisonList.find(j => j.label == m.split('')[0]).value |
| | | valueList.push({ |
| | | c, |