소스 검색

未评分不可进入详情(3876)

zhangxc 5 년 전
부모
커밋
cc2a4b8326
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 1
      src/js/qcList.js

+ 11 - 1
src/js/qcList.js

@@ -124,7 +124,17 @@ function bindScoreDetail(){
         const index = $(this).attr("data-index")
         const id = tabList[index].behospitalCode
         const age = tabList[index].age
-        scoreDetail(id,age)
+        const noScore = tabList[index].level == '未评分'
+        if(noScore){
+            dialog('请先进行评分!')
+            setTimeout(function(){
+                removeDialog()
+            },2000)
+            return
+        } else{
+            scoreDetail(id,age)
+        }
+       
     })
 }