diff --git a/.eslintignore b/.eslintignore index 1f0801b9..d906ce6b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -5,6 +5,7 @@ public dist # src/* +src/App.vue src/views/trials/trials-panel/reading/global-review/* src/views/dictionary/checkConfig/* src/views/trials/trials-panel/trial-summary/* diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue index 97e4c7a8..730aef42 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/Questions.vue @@ -422,24 +422,24 @@ export default { console.log('setpet5PS') // 无需标记,自主选择 1分 // 无需标记,自主选择 x分 - const maxSUVmax = !isNaN(parseFloat(this.questionForm[this.suvmaxId])) ? parseFloat(this.questionForm[this.suvmaxId]) : 0 + const maxSUVmax = !isNaN(parseFloat(this.questionForm[this.suvmaxId])) ? parseFloat(this.questionForm[this.suvmaxId]) : null // 肝脏血池SUVmax - const liverSUVmax = !isNaN(parseFloat(this.questionForm[this.liverSuvmaxId])) ? parseFloat(this.questionForm[this.liverSuvmaxId]) : 0 + const liverSUVmax = !isNaN(parseFloat(this.questionForm[this.liverSuvmaxId])) ? parseFloat(this.questionForm[this.liverSuvmaxId]) : null // 纵膈血池SUVmax - const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : 0 - if (maxSUVmax > liverSUVmax * 2) { + const lungSUVmax = !isNaN(parseFloat(this.questionForm[this.lungSuvmaxId])) ? parseFloat(this.questionForm[this.lungSuvmaxId]) : null + if (maxSUVmax !== null && liverSUVmax !== null && maxSUVmax > liverSUVmax * 2) { // 本访视病灶的 max SUVmax(所有病灶中最大的)>2*肝脏血池SUVmax 5分 // this.questionForm[this.pet5PSId] = '5' return '5' - } else if (maxSUVmax > liverSUVmax) { + } else if (maxSUVmax !== null && liverSUVmax !== null && maxSUVmax > liverSUVmax) { // 本访视病灶的SUVmax(所有病灶中最大的)>肝脏血池SUVmax 4分 // this.questionForm[this.pet5PSId] = '4' return '4' - } else if (maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) { + } else if (maxSUVmax !== null && liverSUVmax !== null && lungSUVmax !== null && maxSUVmax > lungSUVmax && maxSUVmax <= liverSUVmax) { // 纵隔血池SUVmax<本访视点病灶的max SUVmax(所有病灶中最大的)≤1*肝脏血池SUVmax 3分 // this.questionForm[this.pet5PSId] = '3' return '3' - } else if (maxSUVmax < lungSUVmax) { + } else if (maxSUVmax !== null && lungSUVmax !== null && maxSUVmax < lungSUVmax) { // 本访视点病灶的SUVmax(所有病灶中最大的)<纵隔血池SUVmax 2分 // this.questionForm[this.pet5PSId] = '2' return '2'