Browse Source

处理空状态样式

Administrator 7 years ago
parent
commit
951182293c

+ 15 - 0
src/main/webapp/resources/tpl/index/make/outorder.html

@@ -200,6 +200,21 @@
 				<td colspan="6"></td>
 			</tr>-->
 		</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="order in $data track by order.id">
 			<tr class="order-hd" ng-dbclick="order.$collapsed=!order.$collapsed"
 				ng-class="{'text-bold': order.display>0}">

+ 15 - 0
src/main/webapp/resources/tpl/index/purc/prodList.html

@@ -259,6 +259,21 @@
                 <td colspan="5"></td>
             </tr>-->
             </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="product in $data">
             <tr class="order-hd">
             	<!--<td class="text-center"><input type="checkbox" ng-model="product.checked" ng-click="checkOne(product)" ng-disabled="product.cmpUuId != null"></td>-->

+ 16 - 1
src/main/webapp/resources/tpl/index/purc/vendor.html

@@ -105,7 +105,7 @@
 	</div>
 </div>
 <div class="wrap" id="customer-tab">
-	<div class="content">
+	<div>
 		<!--供应商列表-->
 		<table class="table  table-hover"
 			ng-table="customerParams">
@@ -120,6 +120,21 @@
 					<th width="170" class="text-center">操作</th>
 				</tr>
 			</thead>
+			<tbody ng-if="$data.length === 0">
+			<tr>
+				<td colspan="7">
+					<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>
 					<tr ng-repeat="vendor in $data">
 						<td ng-bind="::vendor.vendorEnterprise.uu"></td>