|
@@ -12,7 +12,7 @@ const iconUp = require("./../images/arrow_up.png")
|
|
|
const loadingImg = require("./../images/loading.gif")
|
|
|
const arrowLeft= require("./../images/arrow_left.png")
|
|
|
const arrowRight = require("./../images/arrow_right.png")
|
|
|
-let deptName = "", behospitalCode = "", deptNameTemp = "",orderTitle=[],orderKey=[], deptId = '', deptIdTemp = '', behospitalCodeTemp = "", data_desc = "", data_asc = "", columns = [], isfirstRenderTitle=false;
|
|
|
+let deptName = "", behospitalCode = "", deptNameTemp = "",orderTitle=[],orderKey=[],orderList=[], deptId = '', deptIdTemp = '', behospitalCodeTemp = "", data_desc = "", data_asc = "", columns = [], isfirstRenderTitle=false;
|
|
|
let srcUrl = $("#contentIframe",parent.document).attr("src")
|
|
|
statisticsType = getUrlArgObjectNew("dateType",srcUrl)||"";
|
|
|
from = getUrlArgObjectNew("from",srcUrl)||""
|
|
@@ -150,10 +150,11 @@ function renderTab(data,hisId,activePage){
|
|
|
<td class="textCenter">${(activePage-1)*15 + i+1}</td>`
|
|
|
for(var j = 0; j < orderTitle.length; j++) {
|
|
|
let tmpKey = orderTitle[j]
|
|
|
+
|
|
|
if(tmpKey=='deptName'||tmpKey=='doctorName'){
|
|
|
- str += `<td dept-id="${item.deptId || ""}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
+ str += `<td dept-id="${item.deptId || ""}" data-tid="${orderList[j].id}" dept-name="${item.deptName || ""}" data-id="${item.numId || ""}" data-name="${orderKey[j] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
}else{
|
|
|
- str += `<td class="goHomeDetail" 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] || ""}">${item[tmpKey]+'' || "-"}</td>`
|
|
|
}
|
|
|
}
|
|
|
str += `</tr>`
|
|
@@ -164,11 +165,10 @@ function renderTab(data,hisId,activePage){
|
|
|
// 跳转至详情页
|
|
|
$(".goHomeDetail").click(function(){
|
|
|
let casesName = $(this).attr("data-name") || '';
|
|
|
- let casesId = $(this).attr("data-id");
|
|
|
+ let casesId = $(this).attr("data-tid");
|
|
|
let name=$(this).attr("dept-name");
|
|
|
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)
|
|
|
})
|
|
|
// initScroll("partDetailControl","YX",1)
|
|
@@ -203,7 +203,6 @@ function getDeptList(){
|
|
|
// 渲染table表头
|
|
|
function renderTabTitle(data){
|
|
|
isfirstRenderTitle = true
|
|
|
- let orderList = []
|
|
|
let str = `
|
|
|
<th class="moduleName" style="width: 65px;">序号</th>`
|
|
|
for(let i = 0; i < data.length; i++){
|