|
@@ -52,7 +52,7 @@ function getRecordDetail(){
|
|
|
initMenu(JSON.parse(result.menuData));
|
|
|
$(".sub-menu>ul>li:first-child.page").addClass("active");
|
|
|
global_activeTab=$(".sub-menu .page.active").attr("code");
|
|
|
- initPatientInfo(info);
|
|
|
+ initPatientInfo(info);console.log(21,global_activeTab)
|
|
|
initContent(result.pageData);
|
|
|
setBoxHeight();
|
|
|
initScoreItem(msg);
|
|
@@ -104,11 +104,11 @@ function initContent(data){
|
|
|
nameMap[k]&&Object.keys(obj[k][i]).length !== 0 &&$(nameMap[k]).tmpl(info).appendTo("#contentInfo");
|
|
|
}
|
|
|
}
|
|
|
- if(obj["病案首页"][0]["出院诊断"]){
|
|
|
+ if(obj["病案首页"]&&obj["病案首页"][0]["出院诊断"]){
|
|
|
const diag = JSON.parse(obj["病案首页"][0]["出院诊断"]);
|
|
|
$("#tableTmpl").tmpl({k:"出院诊断",data:diag}).appendTo("#diagTable");
|
|
|
}
|
|
|
- if(obj["病案首页"][0]["手术信息"]){
|
|
|
+ if(obj["病案首页"]&&obj["病案首页"][0]["手术信息"]){
|
|
|
const diag = JSON.parse(obj["病案首页"][0]["手术信息"]);
|
|
|
$("#tableTmpl").tmpl({k:"手术信息",data:diag}).appendTo("#surgeryTable");
|
|
|
}
|