自动计算ROI测量值更改
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2026-03-02 11:13:29 +08:00
parent c0ae4732fc
commit 3fca2e76cb
1 changed files with 10 additions and 10 deletions

View File

@ -681,16 +681,16 @@ export default {
},
setFormItemData(obj) {
this.qsForm[obj.key] = obj.val
// if (obj.key === this.eemId || obj.key === this.lumenId) {
// const eem = this.qsForm[this.eemId]
// const lumen = this.qsForm[this.lumenId]
// if (isNaN(parseFloat(eem)) || isNaN(parseFloat(lumen))) {
// this.$set(this.qsForm, this.diffId, null)
// } else {
// const diff = parseFloat(eem) - parseFloat(lumen)
// this.$set(this.qsForm, this.diffId, this.numberToFixed(diff))
// }
// }
if (obj.key === this.eemId || obj.key === this.lumenId) {
const eem = this.qsForm[this.eemId]
const lumen = this.qsForm[this.lumenId]
if (isNaN(parseFloat(eem)) || isNaN(parseFloat(lumen))) {
this.$set(this.qsForm, this.diffId, null)
} else {
const diff = parseFloat(eem) - parseFloat(lumen)
this.$set(this.qsForm, this.diffId, this.numberToFixed(diff))
}
}
},
handleAddOrEdit(type, row, index) {
this.addOrEdit.title = row.QuestionName