ebc923f4 by 杨威

范围属性变更进入楼盘表定位到当前户

1 parent 55fcdaae
......@@ -59,6 +59,7 @@
layout="prev, pager, next,total"
:total="total"
:current-page="pageNo"
:page-size="pageSize"
@current-change="handleCurrentChange"
>
</el-pagination>
......@@ -75,7 +76,6 @@
maxlength="28"
v-model="bdcdyh"
:style="{ width: inputWidth + 'px' }"
@change="inputChange"
class="searchInput"
placeholder="输入不动产单元号或室号"
><i
......@@ -305,6 +305,7 @@ export default {
lpbContentHeight: 0,
lpbContentwidth: 0,
lpbloading:true,
hbsm:''
};
},
created() {},
......@@ -353,11 +354,16 @@ export default {
//点击办理
handleClick(row) {
let params = { bsm: row.glbsm, type: row.dylx };
if(row.dylx == 'h'){
this.bdcdyh = row.bdcdyh;
if(row.dylx == 'h0' || row.dylx == 'h1'){
this.hbsm = row.bsm;
getQjHDetailByBsm(row.glbsm).then((res)=>{
if(res.code===200){
this.zrzbsm = res.result.zrzbsm;
this.isFwsxbg = false;
this.$nextTick(()=>{
this.scyclx = row.dylx == 'h0' ? '0':'1'
})
}
})
}else{
......@@ -578,6 +584,8 @@ export default {
this.getLpbFwytAndQlxz();
this.$nextTick(()=>{
this.lpbContentwidth = this.$refs.lpbContentWrap.clientWidth - 34 - 6;
this.$refs.lpbContent.lpbDataMap(this.bdcdyh);
this.$refs.lpbContent.hbsmList.push(this.hbsm)
})
}
},
......
......@@ -500,6 +500,9 @@ export default {
if(actual){
this.lpbData = res.result == null ? this.yclpbData : res.result;
}
if (this.lpbParent == 'isFwsxbg') {
this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData:this.sclpbData;
}
this.$nextTick(() => {
//渲染楼盘表
this.dataChange();
......@@ -521,11 +524,17 @@ export default {
},
//按照bdcdyh或shbw筛选户
lpbDataMap(sh) {
this.searchNum = sh;
if (this.hbsmList.length>0) {
//清除之前选中户
this.clearChoosedH();
this.searchNum = sh;
}
// console.log("查询searchNum" + searchNum);
},
//接收范围属性变更传入的hbsm
getFwsxbgHbsm(bsm){
this.hbsmList.push(bsm);
},
//自然幢下元素高度宽度计算
dataChange() {
//计算逻辑幢宽度 20为marginRight值
......@@ -753,9 +762,12 @@ export default {
}
break;
case 'isFwsxbg':
console.log(item,'item');
if (this.hbsmList[0] == item.bsm) {
this.rightClickFlag = 'fwsxbg';
this.lpbChVisible = true;
}else{
this.lpbChVisible = false;
}
break;
case 'isCxlz':
this.rightClickFlag = 'cxlz';
......@@ -1188,9 +1200,6 @@ export default {
margin-right: 0;
}
}
.bottom40 {
// margin-bottom: -30px;
}
.zdy-wrap {
height: auto;
overflow: hidden;
......