|
@ -251,9 +251,9 @@
|
|
|
},
|
|
|
mounted: function () {
|
|
|
// if (this.screeningType != '6bcd306aaafb4e4381071346d86fadbb1') {
|
|
|
this.getHealth()
|
|
|
// console.log(123456);
|
|
|
|
|
|
this.getHealth()
|
|
|
// console.log(123456);
|
|
|
|
|
|
// }
|
|
|
this.getQuestion()
|
|
|
this.getDoctorInfo()
|
|
@ -741,9 +741,6 @@
|
|
|
}
|
|
|
}
|
|
|
vm.$forceUpdate()
|
|
|
if (vm.screeningType == '6bcd306aaafb4e4381071346d86fadbb1') {
|
|
|
vm.getInitData()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@ -765,7 +762,7 @@
|
|
|
.then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
var data = res.medical_detail
|
|
|
console.log(data,"data");
|
|
|
console.log(data, 'data')
|
|
|
|
|
|
for (var i in vm.questions) {
|
|
|
if (vm.questions[i].question.thirdKey == 'height') {
|
|
@ -819,16 +816,20 @@
|
|
|
vm.questions[i].question.content = data.renalFunctionCreatinine
|
|
|
vm.changeContent(vm.questions[i].question, data.renalFunctionCreatinine)
|
|
|
}
|
|
|
|
|
|
if(vm.questions[i].question.thirdKey == 'ckd34'){
|
|
|
if(data.renalFunctionCreatinine){
|
|
|
|
|
|
if (vm.questions[i].question.thirdKey == 'ckd34') {
|
|
|
if (data.renalFunctionCreatinine) {
|
|
|
var ckd34 = (((140 - vm.age) * data.weight) / (0.818 * data.renalFunctionCreatinine)).toFixed(2)
|
|
|
vm.questions[i].question.content = ckd34
|
|
|
vm.changeContent(vm.questions[i].question, ckd34)
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (vm.screeningType == '6bcd306aaafb4e4381071346d86fadbb1') {
|
|
|
// 如果是ascvd筛查再调用第三方接口
|
|
|
vm.getInitData()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
vm.$forceUpdate()
|