2024-08-01 17:23:47 +08:00
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
2024-08-02 12:32:13 +08:00
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
|
<el-tab-pane label="私人客户" name="01">
|
|
|
|
<PrivateCustomer :typeCode="activeName" ref="privateRef"/>
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="待办客户" name="02">
|
|
|
|
<TodoCustomer :typeCode="activeName" ref="todoRef"/>
|
|
|
|
</el-tab-pane>
|
2024-08-02 18:18:59 +08:00
|
|
|
<el-tab-pane label="政企客户" name="03">
|
|
|
|
<CorpCustomer :typeCode="activeName" ref="corpRef"/>
|
|
|
|
</el-tab-pane>
|
2024-08-02 12:32:13 +08:00
|
|
|
</el-tabs>
|
2024-08-01 17:23:47 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-08-02 12:32:13 +08:00
|
|
|
import PrivateCustomer from '@/views/base/customer/components/PrivateCustomer.vue'
|
|
|
|
import TodoCustomer from '@/views/base/customer/components/TodoCustomer.vue'
|
2024-08-02 18:18:59 +08:00
|
|
|
import CorpCustomer from '@/views/base/customer/components/CorpCustomer.vue'
|
2024-08-01 17:23:47 +08:00
|
|
|
export default {
|
|
|
|
name: "CustomerMain",
|
|
|
|
components: {
|
2024-08-02 18:18:59 +08:00
|
|
|
PrivateCustomer,TodoCustomer,CorpCustomer
|
2024-08-01 17:23:47 +08:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2024-08-02 12:32:13 +08:00
|
|
|
activeName:'01',
|
2024-08-01 17:23:47 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
2024-08-02 12:32:13 +08:00
|
|
|
this.activeName = '01'
|
2024-08-01 17:23:47 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2024-08-02 12:32:13 +08:00
|
|
|
|
|
|
|
/** tab点击方法 */
|
|
|
|
handleClick(tab, event){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-08-01 17:23:47 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|