Browse Source

处理空状态样式

Administrator 7 years ago
parent
commit
d7dd8626a4

+ 1 - 0
src/main/webapp/resources/css/index.css

@@ -3076,6 +3076,7 @@ input:-webkit-autofill { box-shadow: 0 0 0 1000px white inset !important;}
 	display:inline-block;
 	display:inline-block;
 	vertical-align:top;
 	vertical-align:top;
 	padding-left:10px;
 	padding-left:10px;
+	text-align: left;
 }
 }
 #empty .right_link p{
 #empty .right_link p{
 	margin: 0;
 	margin: 0;

+ 15 - 0
src/main/webapp/resources/tpl/index/fa/apBill.html

@@ -197,6 +197,21 @@
 			<td colspan="6"></td>
 			<td colspan="6"></td>
 		</tr>
 		</tr>
 	</thead>
 	</thead>
+	<tbody ng-if="$data.length === 0">
+	<tr>
+		<td colspan="6">
+			<div id="empty">
+				<div class="left_img">
+					<a href="http://www.ubtob.com/" target="_blank" title="优软云首页"><img src="static/img/empty/uas_empty.png"></a>
+					<a href="#/index" title="B2B商务首页">B2B 商务</a>
+				</div>
+				<div class="right_link">
+					<p>暂无对应的发票信息</p>
+				</div>
+			</div>
+		</td>
+	</tr>
+	</tbody>
 	<tbody ng-repeat="bill in $data">
 	<tbody ng-repeat="bill in $data">
 		<tr class="order-hd">
 		<tr class="order-hd">
 			<td class="first">
 			<td class="first">

+ 17 - 8
src/main/webapp/resources/tpl/index/fa/apCheck.html

@@ -306,13 +306,22 @@
 			</tr>
 			</tr>
 			<tr></tr>
 			<tr></tr>
 		</tbody>
 		</tbody>
+		<tbody ng-if="tableParams.total() == 0">
+		<tr>
+			<td colspan="6">
+				<div id="empty">
+					<div class="left_img">
+						<a href="http://www.ubtob.com/" target="_blank" title="优软云首页"><img src="static/img/empty/uas_empty.png"></a>
+						<a href="#/index" title="B2B商务首页">B2B 商务</a>
+					</div>
+					<div class="right_link">
+						<p ng-if="active != 'all'">暂无对账信息!</p>
+						<p ng-if="active == 'all'">您还未生成对账单,请立即新增对账!</p>
+						<a ng-if="active == 'all'" ui-sref="fa.apCheckList"><i class="fa fa-plus-square"></i> 新增对账单</a>
+					</div>
+				</div>
+			</td>
+		</tr>
+		</tbody>
 	</table>
 	</table>
-	<div ng-if="active=='all' && tableParams.total() == 0" class="row">
-		<div class="col-xs-12" style="text-align: center;">
-			<h3 class="text-simple"><i class="fa fa-spinner"></i> &nbsp;您还未生成对账单,请立即新增对账</h3>
-		</div>
-		<div class="col-xs-12" style="margin-top:15px; text-align: center;">
-			<a class="text-simple append" ui-sref="fa.apCheckList"><big><i class="fa fa-plus-square"></i> 新增对账单</big></a>
-		</div>
-	</div>
 </div>
 </div>

+ 15 - 0
src/main/webapp/resources/tpl/index/fa/arCheck.html

@@ -202,6 +202,21 @@
 			<th width="100">操作</th>
 			<th width="100">操作</th>
 		</tr>
 		</tr>
 		</thead>
 		</thead>
+		<tbody ng-if="$data.length === 0">
+		<tr>
+			<td colspan="6">
+				<div id="empty">
+					<div class="left_img">
+						<a href="http://www.ubtob.com/" target="_blank" title="优软云首页"><img src="static/img/empty/uas_empty.png"></a>
+						<a href="#/index" title="B2B商务首页">B2B 商务</a>
+					</div>
+					<div class="right_link">
+						<p>暂无对应的对账单信息</p>
+					</div>
+				</div>
+			</td>
+		</tr>
+		</tbody>
 		<tbody ng-repeat="check in $data">
 		<tbody ng-repeat="check in $data">
 			<tr>
 			<tr>
 				<td class="first info" colspan="4">
 				<td class="first info" colspan="4">