index.vue
1.04 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
47
48
49
50
51
52
53
54
55
<template>
<div class="sms-container">
<el-tabs v-model="curTabIndex" @tab-click="changeTab">
<el-tab-pane v-for="(item, index) in tabList" :key="index" :label="item.name" :name="item.conId">
<template v-if="item.conId == 'sms'">
<addCom></addCom>
</template>
<template v-if="item.conId == 'customer'">
<customerCom></customerCom>
</template>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import addCom from './add.vue'
import customerCom from './customer.vue'
export default {
name: 'index',
components: {
addCom,
customerCom
},
data() {
return {
tabList: [
{
name: '短信内容',
conId: 'sms'
},
{
name: '触达客户',
conId: 'customer'
}
],
curTabIndex: 'sms'
}
},
created() {},
mounted() {},
methods: {
changeTab() {}
}
}
</script>
<style lang="scss" scoped>
.sms-container {
/deep/ .el-tabs__item {
font-size: 16px !important;
}
}
</style>