Browse Source

【前台】+【客户资料管理】+【修改客户资料界面,添加模态框】

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@2506 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
aof 10 years ago
parent
commit
4083a86373

+ 31 - 0
src/main/webapp/resources/tpl/index/account/add_userInfo.html

@@ -0,0 +1,31 @@
+<div class="modal-header">
+	<h3 class="modal-title">
+		<i class="fa fa-user fa-fw text-default"></i>为企业分配用户
+	</h3>
+</div>
+<div class="modal-body">
+	<div>
+		<table width="99%" class="block table table-bordered table-striped table-hover">
+		<thead>
+				<th width="40px;" style="text-align: center"><input type="checkbox" name="checkbox" ng-model="checkboxes.checked" ng-click="checkAll()"></th>
+				<th width="100px;">用户名称</th>
+				<th width="80px;">用户UU</th>
+		</thead>
+		<tbody>
+				<div style="overflow-y:scroll; width:100%;max-height:500px">			
+					<tr ng-repeat="user in userinfos">
+						<td width="40px;" style="text-align: center"><input ng-model="user.distribute" name="checkbox" ng-click="checkOne(user)" type="checkbox"></td>
+						<td width="100px;">{{user.userName}}</td>
+						<td width="80px;">{{user.userUU}}</td>
+					</tr>
+				</div>
+		<tbody>
+	</table>
+	</div>
+</div>
+<div class="modal-footer">
+	<span class="pull-left text-muted"><i
+		class="fa fa-fw fa-warning"></i>点击企业选中或取消</span>
+	<button class="btn btn-primary" ng-click="close(true)">确认并保存</button>
+	<button class="btn btn-default" ng-click="close(false)" type="button">取消</button>
+</div>

+ 56 - 12
src/main/webapp/resources/tpl/index/sale/customer.html

@@ -9,28 +9,72 @@
 		</div>
 	</div>
 	<div class="pane-body">
-		<table class="block table table-default table-striped"
+		<table class="table table-bordered table-striped table-hover"
 			ng-table="customerParams">
 			<thead>
 				<tr class="header">
 					<th width="80">UU</th>
-					<th width="200">客户名称</th>
-					<th width="250">地址</th>
+					<th width="180">客户名称</th>
+					<th width="220">地址</th>
 					<th width="80">客户联系人</th>
-					<th width="120">联系人电话</th>
+					<th width="100">联系人电话</th>
 					<th width="80">我方联系人</th>
+					<th width="50">用户分配</th>
 				</tr>
 			</thead>
 			<tbody>
-				<tr ng-repeat="customer in $data">
-					<td class="text-center" ng-bind="::customer.myEnterprise.uu"></td>
-					<td class="text-center" ng-bind="::customer.myEnterprise.enName"></td>
-					<td class="text-center" ng-bind="::customer.myEnterprise.enAddress"></td>
-					<td class="text-center" ng-bind="::customer.myUser.userName"></td>
-					<td ng-bind="::customer.myUser.userTel"></td>
-					<td class="text-center" ng-bind="::customer.vendorUser.userName"></td>
-				</tr>
+					<tr ng-repeat="customer in $data" ng-mouseenter="showUserInfo(customer,true)" ng-mouseleave="showUserInfo(customer,false)">
+						<td class="text-center" ng-bind="::customer.myEnterprise.uu"></td>
+						<td class="text-center" ng-bind="::customer.myEnterprise.enName"></td>
+						<td class="text-center" ng-bind="::customer.myEnterprise.enAddress"></td>
+						<td class="text-center" ng-bind="::customer.myUser.userName"></td>
+						<td ng-bind="::customer.myUser.userTel"></td>
+						<td class="text-center" ng-bind="::customer.vendorUser.userName"></td>
+						<td class="text-center">
+								<a title="新增" style="color: green;" ng-click="addUserInfo(customer)"><i class="fa fa-plus-circle fa-lg"></i></a>&nbsp;&nbsp;
+								<a title="展开" class="text-muted" ng-click="open(customer,$index)"><i class="fa fa-toggle-down fa-lg"></i></a>
+							</div>
+						</td>
+					</tr>
 			</tbody>
 		</table>
+		<div ng-show="userInfoResult">
+			<div class="pane-header">
+				客户分配用户资料 (共<span ng-bind="custInfos.length || 0"></span>个)<span class="f16" style="margin-left: 120px;"ng-bind="custInfo.myEnterprise.enName"></span>
+			</div>
+				<table class="table table-hover"
+					<thead>
+						<tr class="header">
+							<th class="text-center" width="90">用户UU</th>
+							<th class="text-center" width="180">用户名称</th>
+							<th class="text-center" width="200">邮箱</th>
+							<th class="text-center" width="100">联系人电话</th>
+							<th class="text-center" width="50">操作</th>
+						</tr>
+					</thead>
+					<tbody>
+						<tr ng-repeat="userinfo in userdata.content">
+							<td class="text-center" ng-bind="::userinfo.userUU"></td>
+							<td class="text-center" ng-bind="::userinfo.user.userName"></td>
+							<td class="text-center" ng-bind="::userinfo.user.userEmail"></td>
+							<td class="text-center" ng-bind="::userinfo.user.userTel"></td>
+							<td class="text-center"><a style="color: red;" title="删除"><i class="fa fa-user-times fa-lg"></i></a></td>
+						</tr>
+					</tbody>
+				</table>
+				<div class="row mb-20" ng-show="userdata.content">
+					<div class="col-md-8 col-md-offset-1 col-sm-10 col-sm-offset-0 col-xs-12 col-xs-offset-0">
+						<a ng-disabled="userdata.first"
+							class="btn btn-default col-md-2 col-sm-3 col-xs-4"
+							ng-click="first()">上一页</a>
+						<div class="col-md-8 col-sm-6 col-xs-4 text-center f14"
+							style="line-height: 34px;">{{userdata.page}}/{{userdata.totalPage}}页</div>
+						<a ng-disabled="userdata.last"
+							class="btn btn-default col-md-2 col-sm-3 col-xs-4"
+							ng-click="last()">下一页</a>
+					</div>
+				</div>
+			</div>
+		</div>
 	</div>
 </div>