Browse Source

bug修改:卖家中心--店铺管理;产品推荐的批量修改操作,空数据时全选按钮依旧可以勾选,机制有漏洞

wangdy 8 years ago
parent
commit
a231a589eb

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/vendor_store_maintain.html

@@ -989,7 +989,7 @@
 			<div ng-if="!canBatchOperation && !canEditProduct"><a ng-click="editRecommendProduct('BATCH_OPERATION', true)">批量操作</a></div>
 			<div ng-if="!canBatchOperation && !canEditProduct"><a ng-click="editRecommendProduct('BATCH_OPERATION', true)">批量操作</a></div>
 			<div ng-if="!canBatchOperation && !canEditProduct"><a ng-click="editRecommendProduct('EDIT_PRODUCTS', true)"><i class="fa fa-pencil"></i>编辑</a></div>
 			<div ng-if="!canBatchOperation && !canEditProduct"><a ng-click="editRecommendProduct('EDIT_PRODUCTS', true)"><i class="fa fa-pencil"></i>编辑</a></div>
 			<div class="check" ng-if="canBatchOperation">
 			<div class="check" ng-if="canBatchOperation">
-				<label class="check-active">
+				<label class="check-active" ng-if="recommendProducts.length>0">
 					<input type="checkbox" id="isChooseAll" ng-checked="isChooseAll" ng-click="chooseAllProduct(!isChooseAll)" checked="checked">
 					<input type="checkbox" id="isChooseAll" ng-checked="isChooseAll" ng-click="chooseAllProduct(!isChooseAll)" checked="checked">
 					<label for="isChooseAll"></label>
 					<label for="isChooseAll"></label>
 					<span style="margin-left: 0;">全选</span>
 					<span style="margin-left: 0;">全选</span>