| | |
| | | }, |
| | | methods: { |
| | | showdata () { |
| | | console.log(1111); |
| | | console.log(this.jsonData.sign[0].name); |
| | | // console.log(this.record.xyData); |
| | | |
| | | }, |
| | |
| | | this.record.params[0] = obj.sig[0]; |
| | | |
| | | this.record.xyData = this.jsonData.sign; |
| | | console.log(this.jsonData.sign) |
| | | for (let a = 0; a < this.record.xyData.length; a++) { |
| | | this.record.xyData[a].value = this.record.params[0][a]; |
| | | |
| | |
| | | //语言转换 |
| | | replaceChineseWithEnglish () { |
| | | |
| | | const translation = this.$t('Signlang'); |
| | | // const translation = this.$t('Signlang'); |
| | | |
| | | if (translation != null) { |
| | | this.record.xyData = this.record.xyData.map(item => { return { name: translation[item.name] || item.name, value: item.value,unit:item.unit }; }); |
| | | //console.log(translation); |
| | | } |
| | | // if (translation != null) { |
| | | // this.record.xyData = this.record.xyData.map(item => { return { name: translation[item.name] || item.name, value: item.value,unit:item.unit }; }); |
| | | // //console.log(translation); |
| | | // } |
| | | |
| | | } |
| | | } |