Explorar o código

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

zhangxc %!s(int64=5) %!d(string=hai) anos
pai
achega
cc2a4b8326
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  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)
+        }
+       
     })
 }