3269ef39 by 焦泽平

提交

1 parent 7cea3fc6
......@@ -109,6 +109,18 @@ export function getLpbFwytAndQlxz (data) {
})
}
/**
* 楼盘表 获取楼盘表缺失项统计
* zrzbsm 自然幢标识码 ,
* scyclx 实测预测类型 0预测,1实测
*/
export function getLpbQsxtj (data) {
return request({
url: 'fw/lpb/getLpbQsxtj?zrzbsm='+data.zrzbsm+'&scyclx='+data.scyclx,
method: 'get',
data:data
})
}
/**
* 楼盘表 添加层
// "cbsm": "63147d2d9766db01ead0cd53f23de908",//层标识码
// "hcount": 3,//添加户数
......
......@@ -257,7 +257,7 @@
<th>套数</th>
</tr>
<tr
v-for="(item, index) in fwytList"
v-for="(item, index) in qsxList"
:key="index"
class="cp"
@click="handleChoosedH(item.bsms,item.color)"
......@@ -268,9 +268,7 @@
</td>
<td>{{ item.ts }}</td>
</tr>
<tr v-show="fwytList.length < 1">
<td colspan="3" class="tac">暂无数据</td>
</tr>
</table>
</div>
</div>
......@@ -326,7 +324,7 @@ import addZdy from "./zdy/index";
import addCh from "./ch/index";
import editCinfo from "./c/index";
import lpbContent from "./lpbContent/index";
import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit,batchDelete} from "@api/lpb";
import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz,getLpbQsxtj,batchCommit,batchDelete} from "@api/lpb";
import xxxx from '../xxxx/index'
export default {
......@@ -422,6 +420,7 @@ export default {
],
fwxzList: [],
fwytList: [],
qsxList:[],
legendToggleFlag: false,
lpbContentHight: "",
lpbContentwidth: "",
......@@ -446,6 +445,7 @@ export default {
this.getDyztBsmList();
//获取房屋用途统计数据
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
// 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6
setTimeout(() => {
this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6;
......@@ -572,6 +572,7 @@ export default {
//获取图例数据
this.getDyztBsmList();
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
//重新渲染楼盘表
this.$refs.lpbContent.dataChange();
},
......@@ -697,6 +698,7 @@ export default {
this.$refs.lpbContent.loadingData(this.$store.state.zrzbsm,this.scyclx);
this.getDyztBsmList();
this.getLpbFwytAndQlxz();
this.getLpbQsxtj();
//改变楼盘表子组件的key值,重新渲染
// this.time = new Date().getTime();
},
......@@ -869,7 +871,33 @@ export default {
}
}
});
},
//获取楼盘表缺失项统计
getLpbQsxtj(){
let data = {
zrzbsm: this.$store.state.zrzbsm,
scyclx: this.scyclx,
};
getLpbQsxtj(data).then((res) => {
if (res.code === 200) {
this.qsxList = res.result;
// this.fwxzList = res.result.qlxz;
if(this.qsxList.length>0){
this.qsxList.forEach(item=>{
item.color = "#2591FD";
item.ts = item.hcount;
})
}
// if(this.fwxzList.length>0){
// this.fwxzList.forEach(item=>{
// item.color = "#2591FD";
// item.ts = item.bsms.length
// })
// }
}
});
}
},
computed: {},
destroyed() {
......@@ -907,7 +935,7 @@ export default {
box-sizing: border-box;
padding: 20px 0;
background-color: #ffffff;
margin-bottom: 15px;
margin-bottom: 10px;
position: relative;
.searchContent {
margin-left: 62px;
......