Przeglądaj źródła

企业圈数据为空时给出提示

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8393 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 lat temu
rodzic
commit
abd00ac08f

+ 9 - 14
src/main/webapp/resources/tpl/index/baseInfo/customersInfo.html

@@ -77,6 +77,9 @@
 	font-size: 16px;
 	line-height: 55px;
 }
+.ng-isolate-scope{
+	display : none;
+}
 </style>
 <div style="margin-left: -240px; width: 1170px; background: #f5f5f5;" id="myquest-public">
 <div ng-include src="'static/tpl/index/baseInfo/vendorAndCustomer.html'"></div>
@@ -102,18 +105,7 @@
 	<div class="pane-body">
 		<table class="customer-tab table table-bordered table-striped table-hover"
 			ng-table="customerParams">
-			<!--<thead>
-				<tr class="header">
-					<th width="80">UU</th>
-					<th width="180">客户名称</th>
-					<th width="180">地址</th>
-					<th width="80">客户联系人</th>
-					<th width="100">联系人电话</th>
-					<th width="80">我方联系人</th>
-					<th width="110">用户分配</th>
-				</tr>
-			</thead>-->
-			<tbody ng-repeat="customer in $data">
+			<tbody ng-repeat="customer in $data" ng-if="customerParams.total() > 0">
 					<tr class="customer-hd">
 						<td colspan="4" class="text-left"><span ng-bind="::customer.myEnterprise.enName"></span></td>
 						<td width="200" class="text-center" ng-if="customer.custswitch == 1 "><a ng-click="disableCust(customer.id)">禁用客户</a></td>
@@ -126,11 +118,14 @@
 							<div>电话:<span ng-bind="::customer.myUser.userTel"></span></div>
 						</td>
 						<td width="200" class="text-center all-btn">
-							<!-- <a ng-click="viewDetail(customer.id)" title="查看详情">查看详情</a><br/>
-							<a  ng-click="addUserInfo(customer)" class="btn02" title="分配">分配</a> -->
 						</td>
 					</tr>
 			</tbody>
+			<tbody ng-if="customerParams.total() == 0">
+				<tr>
+					<td><i class="fa  fa-info-circle"></i> 暂无客户信息</td>
+				</tr>
+			</tbody>
 		</table>
 		</div>
 	</div>

+ 7 - 2
src/main/webapp/resources/tpl/index/baseInfo/enMenu.html

@@ -1,6 +1,11 @@
-<div class="tab-first">
+<style>
+	.row a {
+		 text-decoration: none;
+	}
+</style>
+<div class="tab-first" ng-controller="RequestAmountCtrl">
 	<div class="row">
-		<a type="button" ui-sref="baseInfo.vendorInfo" ng-class="{'active':status=='vendor' || 'customer' && status!='send' && status!='add'}" class="tab-btn">我的合作伙伴</a>
+		<a type="button" ui-sref="baseInfo.vendorInfo" ng-class="{'active':status=='vendor' || 'customer' && status!='send' && status!='add'}" class="tab-btn">我的合作伙伴<b class="new-dot" ng-if="requestTodo.todo>0"></b></a>
 		<!-- <a type="button" ui-sref="baseInfo.myRequest" ng-class="{'active':status=='send'}" class="tab-btn">新的合作伙伴<b class="new-dot" ng-if="requestTodo.todo>0"></b></a> -->
 		<a type="button" ui-sref="baseInfo.partner_searchresult" class="tab-btn" ng-class="{'active':status=='add'}">添加合作伙伴</a>
 	</div>

+ 9 - 0
src/main/webapp/resources/tpl/index/baseInfo/searchresult.html

@@ -312,6 +312,15 @@
 			</td>
 		</tr>
 	</tbody>
+	<tbody ng-if="tableParams.total() == 0" class="company-list">
+		<tr>
+			<td class="text-center" colspan="7">
+				<br>
+				<div class="text-muted"><h3><i class="fa fa-spinner"></i>暂未搜到与({{tip}})相关的企业信息<a ng-click="invite(tip)" class="text-inverse">立即邀请</a>注册优软云</h3></div>
+				<br>
+			</td>
+		</tr>
+	</tbody>
 </table>
 </div>
 </body>

+ 7 - 13
src/main/webapp/resources/tpl/index/baseInfo/vendorsInfo.html

@@ -129,17 +129,6 @@
 		<!--供应商列表-->
 		<table class="table  table-hover customer-tab"
 			ng-table="customerParams">
-			<!--<thead>
-				<tr class="pane-header">
-					<th width="180" class="text-center">企业名称</th>
-					<th width="120" class="text-center">简称</th>
-					<th width="200" class="text-center">地址</th>
-					<th width="100" class="text-center">联系人</th>
-					<th width="80" class="text-center">职位</th>
-					<th width="80" class="text-center">联系方式</th>
-					<th width="170" class="text-center">操作</th>
-				</tr>
-			</thead>-->
 			<tbody ng-repeat="vendor in $data">
 					<tr class="customer-hd">
 						<td colspan="4" class="text-left"><span ng-bind="::vendor.vendorEnterprise.enName"></span></td>
@@ -153,11 +142,16 @@
 							<div>电话:<span ng-bind="::vendor.vendorUser.userTel"></span></div>
 						</td>
 						<td width="200" class="text-center all-btn">
-							<a ng-if="vendor.custswitch == 1 && vendor.vendswitch == 1" href="#/purc/purcinquiry/{{vendor.vendorEnterprise.enBussinessCode}}" class="btn01">立即询价</a><br/>
-							<a ng-if="vendor.custswitch == 1 && vendor.vendswitch == 1" ng-click="purcByEn(vendor.vendorEnterprise.enBussinessCode)" class="btn02">下采购单</a>
+							<a ng-if="vendor.vendswitch == 1" href="#/purc/purcinquiry/{{vendor.vendorEnterprise.enBussinessCode}}" class="btn01">立即询价</a><br/>
+							<a ng-if="vendor.vendswitch == 1" ng-click="purcByEn(vendor.vendorEnterprise.enBussinessCode)" class="btn02">下采购单</a>
 						</td>
 					</tr>
 			</tbody>
+			<tbody ng-if="customerParams.total() == 0">
+				<tr>
+					<td><i class="fa  fa-info-circle"></i> 暂无供应商信息</td>
+				</tr>
+			</tbody>
 		</table>
 	</div>
 </div>