Browse Source

稽查参数添加

luolei 4 years ago
parent
commit
381f036249
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/js/uncorrectedCopy.js

+ 4 - 3
src/js/uncorrectedCopy.js

@@ -154,9 +154,9 @@ function renderTab(data,hisId,activePage){
         let tmpKey = orderTitle[j]
 
         if(tmpKey=='deptName'||tmpKey=='doctorName'){
-          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>`
+          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}" 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 += `</tr>`
@@ -169,9 +169,10 @@ 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");
     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)
+    $(parent.document).find("#contentIframe").attr("src","uccDetail.html?from=4&deptName="+name+"&deptId="+id+"&casesEntryId="+casesId+"&defectName="+casesName+"&startDate="+startDateParam+"&endDate="+endDateParam+"&docName="+docName)
   })
   // initScroll("partDetailControl","YX",1)
 }