indexControl.vue
991 Bytes
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
56
57
58
<template>
<div class="staffWarn">
<div class="header"
slot="header">
<el-tabs v-model="activeName">
<el-tab-pane label="发劵宝"
name="coupons" />
<el-tab-pane label="预约排班"
name="scheduling" />
</el-tabs>
<div>
<coupons v-if="activeName === 'coupons'" />
<scheduling v-if="activeName === 'scheduling'" />
</div>
</div>
</div>
</template>
<script>
import coupons from './index'
import scheduling from './scheduling'
export default {
name: 'StaffIndex',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
activeName: 'coupons',
recordInfo: {}
}
},
components: {
coupons,
scheduling
},
mounted() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.staffWarn {
padding: 0 20px;
.header {
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
}
</style>