范围属性变更进入楼盘表定位到当前户
Showing
2 changed files
with
28 additions
and
11 deletions
... | @@ -59,6 +59,7 @@ | ... | @@ -59,6 +59,7 @@ |
59 | layout="prev, pager, next,total" | 59 | layout="prev, pager, next,total" |
60 | :total="total" | 60 | :total="total" |
61 | :current-page="pageNo" | 61 | :current-page="pageNo" |
62 | :page-size="pageSize" | ||
62 | @current-change="handleCurrentChange" | 63 | @current-change="handleCurrentChange" |
63 | > | 64 | > |
64 | </el-pagination> | 65 | </el-pagination> |
... | @@ -75,7 +76,6 @@ | ... | @@ -75,7 +76,6 @@ |
75 | maxlength="28" | 76 | maxlength="28" |
76 | v-model="bdcdyh" | 77 | v-model="bdcdyh" |
77 | :style="{ width: inputWidth + 'px' }" | 78 | :style="{ width: inputWidth + 'px' }" |
78 | @change="inputChange" | ||
79 | class="searchInput" | 79 | class="searchInput" |
80 | placeholder="输入不动产单元号或室号" | 80 | placeholder="输入不动产单元号或室号" |
81 | ><i | 81 | ><i |
... | @@ -304,7 +304,8 @@ export default { | ... | @@ -304,7 +304,8 @@ export default { |
304 | fwytList: [], | 304 | fwytList: [], |
305 | lpbContentHeight: 0, | 305 | lpbContentHeight: 0, |
306 | lpbContentwidth: 0, | 306 | lpbContentwidth: 0, |
307 | lpbloading:true, | 307 | lpbloading:true, |
308 | hbsm:'' | ||
308 | }; | 309 | }; |
309 | }, | 310 | }, |
310 | created() {}, | 311 | created() {}, |
... | @@ -353,11 +354,16 @@ export default { | ... | @@ -353,11 +354,16 @@ export default { |
353 | //点击办理 | 354 | //点击办理 |
354 | handleClick(row) { | 355 | handleClick(row) { |
355 | let params = { bsm: row.glbsm, type: row.dylx }; | 356 | let params = { bsm: row.glbsm, type: row.dylx }; |
356 | if(row.dylx == 'h'){ | 357 | this.bdcdyh = row.bdcdyh; |
358 | if(row.dylx == 'h0' || row.dylx == 'h1'){ | ||
359 | this.hbsm = row.bsm; | ||
357 | getQjHDetailByBsm(row.glbsm).then((res)=>{ | 360 | getQjHDetailByBsm(row.glbsm).then((res)=>{ |
358 | if(res.code===200){ | 361 | if(res.code===200){ |
359 | this.zrzbsm = res.result.zrzbsm; | 362 | this.zrzbsm = res.result.zrzbsm; |
360 | this.isFwsxbg = false; | 363 | this.isFwsxbg = false; |
364 | this.$nextTick(()=>{ | ||
365 | this.scyclx = row.dylx == 'h0' ? '0':'1' | ||
366 | }) | ||
361 | } | 367 | } |
362 | }) | 368 | }) |
363 | }else{ | 369 | }else{ |
... | @@ -578,6 +584,8 @@ export default { | ... | @@ -578,6 +584,8 @@ export default { |
578 | this.getLpbFwytAndQlxz(); | 584 | this.getLpbFwytAndQlxz(); |
579 | this.$nextTick(()=>{ | 585 | this.$nextTick(()=>{ |
580 | this.lpbContentwidth = this.$refs.lpbContentWrap.clientWidth - 34 - 6; | 586 | this.lpbContentwidth = this.$refs.lpbContentWrap.clientWidth - 34 - 6; |
587 | this.$refs.lpbContent.lpbDataMap(this.bdcdyh); | ||
588 | this.$refs.lpbContent.hbsmList.push(this.hbsm) | ||
581 | }) | 589 | }) |
582 | } | 590 | } |
583 | }, | 591 | }, | ... | ... |
... | @@ -500,6 +500,9 @@ export default { | ... | @@ -500,6 +500,9 @@ export default { |
500 | if(actual){ | 500 | if(actual){ |
501 | this.lpbData = res.result == null ? this.yclpbData : res.result; | 501 | this.lpbData = res.result == null ? this.yclpbData : res.result; |
502 | } | 502 | } |
503 | if (this.lpbParent == 'isFwsxbg') { | ||
504 | this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData:this.sclpbData; | ||
505 | } | ||
503 | this.$nextTick(() => { | 506 | this.$nextTick(() => { |
504 | //渲染楼盘表 | 507 | //渲染楼盘表 |
505 | this.dataChange(); | 508 | this.dataChange(); |
... | @@ -521,11 +524,17 @@ export default { | ... | @@ -521,11 +524,17 @@ export default { |
521 | }, | 524 | }, |
522 | //按照bdcdyh或shbw筛选户 | 525 | //按照bdcdyh或shbw筛选户 |
523 | lpbDataMap(sh) { | 526 | lpbDataMap(sh) { |
524 | //清除之前选中户 | ||
525 | this.clearChoosedH(); | ||
526 | this.searchNum = sh; | 527 | this.searchNum = sh; |
528 | if (this.hbsmList.length>0) { | ||
529 | //清除之前选中户 | ||
530 | this.clearChoosedH(); | ||
531 | } | ||
527 | // console.log("查询searchNum" + searchNum); | 532 | // console.log("查询searchNum" + searchNum); |
528 | }, | 533 | }, |
534 | //接收范围属性变更传入的hbsm | ||
535 | getFwsxbgHbsm(bsm){ | ||
536 | this.hbsmList.push(bsm); | ||
537 | }, | ||
529 | //自然幢下元素高度宽度计算 | 538 | //自然幢下元素高度宽度计算 |
530 | dataChange() { | 539 | dataChange() { |
531 | //计算逻辑幢宽度 20为marginRight值 | 540 | //计算逻辑幢宽度 20为marginRight值 |
... | @@ -753,9 +762,12 @@ export default { | ... | @@ -753,9 +762,12 @@ export default { |
753 | } | 762 | } |
754 | break; | 763 | break; |
755 | case 'isFwsxbg': | 764 | case 'isFwsxbg': |
756 | console.log(item,'item'); | 765 | if (this.hbsmList[0] == item.bsm) { |
757 | this.rightClickFlag = 'fwsxbg'; | 766 | this.rightClickFlag = 'fwsxbg'; |
758 | this.lpbChVisible = true; | 767 | this.lpbChVisible = true; |
768 | }else{ | ||
769 | this.lpbChVisible = false; | ||
770 | } | ||
759 | break; | 771 | break; |
760 | case 'isCxlz': | 772 | case 'isCxlz': |
761 | this.rightClickFlag = 'cxlz'; | 773 | this.rightClickFlag = 'cxlz'; |
... | @@ -1188,9 +1200,6 @@ export default { | ... | @@ -1188,9 +1200,6 @@ export default { |
1188 | margin-right: 0; | 1200 | margin-right: 0; |
1189 | } | 1201 | } |
1190 | } | 1202 | } |
1191 | .bottom40 { | ||
1192 | // margin-bottom: -30px; | ||
1193 | } | ||
1194 | .zdy-wrap { | 1203 | .zdy-wrap { |
1195 | height: auto; | 1204 | height: auto; |
1196 | overflow: hidden; | 1205 | overflow: hidden; | ... | ... |
-
Please register or sign in to post a comment