|
@@ -940,14 +940,14 @@ |
|
|
<div |
|
|
<div |
|
|
class="text1" |
|
|
class="text1" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
@click="classatec1 = 0" |
|
|
|
|
|
|
|
|
@click="chooseCompanyRank('classatec1', 0)" |
|
|
:class="{ colostyle: classatec1 == 0 }" |
|
|
:class="{ colostyle: classatec1 == 0 }" |
|
|
> |
|
|
> |
|
|
接待量 |
|
|
接待量 |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="text1" |
|
|
class="text1" |
|
|
@click="classatec1 = 1" |
|
|
|
|
|
|
|
|
@click="chooseCompanyRank('classatec1', 1)" |
|
|
:class="{ colostyle: classatec1 == 1 }" |
|
|
:class="{ colostyle: classatec1 == 1 }" |
|
|
> |
|
|
> |
|
|
平均执行率 |
|
|
平均执行率 |
|
@@ -1007,14 +1007,14 @@ |
|
|
<div |
|
|
<div |
|
|
class="text1" |
|
|
class="text1" |
|
|
style="margin-right: 10px" |
|
|
style="margin-right: 10px" |
|
|
@click="classatec2 = 0" |
|
|
|
|
|
|
|
|
@click="chooseCompanyRank('classatec2', 0)" |
|
|
:class="{ colostyle: classatec2 == 0 }" |
|
|
:class="{ colostyle: classatec2 == 0 }" |
|
|
> |
|
|
> |
|
|
接待量 |
|
|
接待量 |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="text1" |
|
|
class="text1" |
|
|
@click="classatec2 = 1" |
|
|
|
|
|
|
|
|
@click="chooseCompanyRank('classatec2', 1)" |
|
|
:class="{ colostyle: classatec2 == 1 }" |
|
|
:class="{ colostyle: classatec2 == 1 }" |
|
|
> |
|
|
> |
|
|
平均执行率 |
|
|
平均执行率 |
|
@@ -1089,7 +1089,9 @@ export default { |
|
|
houseId: "", |
|
|
houseId: "", |
|
|
houseList: [], |
|
|
houseList: [], |
|
|
houseRank: [], |
|
|
houseRank: [], |
|
|
|
|
|
allHouseRank: {}, // 全部的楼盘排名 |
|
|
companyRank: [], |
|
|
companyRank: [], |
|
|
|
|
|
allCompanyRank: {}, // 全部的排名列表 |
|
|
classatec: 1, |
|
|
classatec: 1, |
|
|
classatec1: 0, |
|
|
classatec1: 0, |
|
|
classatec2: 0, |
|
|
classatec2: 0, |
|
@@ -1280,14 +1282,54 @@ export default { |
|
|
this.sysCompare = res.data.midB; |
|
|
this.sysCompare = res.data.midB; |
|
|
this.orderBy = res.data.midC; |
|
|
this.orderBy = res.data.midC; |
|
|
if (this.role == 2) { |
|
|
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 { |
|
|
} 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() { |
|
|
zkhousePage() { |
|
|
this.$api.api |
|
|
this.$api.api |
|
|