Browse Source

bug修改

yangc 7 years ago
parent
commit
37e3fc74fa

+ 6 - 0
src/main/webapp/resources/js/admin/controllers/supplierMaintenanceCtrl.js

@@ -31,6 +31,7 @@ define([ 'app/app' ], function(app) {
 					Supplier.getPage(param, function(data){
 						$defer.resolve(data.content);
 						params.total(data.totalElements);
+						$scope.suppliersData = data.content;
 					})
 				}
 			});
@@ -63,6 +64,9 @@ define([ 'app/app' ], function(app) {
 
 		// 新增供应商信息
 		$scope.addSupplier = function() {
+			angular.forEach($scope.suppliersData, function (item) {
+				item.edit = false;
+			})
 			$scope.addedSupplier = !$scope.addedSupplier
 		};
 
@@ -71,6 +75,7 @@ define([ 'app/app' ], function(app) {
 			supplier.img = supplier.editImg;
 			supplier.branduuid = $stateParams.uuid;
 			supplier.storeuuid = supplier.storeIn == null ? null : supplier.storeIn.uuid;
+			console.log(supplier);
 			SupplierSubmit.submit({},supplier,function(data){
 				toaster.pop('success', '提示', "申请成功");
 				data.isSubmited = '2';
@@ -102,6 +107,7 @@ define([ 'app/app' ], function(app) {
 			supplier.editWebsite = supplier.website;
 			supplier.editEmail = supplier.email;
 			supplier.vendorid = supplier.id;
+			$scope.addedSupplier = false;
 		};
 
 		// 保存更改后的供应商信息

+ 4 - 1
src/main/webapp/resources/view/admin/supplier_maintenance.html

@@ -539,6 +539,9 @@
 	.ng-table-pager{
 		margin-top: 15px;
 	}
+	body .ng-table-pager .ng-table-pagination li.active a span {
+		color: #fff;
+	}
 </style>
 	<!-- 品牌维护详情Start -->
 	<div class="box">
@@ -608,7 +611,7 @@
 					<table ng-table="supplierTableParams">
 						<thead>
 						<tr>
-							<th width="10%"></th>
+							<th width="10%">供应商logo</th>
 							<th width="15%">代理商</th>
 							<th width="5%">营业执照号</th>
 							<th width="20%">地址</th>