|
@@ -1,9 +1,5 @@
|
|
|
<template>
|
|
|
- <ContentModuleCard
|
|
|
- title="客户推荐"
|
|
|
- class="content-customer-recommend"
|
|
|
- v-if="showModule"
|
|
|
- >
|
|
|
+ <ContentModuleCard title="客户推荐" class="content-customer-recommend">
|
|
|
<MaskCard
|
|
|
v-if="showMask"
|
|
|
:title="maskConf.title"
|
|
@@ -104,7 +100,7 @@ export default {
|
|
|
}),
|
|
|
...mapGetters('user', ['bigMemberPower', 'isBusiness']),
|
|
|
entList() {
|
|
|
- const list = this.recommendCustomers?.customer || []
|
|
|
+ const list = this.recommendCustomers?.list || []
|
|
|
return list.map((item) => {
|
|
|
const { buyer, areaCity } = item
|
|
|
const subInfoList = [
|
|
@@ -126,26 +122,19 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- hasBigMemberPower7() {
|
|
|
+ hasPower() {
|
|
|
// 潜在客户挖掘权限。权限7
|
|
|
- return this.bigMemberPower.includes(7)
|
|
|
- },
|
|
|
- showModule() {
|
|
|
- if (this.hasBigMemberPower7) {
|
|
|
- return this.entList.length > 0
|
|
|
- } else {
|
|
|
- return true
|
|
|
- }
|
|
|
+ return this.recommendCustomers.isPower
|
|
|
},
|
|
|
showMore() {
|
|
|
- if (this.hasBigMemberPower7) {
|
|
|
+ if (this.hasPower) {
|
|
|
return this.recommendCustomers?.more
|
|
|
} else {
|
|
|
return false
|
|
|
}
|
|
|
},
|
|
|
showMask() {
|
|
|
- return !this.hasBigMemberPower7
|
|
|
+ return !this.hasPower
|
|
|
}
|
|
|
},
|
|
|
methods: {
|