accountList_newIndex.vue
1.17 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
<!-- 我的分账 -->
<template>
<d2-container class="account">
<div class="header" slot="header">
<el-tabs v-model="activeName">
<el-tab-pane label="商户管理" name="merchantManagement" />
<el-tab-pane label="虚账管理" name="virtualAccountManagement" />
</el-tabs>
</div>
<!-- <div class="d2-container-content"> -->
<accountList v-if="activeName === 'merchantManagement'" />
<virtualAccountManagement v-if="activeName === 'virtualAccountManagement'"></virtualAccountManagement>
</d2-container>
</template>
<script>
import virtualAccountManagement from './virtualAccountManagement'
import accountList from './accountList'
export default {
name: 'AccountListNewIndex',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
activeName: 'merchantManagement'
}
},
components: {
accountList,
virtualAccountManagement
},
mounted() {
// console.log(this.userInfo.detail.accountType)
// this.accountType = this.userInfo.detail.accountType
},
methods: {}
}
</script>
<style>
/* .account {
height: 100%;
} */
.account .el-tabs__header {
margin: 0;
padding: 0 20px;
}
</style>