@@ -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;
@@ -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}}
</head>
<body>