|
|
@@ -940,14 +940,14 @@ |
|
|
|
<div |
|
|
|
class="text1" |
|
|
|
style="margin-right: 10px" |
|
|
|
@click="classatec1 = 0" |
|
|
|
@click="chooseCompanyRank('classatec1', 0)" |
|
|
|
:class="{ colostyle: classatec1 == 0 }" |
|
|
|
> |
|
|
|
接待量 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="text1" |
|
|
|
@click="classatec1 = 1" |
|
|
|
@click="chooseCompanyRank('classatec1', 1)" |
|
|
|
:class="{ colostyle: classatec1 == 1 }" |
|
|
|
> |
|
|
|
平均执行率 |
|
|
@@ -1007,14 +1007,14 @@ |
|
|
|
<div |
|
|
|
class="text1" |
|
|
|
style="margin-right: 10px" |
|
|
|
@click="classatec2 = 0" |
|
|
|
@click="chooseCompanyRank('classatec2', 0)" |
|
|
|
:class="{ colostyle: classatec2 == 0 }" |
|
|
|
> |
|
|
|
接待量 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="text1" |
|
|
|
@click="classatec2 = 1" |
|
|
|
@click="chooseCompanyRank('classatec2', 1)" |
|
|
|
:class="{ colostyle: classatec2 == 1 }" |
|
|
|
> |
|
|
|
平均执行率 |
|
|
@@ -1089,7 +1089,9 @@ export default { |
|
|
|
houseId: "", |
|
|
|
houseList: [], |
|
|
|
houseRank: [], |
|
|
|
allHouseRank: {}, // 全部的楼盘排名 |
|
|
|
companyRank: [], |
|
|
|
allCompanyRank: {}, // 全部的排名列表 |
|
|
|
classatec: 1, |
|
|
|
classatec1: 0, |
|
|
|
classatec2: 0, |
|
|
@@ -1280,14 +1282,54 @@ export default { |
|
|
|
this.sysCompare = res.data.midB; |
|
|
|
this.orderBy = res.data.midC; |
|
|
|
if (this.role == 2) { |
|
|
|
this.houseRank = res.data.accountRank; |
|
|
|
this.companyRank = res.data.houseRank; |
|
|
|
this.houseRank = res.data.accountRank.avgFraction; |
|
|
|
this.companyRank = res.data.houseRank.avgFraction; |
|
|
|
this.allHouseRank = res.data.houseRank |
|
|
|
this.allCompanyRank = res.data.accountRank |
|
|
|
} else { |
|
|
|
this.houseRank = res.data.houseRank; |
|
|
|
this.companyRank = res.data.companyRank; |
|
|
|
this.houseRank = res.data.houseRank.avgFraction || []; |
|
|
|
this.allHouseRank = res.data.houseRank |
|
|
|
this.allCompanyRank = res.data.companyRank |
|
|
|
this.companyRank = res.data.companyRank.avgFraction || []; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 选择公司类型切换 classatec1 公司/楼盘 classatec2 楼盘/顾问 |
|
|
|
chooseCompanyRank(keys, index) { |
|
|
|
this[keys] = index |
|
|
|
console.log(keys) |
|
|
|
if (this.role != 2) { |
|
|
|
if (keys == 'classatec1') { |
|
|
|
if (index == 0) { |
|
|
|
this.companyRank = this.allCompanyRank.avgFraction |
|
|
|
} else { |
|
|
|
this.companyRank = this.allCompanyRank.receptionCount |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (index == 0) { |
|
|
|
this.houseRank = this.allHouseRank.avgFraction |
|
|
|
} else { |
|
|
|
this.houseRank = this.allHouseRank.receptionCount |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (keys == 'classatec1') { |
|
|
|
if (index == 0) { |
|
|
|
this.houseRank = this.allCompanyRank.avgFraction |
|
|
|
} else { |
|
|
|
this.houseRank = this.allCompanyRank.receptionCount |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (index == 0) { |
|
|
|
this.companyRank = this.allHouseRank.avgFraction |
|
|
|
} else { |
|
|
|
this.companyRank = this.allHouseRank.receptionCount |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//获取楼盘 |
|
|
|
zkhousePage() { |
|
|
|
this.$api.api |
|
|
|