|
@@ -30,7 +30,7 @@ function getFLawList(){
|
|
post(api.analyzeRun,{behospitalCode:behospitalCode,hospitalId:hospitalId}).then(function(res){
|
|
post(api.analyzeRun,{behospitalCode:behospitalCode,hospitalId:hospitalId}).then(function(res){
|
|
if(res.data.code==='0'){
|
|
if(res.data.code==='0'){
|
|
const data = res.data.data;
|
|
const data = res.data.data;
|
|
- renderFlawList(data)
|
|
|
|
|
|
+ renderFlawList(data||{})
|
|
}else{
|
|
}else{
|
|
errorShow();
|
|
errorShow();
|
|
}
|
|
}
|
|
@@ -51,7 +51,7 @@ function renderFlawList(data){
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>`;
|
|
<tbody>`;
|
|
- const flawList = data&&data.msgDTOList;
|
|
|
|
|
|
+ const flawList = (data&&data.msgDTOList)||[];
|
|
const {level,num,numScore, scoreRes}=data;
|
|
const {level,num,numScore, scoreRes}=data;
|
|
for(let i = 0; i < flawList.length; i++){
|
|
for(let i = 0; i < flawList.length; i++){
|
|
/*let flawItem = `<div class="flawItem">
|
|
/*let flawItem = `<div class="flawItem">
|
|
@@ -68,7 +68,7 @@ function renderFlawList(data){
|
|
|
|
|
|
}
|
|
}
|
|
str+="</tbody></table>";
|
|
str+="</tbody></table>";
|
|
- if(flawList.length === 0){
|
|
|
|
|
|
+ if(flawList===null||flawList.length === 0){
|
|
str = `
|
|
str = `
|
|
<div class="empty">
|
|
<div class="empty">
|
|
<img class="emptyImg" src="${nullImg}" />
|
|
<img class="emptyImg" src="${nullImg}" />
|