0a22a70f by 杨威

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

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