5f857d63 by 杨威

楼盘表全部户的选中和清除

1 parent ddf93337
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
43 }, 43 },
44 created() {}, 44 created() {},
45 mounted() { 45 mounted() {
46 this.$store.state.contentWidth = this.$refs.lpb.offsetWidth - 37; 46 this.$store.state.contentWidth = this.$refs.lpb.offsetWidth - 44;
47 }, 47 },
48 computed: {}, 48 computed: {},
49 watch: {}, 49 watch: {},
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
279 </div> 279 </div>
280 <!-- <div class="ch-wrap">层户</div> --> 280 <!-- <div class="ch-wrap">层户</div> -->
281 <div class="zrz" :style="{ width: lpbContentWidth + 'px' }"> 281 <div class="zrz" :style="{ width: lpbContentWidth + 'px' }">
282 {{ lpbData.xmmc }} 282 <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox>
283 </div> 283 </div>
284 </div> 284 </div>
285 <ul 285 <ul
...@@ -455,7 +455,8 @@ export default { ...@@ -455,7 +455,8 @@ export default {
455 fghs:"", 455 fghs:"",
456 oldbsm:'', 456 oldbsm:'',
457 fgfx:0 457 fgfx:0
458 } 458 },
459 zrzChecked:false, //自然幢全选
459 }; 460 };
460 }, 461 },
461 created() {}, 462 created() {},
...@@ -954,6 +955,20 @@ export default { ...@@ -954,6 +955,20 @@ export default {
954 this.hbsmList.push(this.chData); 955 this.hbsmList.push(this.chData);
955 } 956 }
956 this.hcxlzVisible = true 957 this.hcxlzVisible = true
958 },
959 //楼盘表户全选
960 lpbSelectAll(value){
961 if(value){
962 this.$refs.hBsm.forEach((item) => {
963 item.className = "tdSelect";
964 this.hbsmList.push(item.dataset.bsm); // 将户bsm放进hbsmList
965 });
966 }else{
967 this.$refs.hBsm.forEach((item) => {
968 item.className = "";
969 this.hbsmList = [];
970 });
971 }
957 } 972 }
958 }, 973 },
959 computed: { 974 computed: {
...@@ -1235,5 +1250,24 @@ export default { ...@@ -1235,5 +1250,24 @@ export default {
1235 margin: 20px auto 0; 1250 margin: 20px auto 0;
1236 width: 150px; 1251 width: 150px;
1237 } 1252 }
1253 .el-checkbox{
1254 font-size: 16px;
1255 /deep/.el-checkbox__label{
1256 font-size: 16px;
1257 }
1258 /deep/ .el-checkbox__inner{
1259 width: 16px;
1260 height: 16px;
1261 }
1262 /deep/ .el-checkbox__inner::after{
1263 height: 9px;
1264 left: 4px;
1265 top: 0px;
1266 width: 5px;
1267 }
1268 /deep/ .el-checkbox__input{
1269 top: 1px;
1270 }
1271 }
1238 } 1272 }
1239 </style> 1273 </style>
......