|
@@ -147,6 +147,7 @@ function renderTab(data,hisId,activePage){
|
|
|
let str = ''
|
|
|
for(let i = 0; i < data.length; i++){
|
|
|
const item = data[i]
|
|
|
+ // console.log(item,'=====================item');
|
|
|
str += `
|
|
|
<tr data-index=${i}>
|
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>`
|
|
@@ -156,7 +157,8 @@ function renderTab(data,hisId,activePage){
|
|
|
if(tmpKey=='deptName'||tmpKey=='doctorName'){
|
|
|
str += `<td dept-id="${item.deptId || ""}" data-tid="${orderList[j].id}" data-doc="${item.doctorName}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
}else{
|
|
|
- str += `<td class="goHomeDetail" data-tid="${orderList[j].id}" data-doc="${item.doctorName}" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
+ // str += `<td class="goHomeDetail" data-tid="${orderList[j].id}" data-doc="${item.doctorName}" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
+ str += `<td class="goHomeDetail" data-tid="${orderList[j].id}" dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}" data-doctor="${item.doctorName || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
}
|
|
|
}
|
|
|
str += `</tr>`
|
|
@@ -169,10 +171,11 @@ function renderTab(data,hisId,activePage){
|
|
|
let casesName = $(this).attr("data-name") || '';
|
|
|
let casesId = $(this).attr("data-tid");
|
|
|
let name=$(this).attr("dept-name");
|
|
|
- let docName=$(this).attr("data-doc");
|
|
|
+ // let docName=$(this).attr("data-doc");
|
|
|
+ let doctorName = $(this).attr("data-doctor") || '';
|
|
|
name=name==="全院"?"全部":name;
|
|
|
let id=$(this).attr("dept-id");
|
|
|
- $(parent.document).find("#contentIframe").attr("src", "uccDetail.html?from=4&deptName=" + name + "&deptId=" + id + "&casesEntryId=" + casesId + "&defectName=" + casesName + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&isInspection=true")
|
|
|
+ $(parent.document).find("#contentIframe").attr("src", "uccDetail.html?from=4&deptName=" + name + "&deptId=" + id + "&casesEntryId=" + casesId + "&defectName=" + casesName + "&startDate=" + startDateParam + "&endDate=" + endDateParam + "&doctorName=" + doctorName + "&isInspection=true")
|
|
|
})
|
|
|
// initScroll("partDetailControl","YX",1)
|
|
|
}
|