Commit e0fc63e8 authored by songrui's avatar songrui

居民端筛查修改

parent 01e70541
......@@ -52,11 +52,11 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = 'faaa4626-dea4-43ab-98ba-ca1c200e1736'
token = 'd174ee24-e53f-4f0e-8a51-aa449ea8e026'
}
}
if (token) {
sessionStorage.setItem('token', token)
sessionStorage.setItem('token', token)
const res = await getDict()
this.store.$patch({ dict: res.data || {} })
const user = await getAuthInfo()
......@@ -66,7 +66,6 @@ export default {
} else {
backHome()
}
}
}
}
......
......@@ -524,15 +524,15 @@ export default {
},
resultHandle() {
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 = []
if (currentAge >= 50) {
list.push(1)
}
let bmi = parseFloat(this.bmi)
if ((bmi >= 24)||
(gender == 2 && waistline >=85) ||
(gender == 1 && waistline >=90) ){
(gender == 2 && waistline >=80) ||
(gender == 1 && waistline >=85) ){
list.push(2)
}
if (isSmoking == 1) {
......@@ -550,7 +550,10 @@ export default {
if (fastingGlucose >= 6.1) {
list.push(6)
}
if (ldlCholesterin >= 3.4) {
// if (ldlCholesterin >= 3.4) {
// list.push(7)
// }
if (serumCholesterin >= 5.2) {
list.push(7)
}
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