0a22a70f by 杨威

楼盘表模块点击时候再加载

1 parent 5f1196a8
......@@ -4,7 +4,7 @@
<el-tab-pane label="自然幢信息" name="zrzxx"><zrzxx></zrzxx></el-tab-pane>
<el-tab-pane label="业主共有" name="yzgy"><yzgy></yzgy></el-tab-pane>
<el-tab-pane label="登记簿" name="djb"><djb></djb></el-tab-pane>
<el-tab-pane label="楼盘表" name="lpb"><lpb></lpb></el-tab-pane>
<el-tab-pane label="楼盘表" name="lpb"><lpb v-if="lpbLoad"></lpb></el-tab-pane>
<el-tab-pane label="历史回溯" name="lshs"><lshs></lshs></el-tab-pane>
</el-tabs>
</div>
......@@ -25,11 +25,14 @@ export default {
data() {
return {
activeName: "zrzxx",
lpbLoad:false, //默认不加载楼盘表组件
};
},
methods: {
handleClick(tab, event) {
console.log(tab, event);
if(!this.lpbLoad){
this.lpbLoad = tab.name == 'lpb' ? true : false
}
},
},
created() {},
......