自动计算ROI测量值更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
c0ae4732fc
commit
3fca2e76cb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue