|
@@ -3,7 +3,7 @@ const $ = require("jquery");
|
|
|
const {post,getUrlArgObject } = require('./js/util.js');
|
|
|
const {api} = require('./js/api.js');
|
|
|
const iconWarn = require("./images/icon_warn.png");
|
|
|
-const emptyImg = require("./images/empty.png");
|
|
|
+const emptyImg = require("./images/empty1.png");
|
|
|
|
|
|
let behospitalCode = getUrlArgObject("behospitalCode") ||''
|
|
|
let hospitalId = getUrlArgObject("hospitalId") ||''
|
|
@@ -18,9 +18,9 @@ setListHei()
|
|
|
|
|
|
|
|
|
function getFLawList(){
|
|
|
- post(api.flawTotal,{behospitalCode:behospitalCode,isPlacefile:'1'}).then(function(res){
|
|
|
+ post(api.analyzeRun,{behospitalCode:behospitalCode,hospitalId:hospitalId, modeId:modeId}).then(function(res){
|
|
|
if(res.data.code==='0'){
|
|
|
- const data = res.data.data&&res.data.data.msgDTOList;
|
|
|
+ const data = res.data.data;
|
|
|
renderFlawList(data)
|
|
|
|
|
|
}else{
|
|
@@ -33,8 +33,18 @@ function getFLawList(){
|
|
|
};
|
|
|
getFLawList()
|
|
|
|
|
|
-function renderFlawList(flawList){
|
|
|
- let str = ``;
|
|
|
+function renderFlawList(data){
|
|
|
+ let str = `<table>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>来源</th>
|
|
|
+ <th>缺陷详情</th>
|
|
|
+ <th>扣分</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody></tbody>`;
|
|
|
+ const flawList = data&&data.msgDTOList;
|
|
|
+ const {level,num,numScore, scoreRes}=data;
|
|
|
for(let i = 0; i < flawList.length; i++){
|
|
|
/*let flawItem = `<div class="flawItem">
|
|
|
<span class="flawItemIconBox"><img class="flawItemIcon" src="${iconWarn}" /></span>
|
|
@@ -42,24 +52,31 @@ function renderFlawList(flawList){
|
|
|
<span class="flawItemScore fr">评分: <span class="flawItemNum">-${flawList[i].score}</span></span>
|
|
|
</div>`*/
|
|
|
let flawItem = `<tr class="flawItem">
|
|
|
- <td><div class="flawItemMsgBox"><img class="flawItemIcon" src="${iconWarn}" />${flawList[i].msg}${flawList[i].info ? "("+flawList[i].info + ")" :''}</div></td>
|
|
|
- <td class="flawItemScore">评分: <span class="flawItemNum">-${flawList[i].score}</span></td>
|
|
|
- </tr>`;
|
|
|
+ <td>${flawList[i].modelName}</td>
|
|
|
+ <td><div class="flawItemMsgBox">${flawList[i].msg}${flawList[i].info ? "("+flawList[i].info + ")" :''}</div></td>
|
|
|
+ <td class="flawItemScore"><span class="flawItemNum">${flawList[i].score}</span></td>
|
|
|
+ </tAI质控
|
|
|
+r>`;
|
|
|
str += flawItem;
|
|
|
|
|
|
}
|
|
|
- //str+="</table>";
|
|
|
+ str+="</table>";
|
|
|
if(flawList.length === 0){
|
|
|
str = `
|
|
|
<div class="empty">
|
|
|
<img class="emptyImg" src="${emptyImg}" />
|
|
|
- <div class="emptyTxt">暂无缺陷~</div>
|
|
|
+ <div class="emptyTxt">恭喜您,病例未发现缺陷</div>
|
|
|
</div>
|
|
|
`;
|
|
|
+ }else{
|
|
|
+ $("#level").text(level||'');
|
|
|
+ $("#score").text(scoreRes||'');
|
|
|
+ $("#num").text(num||'');
|
|
|
+ $("#flawMark").text(numScore||'');
|
|
|
+ $(".sum-box").show();
|
|
|
}
|
|
|
- $('.flawList tbody').html(str);
|
|
|
+ $('.flawList').html(str);
|
|
|
replaceSrc();
|
|
|
- $('.flawNum').html(flawList.length)
|
|
|
}
|
|
|
function replaceSrc(){
|
|
|
var browser=navigator.appName;
|