Explorar o código

Merge branch 'test' of http://192.168.2.236:10080/zhouna/AIPlatform into test

luolei %!s(int64=4) %!d(string=hai) anos
pai
achega
9d95d2ef69
Modificáronse 3 ficheiros con 41 adicións e 5 borrados
  1. 30 2
      src/css/qcScore.less
  2. 10 2
      src/html/qcScore.html
  3. 1 1
      src/js/qcScore.js

+ 30 - 2
src/css/qcScore.less

@@ -227,6 +227,16 @@
       //  left: 56px;
       //  top: 4px;
       }
+      .arrow-left{
+        content: "";
+        display: inline-block;
+        width: 8px;
+        height: 32px;
+        background: url("../images/ar.png") no-repeat;
+        position: relative;
+        left: 56px;
+        top: 4px; 
+      }
       ul{
         display: block;
       }
@@ -252,6 +262,7 @@
         // position: absolute;
         // left: -8px;
       }
+     
       li{
         height: 40px;
         line-height: 40px;
@@ -566,6 +577,23 @@
     color: #aaa;
   }
 }
+.empty2{
+  margin-top: 60px;
+  text-align: center;
+  height: 170px;
+  td{
+    width: 100%;
+  }
+  img{
+    width: 86px;
+  }
+  p{
+    // margin-top: 15px;
+    font-size: 12px;
+    text-indent: 10px;
+    color: #aaa;
+  }
+}
 .edit-box{
   p{
     margin-bottom: 10px;
@@ -863,7 +891,7 @@
 }
 .liExtend{
   position: absolute;
-  right: -3px;
+  left: -3px;
   width: 3px;
-  height: 40px;
+  height: 100%;
 }

+ 10 - 2
src/html/qcScore.html

@@ -22,12 +22,13 @@
     <script type="text/html" id="miniMenuTmpl">
         {{if sonMode.length}}
         <li class="list-1  menu-${id}">
-            <div class="liExtend"></div>
+            <div class="arrow-left"></div>
             {{else}}
         <li class="page  menu-${id}" code="${name}">
             {{/if}}
             {{if sonMode.length}}
             <ul> 
+                <div class="liExtend"></div>
                 {{each sonMode}}
                     <li class="page" code="${name.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">${name}</li>
                 {{/each}}
@@ -230,7 +231,7 @@
     <script type="text/html" id="appointBookTmpl">
         <div class="page-item" code="${title}">
             <h2 class="title" code="${title}">${title}</h2>
-            {{if !data || data&&data.length === 0 || JSON.stringify(data) == "{}"}}
+            {{if !data || data&&data.length === 0}}
             <div class="empty">
                 <img src="../images/empty.png" alt="空"/>
                 <p>暂无信息~</p>
@@ -246,6 +247,13 @@
                 </tr>
                 </thead>
                 <tbody>
+                    {{if JSON.stringify(data) == "{}"}}
+                    <tr class="empty2">
+                        <td colspan="3" class=""> 
+                            <img src="../images/empty1.png" alt="空"/>
+                            <p>暂无信息~</p></td>
+                    </tr>
+                    {{/if}}
                 {{each(i,val) data}}
                 <tr><td colspan="3" class="slide-up">${i}</td></tr>
                 {{each val}}

+ 1 - 1
src/js/qcScore.js

@@ -646,7 +646,7 @@ function formatFlawKeys(data){
         $.alerModal({"message":`<div class="checkTipsBox"><img class="checkImg" src=${checkOk}><p class="checkTxt">核查成功</p></div>`,type:"tip",time:'1000',isFather: false});
        
       }else{
-        $.alerModal({"message":res.data.msg ||"核查失败",type:"tip",time:'1000',isFather: true, fatherWrapper: $(".flaw-table", parent.document)});
+        $.alerModal({"message":res.data.msg ||"核查失败",type:"tip",time:'1000',isFather: false});
       }
     });
   }