浏览代码

Merge remote-tracking branch 'origin/qc_zn' into test

zhouna 5 年之前
父节点
当前提交
9d3a555fec
共有 2 个文件被更改,包括 18 次插入11 次删除
  1. 11 11
      src/css/qcScore.less
  2. 7 0
      src/html/qcScore.html

+ 11 - 11
src/css/qcScore.less

@@ -270,17 +270,6 @@
       height: 100%;
       overflow-y: auto;
     }
-    .empty{
-      /*display: none;*/
-      margin-top: 120px;
-      text-align: center;
-      p{
-        margin-top: 15px;
-        font-size: 12px;
-        text-indent: 10px;
-        color: #aaa;
-      }
-    }
     .flaw-item{
       display: none;
       margin: 0 20px 10px 30px ;
@@ -295,6 +284,17 @@
     text-align: right;
   }
 }
+.empty{
+  /*display: none;*/
+  margin-top: 120px;
+  text-align: center;
+  p{
+    margin-top: 15px;
+    font-size: 12px;
+    text-indent: 10px;
+    color: #aaa;
+  }
+}
 .edit-box{
   p{
     margin-bottom: 10px;

+ 7 - 0
src/html/qcScore.html

@@ -2642,6 +2642,12 @@
         </div>
     </script>
     <script type="text/html" id="flawTotalList">
+        {{if Object.keys(data).length===0}}
+            <div class="empty">
+                <img src="../images/empty.png" alt="空"/>
+                <p>暂无数据~</p>
+            </div>
+        {{else}}
         <table>
             <thead>
                 <tr>
@@ -2663,6 +2669,7 @@
                 {{/each}}
             </tbody>
         </table>
+        {{/if}}
     </script>
 </head>
 <body>