Commit e0fc63e8 authored by songrui's avatar songrui

居民端筛查修改

parent 01e70541
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'faaa4626-dea4-43ab-98ba-ca1c200e1736' token = 'd174ee24-e53f-4f0e-8a51-aa449ea8e026'
} }
} }
if (token) { if (token) {
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
} else { } else {
backHome() backHome()
} }
} }
} }
} }
......
...@@ -524,15 +524,15 @@ export default { ...@@ -524,15 +524,15 @@ export default {
}, },
resultHandle() { resultHandle() {
const {currentAge, height = 0, weight = 0, waistline, familyHistory = [], isSmoking, gender, const {currentAge, height = 0, weight = 0, waistline, familyHistory = [], isSmoking, gender,
pressureOneSbp, pressureOneDbp, pressureTwoSbp, pressureTwoDbp, fastingGlucose, ldlCholesterin} = this.form pressureOneSbp, pressureOneDbp, pressureTwoSbp, pressureTwoDbp, fastingGlucose, ldlCholesterin, serumCholesterin} = this.form
let list = [] let list = []
if (currentAge >= 50) { if (currentAge >= 50) {
list.push(1) list.push(1)
} }
let bmi = parseFloat(this.bmi) let bmi = parseFloat(this.bmi)
if ((bmi >= 24)|| if ((bmi >= 24)||
(gender == 2 && waistline >=85) || (gender == 2 && waistline >=80) ||
(gender == 1 && waistline >=90) ){ (gender == 1 && waistline >=85) ){
list.push(2) list.push(2)
} }
if (isSmoking == 1) { if (isSmoking == 1) {
...@@ -550,7 +550,10 @@ export default { ...@@ -550,7 +550,10 @@ export default {
if (fastingGlucose >= 6.1) { if (fastingGlucose >= 6.1) {
list.push(6) list.push(6)
} }
if (ldlCholesterin >= 3.4) { // if (ldlCholesterin >= 3.4) {
// list.push(7)
// }
if (serumCholesterin >= 5.2) {
list.push(7) list.push(7)
} }
list = Array.from(new Set(list)) list = Array.from(new Set(list))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment