Explorar o código

入院日期选择添加提示语(3988)

zhangxc %!s(int64=5) %!d(string=hai) anos
pai
achega
471477e9f3
Modificáronse 2 ficheiros con 11 adicións e 3 borrados
  1. 2 2
      src/css/index.less
  2. 9 1
      src/js/qcList.js

+ 2 - 2
src/css/index.less

@@ -421,9 +421,9 @@
   position: fixed;
   left: 50%;
   top: 50%;
-  width: 200px;
+  width: 300px;
   height: 50px;
-  margin: -25px 0 0 -100px;
+  margin: -25px 0 0 -150px;
   text-align: center;
   line-height: 50px;
   border-radius: 10px;

+ 9 - 1
src/js/qcList.js

@@ -50,7 +50,13 @@ function getTabData(activePage){
             } else{
                 $('.pagination').html("")
             }
-        }else{}
+        }else{
+            removeDialog()
+            dialog(res.data.msg)
+            setTimeout(function(){
+                removeDialog()
+            },2000)
+        }
     }).catch((e) =>{
     
     })
@@ -126,6 +132,7 @@ function bindScoreDetail(){
         const age = tabList[index].age
         const noScore = tabList[index].level == '未评分'
         if(noScore){
+            removeDialog()
             dialog('请先进行评分!')
             setTimeout(function(){
                 removeDialog()
@@ -230,6 +237,7 @@ $('.recordScoreBtn').on("click",function(e){
         }
     }
     if(scoreList.length === 0){
+        removeDialog()
         dialog('请选择要评分的项!')
         setTimeout(function(){
             removeDialog()