From 0f7f2d20981bf400fe321d9427d85259e14409f2 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 16 Jan 2024 11:14:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9PET=205PS=E8=AF=84=E5=88=86?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + .../reading/dicoms/components/Fusion/Questions.vue | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) 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'