|
@@ -312,7 +312,7 @@ import { getToken } from '@/utils/auth'
|
|
|
response.data.rectifyDeadline = response.data.rectifyDeadline?response.data.rectifyDeadline:"";
|
|
|
for(let i=0;i<response.data.checkHazardDtoList.length;i++){
|
|
|
response.data.checkHazardDtoList[i].lookType = true;
|
|
|
- response.data.checkHazardDtoList[i].voiceRemark = JSON.parse(response.data.checkHazardDtoList[i].voiceRemark);
|
|
|
+ response.data.checkHazardDtoList[i].voiceRemark = response.data.checkHazardDtoList[i].voiceRemark?JSON.parse(response.data.checkHazardDtoList[i].voiceRemark):[];
|
|
|
}
|
|
|
} else if(response.data.checkCategory==2){//专项检查
|
|
|
if(response.data.checkHazardInfoVoList[0]){
|
|
@@ -320,7 +320,7 @@ import { getToken } from '@/utils/auth'
|
|
|
item.lookType = true;
|
|
|
item.checkHazardDtoList.forEach(function(item2) {
|
|
|
item2.hazardCheckCode=item2.code
|
|
|
- item2.voiceRemark=JSON.parse(item2.voiceRemark)
|
|
|
+ item2.voiceRemark=item2.voiceRemark?JSON.parse(item2.voiceRemark):[];
|
|
|
})
|
|
|
})
|
|
|
}
|