zhouna 5 years ago
parent
commit
996785430e
2 changed files with 22 additions and 4 deletions
  1. 19 1
      src/css/qcScore.less
  2. 3 3
      src/js/qcScore.js

+ 19 - 1
src/css/qcScore.less

@@ -440,6 +440,17 @@
   .drop-box{
     position: relative;
     margin-bottom: 10px;
+    &:after{
+      content: "";
+      display: inline-block;
+      width: 13px;
+      height: 7px;
+      background: url("../images/arrow_down.png") no-repeat;
+      background-size: 13px 7px;
+      position: absolute;
+      left: 365px;
+      top: 16px;
+    }
   }
   ul{
     display: none;
@@ -461,7 +472,14 @@
         background: @tableBorderColor;
       }
     }
-
+  }
+  .show{
+    ul{
+      display: block;
+    }
+    &:after{
+      background-image: url("../images/arrow_up.png");
+    }
   }
 }
 .standard_table {

+ 3 - 3
src/js/qcScore.js

@@ -379,11 +379,11 @@ function formatFlawKeys(data){
 //增加条目弹窗元素事件
   function addFlawEvent(){
     $(".add-box .flaw-drop-input").off("click").on("click",function(){
-      $(".add-box .drop-box ul").show();
+      $(".add-box .drop-box").addClass("show");
     });
     $(".add-box .flaw-drop-input").off("blur").on("blur",function(){
       setTimeout(function(){
-        $(".add-box .drop-box ul").hide();
+        $(".add-box .drop-box").removeClass("show");
       },300)
 
     });
@@ -400,7 +400,7 @@ function formatFlawKeys(data){
       $("#addQcMsg").val(msg);
       $("#addQcScore").val(score);
       $(".add-box .warning").hide();
-      $(".add-box .drop-box ul").hide();
+      $(".add-box .drop-box").removeClass("show");
     });
   }