Skip to content

Commit 2d7bab8

Browse files
author
puhui999
committed
CRM: 完善用户画像数据统计
1 parent 64af029 commit 2d7bab8

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

src/views/crm/statistics/portrait/components/CrmStatisticsPortraitCustomerArea.vue renamed to src/views/crm/statistics/portrait/components/PortraitCustomerArea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
StatisticsPortraitApi
2626
} from '@/api/crm/statistics/portrait'
2727
28-
defineOptions({ name: 'CustomerArea' })
28+
defineOptions({ name: 'PortraitCustomerArea' })
2929
const props = defineProps<{ queryParams: any }>() // 搜索参数
3030
3131
// 注册地图

src/views/crm/statistics/portrait/components/CrmStatisticsPortraitCustomerIndustry.vue renamed to src/views/crm/statistics/portrait/components/PortraitCustomerIndustry.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { DICT_TYPE, getDictLabel } from '@/utils/dict'
4242
import { erpCalculatePercentage, getSumValue } from '@/utils'
4343
import { isEmpty } from '@/utils/is'
4444
45-
defineOptions({ name: 'CustomerIndustry' })
45+
defineOptions({ name: 'PortraitCustomerIndustry' })
4646
const props = defineProps<{ queryParams: any }>() // 搜索参数
4747
4848
const loading = ref(false) // 加载中

src/views/crm/statistics/portrait/components/CrmStatisticsPortraitCustomerLevel.vue renamed to src/views/crm/statistics/portrait/components/PortraitCustomerLevel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { DICT_TYPE, getDictLabel } from '@/utils/dict'
4242
import { erpCalculatePercentage, getSumValue } from '@/utils'
4343
import { isEmpty } from '@/utils/is'
4444
45-
defineOptions({ name: 'CustomerSource' })
45+
defineOptions({ name: 'PortraitCustomerLevel' })
4646
const props = defineProps<{ queryParams: any }>() // 搜索参数
4747
4848
const loading = ref(false) // 加载中

src/views/crm/statistics/portrait/components/CrmStatisticsPortraitCustomerSource.vue renamed to src/views/crm/statistics/portrait/components/PortraitCustomerSource.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { DICT_TYPE, getDictLabel } from '@/utils/dict'
4242
import { isEmpty } from '@/utils/is'
4343
import { erpCalculatePercentage, getSumValue } from '@/utils'
4444
45-
defineOptions({ name: 'CustomerSource' })
45+
defineOptions({ name: 'PortraitCustomerSource' })
4646
const props = defineProps<{ queryParams: any }>() // 搜索参数
4747
4848
const loading = ref(false) // 加载中

src/views/crm/statistics/portrait/index.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@
6060
<el-col>
6161
<el-tabs v-model="activeTab">
6262
<!-- 城市分布分析 -->
63-
<el-tab-pane label="城市分布分析" lazy name="addressRef">
64-
<CrmStatisticsPortraitCustomerArea ref="addressRef" :query-params="queryParams" />
63+
<el-tab-pane label="城市分布分析" lazy name="areaRef">
64+
<PortraitCustomerArea ref="areaRef" :query-params="queryParams" />
6565
</el-tab-pane>
6666
<!-- 客户级别分析 -->
6767
<el-tab-pane label="客户级别分析" lazy name="levelRef">
68-
<CrmStatisticsPortraitCustomerLevel ref="levelRef" :query-params="queryParams" />
68+
<PortraitCustomerLevel ref="levelRef" :query-params="queryParams" />
6969
</el-tab-pane>
7070
<!-- 客户来源分析 -->
7171
<el-tab-pane label="客户来源分析" lazy name="sourceRef">
72-
<CrmStatisticsPortraitCustomerSource ref="sourceRef" :query-params="queryParams" />
72+
<PortraitCustomerSource ref="sourceRef" :query-params="queryParams" />
7373
</el-tab-pane>
7474
<!-- 客户行业分析 -->
7575
<el-tab-pane label="客户行业分析" lazy name="industryRef">
76-
<CrmStatisticsPortraitCustomerIndustry ref="industryRef" :query-params="queryParams" />
76+
<PortraitCustomerIndustry ref="industryRef" :query-params="queryParams" />
7777
</el-tab-pane>
7878
</el-tabs>
7979
</el-col>
@@ -85,10 +85,10 @@ import * as UserApi from '@/api/system/user'
8585
import { useUserStore } from '@/store/modules/user'
8686
import { beginOfDay, defaultShortcuts, endOfDay, formatDate } from '@/utils/formatTime'
8787
import { defaultProps, handleTree } from '@/utils/tree'
88-
import CrmStatisticsPortraitCustomerArea from './components/CrmStatisticsPortraitCustomerArea.vue'
89-
import CrmStatisticsPortraitCustomerIndustry from './components/CrmStatisticsPortraitCustomerIndustry.vue'
90-
import CrmStatisticsPortraitCustomerSource from './components/CrmStatisticsPortraitCustomerSource.vue'
91-
import CrmStatisticsPortraitCustomerLevel from './components/CrmStatisticsPortraitCustomerLevel.vue'
88+
import PortraitCustomerArea from './components/PortraitCustomerArea.vue'
89+
import PortraitCustomerIndustry from './components/PortraitCustomerIndustry.vue'
90+
import PortraitCustomerSource from './components/PortraitCustomerSource.vue'
91+
import PortraitCustomerLevel from './components/PortraitCustomerLevel.vue'
9292
9393
defineOptions({ name: 'CrmStatisticsPortrait' })
9494
@@ -113,17 +113,17 @@ const userListByDeptId = computed(() =>
113113
: []
114114
)
115115
116-
const activeTab = ref('addressRef') // 活跃标签
117-
const addressRef = ref() // 客户地区分布
116+
const activeTab = ref('areaRef') // 活跃标签
117+
const areaRef = ref() // 客户地区分布
118118
const levelRef = ref() // 客户级别
119119
const sourceRef = ref() // 客户来源
120120
const industryRef = ref() // 客户行业
121121
122122
/** 搜索按钮操作 */
123123
const handleQuery = () => {
124124
switch (activeTab.value) {
125-
case 'addressRef':
126-
addressRef.value?.loadData?.()
125+
case 'areaRef':
126+
areaRef.value?.loadData?.()
127127
break
128128
case 'levelRef':
129129
levelRef.value?.loadData?.()

0 commit comments

Comments
 (0)