sum() {
for (let index = 1; index < 21; index++) {
const key1 = `elm${index}Tc`
const key2 = `elm${index}ValueTc`
const key3 = `exp${index}Tc`
const flag1 = this.parame[key1] !== ' ' || !this.parame[key1]
const flag2 = this.parame[key2] !== ' ' || !this.parame[key2]
const flag3 = this.parame[key3] !== ' ' && this.parame[key3]
if (flag1 || flag2) {
this.$refs.filter.setAttr(
key2, 'label',
`${this.parame[key1]}${flag3 ? `( 10 <sup>-${this.parame[key3]}</sup> ) ` : ' '}:`)
} else {
this.$refs.filter.hiddenItem(key2)
}
if (this.parame[key3] === 'null' || !this.parame[key3] || this.parame[key3] === ' ') {
this.$refs.filter.hiddenItem(key3)
} else {
this.$refs.filter.setAttr(key3, 'label', `可选元素${index}的倍数:`)
}
}
}
}