소스 검색

修复全选无效bug

Ming 4 년 전
부모
커밋
db029ca4fd
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      pages/deviceManage/deviceManage.vue

+ 3 - 1
pages/deviceManage/deviceManage.vue

@@ -471,11 +471,13 @@
 			// 全选事件
 			allChoose(e) {
 				let chooseItem = e.detail.value;
+				
 				// 全选
 				if (chooseItem[0] == 'all') {
 					this.allChecked = true;
+					
 					for (let item of this.newDeviceManage) {
-						let itemVal = String(item.id);
+						let itemVal = String(item.owner_code);
 						if (!this.checkedArr.includes(itemVal)) {
 							this.checkedArr.push(itemVal);
 						}