Forráskód Böngészése

跳转到详情添加name参数

zhangxc 5 éve
szülő
commit
58d51d73ad
2 módosított fájl, 6 hozzáadás és 6 törlés
  1. 3 3
      src/js/qcListDept.js
  2. 3 3
      src/js/qcListPerson.js

+ 3 - 3
src/js/qcListDept.js

@@ -277,8 +277,8 @@ function renderTab(data){
     bindScoreDetail()
 }
 
-function scoreDetail(id,age,code){
-    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}`)
+function scoreDetail(id,age,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
 }
 function bindScoreDetail(){
     $('.patientNameSpan').on('click',function(e){
@@ -290,7 +290,7 @@ function bindScoreDetail(){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,'YH-BLZK-ZKPFKS')
+            scoreDetail(id,age,'YH-BLZK-ZKPFKS',tabList[index].name)
         }
        
     })

+ 3 - 3
src/js/qcListPerson.js

@@ -280,8 +280,8 @@ function renderTab(data){
     bindScoreDetail()
 }
 
-function scoreDetail(id,age,code){
-    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}`)
+function scoreDetail(id,age,code,name){
+    window.open(`./qcScore.html?id=${id}&age=${age}&code=${code}&hid=${getCookie('hospitalid')}&name=${name}`)
 }
 function bindScoreDetail(){
     $('.patientNameSpan').on('click',function(e){
@@ -293,7 +293,7 @@ function bindScoreDetail(){
             $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
             return
         } else{
-            scoreDetail(id,age,'YH-BLZK-ZKPFGR')
+            scoreDetail(id,age,'YH-BLZK-ZKPFGR',tabList[index].name)
         }
        
     })