index.vue
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<div class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
<el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import dzxx from "./dzxx";
import fjcl from "./../zd/fjcl/fjcl"
export default {
name: "",
components: {
dzxx,fjcl
},
props: {},
data() {
return {
activeName: "dzxx",
dzJbxxVisble:false,
fjclVisible:false
};
},
methods: {
handleClick(tab, event) {
switch (tab.name) {
case 'dzxx':
this.dzJbxxVisble = true;
break
case 'fjcl':
this.fjclVisible = true;
break;
default:
break;
}
},
},
created() {},
mounted() {},
computed: {},
watch: {},
};
</script>
<style scoped lang="less"></style>