|
@@ -18,7 +18,7 @@ setListHei()
|
|
|
|
|
|
|
|
|
|
function getFLawList(){
|
|
function getFLawList(){
|
|
- post(api.analyzeRun,{behospitalCode:behospitalCode,hospitalId:hospitalId, modeId:modeId}).then(function(res){
|
|
|
|
|
|
+ post(api.flawTotal,{behospitalCode:behospitalCode,isPlacefile:'1'}).then(function(res){
|
|
if(res.data.code==='0'){
|
|
if(res.data.code==='0'){
|
|
const data = res.data.data&&res.data.data.msgDTOList;
|
|
const data = res.data.data&&res.data.data.msgDTOList;
|
|
renderFlawList(data)
|
|
renderFlawList(data)
|
|
@@ -34,7 +34,7 @@ function getFLawList(){
|
|
getFLawList()
|
|
getFLawList()
|
|
|
|
|
|
function renderFlawList(flawList){
|
|
function renderFlawList(flawList){
|
|
- let str = `<table>`;
|
|
|
|
|
|
+ let str = ``;
|
|
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">
|
|
<span class="flawItemIconBox"><img class="flawItemIcon" src="${iconWarn}" /></span>
|
|
<span class="flawItemIconBox"><img class="flawItemIcon" src="${iconWarn}" /></span>
|
|
@@ -48,7 +48,7 @@ function renderFlawList(flawList){
|
|
str += flawItem;
|
|
str += flawItem;
|
|
|
|
|
|
}
|
|
}
|
|
- str+="</table>";
|
|
|
|
|
|
+ //str+="</table>";
|
|
if(flawList.length === 0){
|
|
if(flawList.length === 0){
|
|
str = `
|
|
str = `
|
|
<div class="empty">
|
|
<div class="empty">
|
|
@@ -57,7 +57,7 @@ function renderFlawList(flawList){
|
|
</div>
|
|
</div>
|
|
`;
|
|
`;
|
|
}
|
|
}
|
|
- $('.flawList').html(str);
|
|
|
|
|
|
+ $('.flawList tbody').html(str);
|
|
replaceSrc();
|
|
replaceSrc();
|
|
$('.flawNum').html(flawList.length)
|
|
$('.flawNum').html(flawList.length)
|
|
}
|
|
}
|