|
@ -84,7 +84,7 @@
|
|
|
|
|
|
function load(){
|
|
|
getSignCount(); //签约、待签约数量
|
|
|
// getPatiTypeAmount();//病种人群数量
|
|
|
getPatiTypeAmount();//病种人群数量
|
|
|
updateBadgeNumber(); //刷新应用角标数字
|
|
|
// getGroupMsgCount(); // 获取讨论组总数
|
|
|
|
|
@ -106,30 +106,10 @@
|
|
|
var params = {};
|
|
|
sendGet(postUrl, params, null, function(res) {
|
|
|
if(res.status == 200) {
|
|
|
var allAmount = 0;
|
|
|
var useAmount = 0;
|
|
|
var otherAmount = 0;
|
|
|
$.each(res.data, function(i, v) {
|
|
|
if(v.labelCode == 1){//普通人群
|
|
|
document.getElementById("normal_amount").innerText = "( "+ v.amount +" 人)";
|
|
|
useAmount = useAmount + v.amount;
|
|
|
}
|
|
|
if(v.labelCode == 3){//老年人
|
|
|
document.getElementById("old_amount").innerText = "( "+ v.amount +" 人)";
|
|
|
useAmount = useAmount + v.amount;
|
|
|
}
|
|
|
if(v.labelCode == 4){//高血压
|
|
|
document.getElementById("hypertension_amount").innerText = "( "+ v.amount +" 人)";
|
|
|
useAmount = useAmount + v.amount;
|
|
|
}
|
|
|
if(v.labelCode == 5){//糖尿病
|
|
|
document.getElementById("diabetes_amount").innerText = "( "+ v.amount +" 人)";
|
|
|
useAmount = useAmount + v.amount;
|
|
|
}
|
|
|
allAmount = allAmount + v.amount;//总人数
|
|
|
});
|
|
|
otherAmount = allAmount - useAmount;//其他的人数
|
|
|
document.getElementById("other_amount").innerText = "( "+ otherAmount +" 人)";
|
|
|
var data = res.data;
|
|
|
document.getElementById("hypertension_amount").innerText = "( "+ data[0].amount +" 人)";
|
|
|
document.getElementById("diabetes_amount").innerText = "( "+ data[1].amount +" 人)";
|
|
|
document.getElementById("other_amount").innerText = "( "+ data[2].amount +" 人)";
|
|
|
} else {
|
|
|
console.error(res.msg);
|
|
|
}
|