Browse Source

提交

newStyle
douzhuo 2 years ago
parent
commit
2ab3641a5a
1 changed files with 75 additions and 43 deletions
  1. +75
    -43
      src/page/wel.vue

+ 75
- 43
src/page/wel.vue View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="box-center"> <div class="box-center">
<div class="house-only" v-if="role == 3 && info.userRoleType != 6">
<div class="house-only" v-if="isHouse">
<!-- 项目后台 --> <!-- 项目后台 -->
<div class="app-titel"> <div class="app-titel">
<div class="titel-text">时间</div> <div class="titel-text">时间</div>
@@ -32,7 +32,10 @@
</div> </div>
<!-- 卡片部分 --> <!-- 卡片部分 -->
<div class="page-container"> <div class="page-container">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', '', '接待记录')"
>
<div class="pageboxtitle1">平均接待时长(分钟)</div> <div class="pageboxtitle1">平均接待时长(分钟)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.avgDuration || 0 }}</div> <div class="span1">{{ cardlist.datalist.avgDuration || 0 }}</div>
@@ -52,7 +55,10 @@
</div> </div>
</div> </div>


<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', '', '接待记录')"
>
<div class="pageboxtitle1">平均执行率(%)</div> <div class="pageboxtitle1">平均执行率(%)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.fraction || 0 }}</div> <div class="span1">{{ cardlist.datalist.fraction || 0 }}</div>
@@ -72,7 +78,10 @@
</div> </div>
</div> </div>


<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', '', '接待记录')"
>
<div class="pageboxtitle1">接待量 (次)</div> <div class="pageboxtitle1">接待量 (次)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.receptionCount || 0 }}</div> <div class="span1">{{ cardlist.datalist.receptionCount || 0 }}</div>
@@ -94,7 +103,9 @@
<!-- validInvalid;//是否为有效接待 0:有效 1:无效 --> <!-- validInvalid;//是否为有效接待 0:有效 1:无效 -->
<div <div
class="pagechen" class="pagechen"
@click="toDetail('/ReceivingRecords/index', 'validInvalid,0', '接待记录')"
@click="
toDetail('/ReceivingRecords/index', 'validInvalid,0', '接待记录')
"
> >
<div class="pageboxtitle1">有效接待(次)</div> <div class="pageboxtitle1">有效接待(次)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
@@ -155,7 +166,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', '', '接待记录')"
>
<div class="pageboxtitle1">违禁接待占比(%)</div> <div class="pageboxtitle1">违禁接待占比(%)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.prohibitedZb || 0 }}</div> <div class="span1">{{ cardlist.datalist.prohibitedZb || 0 }}</div>
@@ -174,7 +188,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pagechen" @click="toDetail('/Statistics/ConsultantBrand', '', '顾问排名')">
<div
class="pagechen"
@click="toDetail('/Statistics/ConsultantBrand', '', '顾问排名')"
>
<div class="pageboxtitle1">顾问(人)</div> <div class="pageboxtitle1">顾问(人)</div>
<div class="pageboxtitle2"> <div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.accountNum || 0 }}</div> <div class="span1">{{ cardlist.datalist.accountNum || 0 }}</div>
@@ -415,7 +432,7 @@
:data="equipmentList" :data="equipmentList"
height="320" height="320"
style="width: 100%; font-size: 14px" style="width: 100%; font-size: 14px"
>
>
<el-table-column prop="accName" label="顾问" align="center"> <el-table-column prop="accName" label="顾问" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="accPhone" label="电话" align="center"> <el-table-column prop="accPhone" label="电话" align="center">
@@ -434,7 +451,6 @@
</div> </div>
</div> </div>



<div v-if="isSystem"> <div v-if="isSystem">
<!-- 系统后台 --> <!-- 系统后台 -->
<div style="margin-bottom: 10px; cursor: pointer" v-if="role != 2"> <div style="margin-bottom: 10px; cursor: pointer" v-if="role != 2">
@@ -1070,7 +1086,6 @@
</div> </div>
</div> </div>
</div> </div>

</div> </div>
</template> </template>


@@ -1121,8 +1136,25 @@ export default {


computed: { computed: {
...mapGetters(["permissions"]), ...mapGetters(["permissions"]),
info() {

// 获取用户信息
userInfo() {
return this.$store.state.user.userInfo return this.$store.state.user.userInfo
},
// 是否楼盘后台
isHouse() {
return this.userInfo.userRoleType == null && this.role == 3
},


// 是否系统后台
isSystem() {
return this.role != 3 && this.userInfo.userRoleType == 1
},

// 是否顾问
isAdviser() {
return this.userInfo.userRoleType == 6
} }
}, },


@@ -1150,8 +1182,8 @@ export default {
toDetail(path, params2 = "", name) { toDetail(path, params2 = "", name) {
if (path == "") return; if (path == "") return;
if (!this.hasRoute(name, this.$router.options.routes)) { if (!this.hasRoute(name, this.$router.options.routes)) {
this.$message.error('您没有此权限,请联系管理员添加该菜单权限')
return
this.$message.error("您没有此权限,请联系管理员添加该菜单权限");
return;
} }
this.$router.push({ this.$router.push({
path: path, path: path,
@@ -1281,12 +1313,12 @@ export default {
if (this.role == 2) { if (this.role == 2) {
this.houseRank = res.data.accountRank.avgFraction; this.houseRank = res.data.accountRank.avgFraction;
this.companyRank = res.data.houseRank.avgFraction; this.companyRank = res.data.houseRank.avgFraction;
this.allHouseRank = res.data.houseRank
this.allCompanyRank = res.data.accountRank
this.allHouseRank = res.data.houseRank;
this.allCompanyRank = res.data.accountRank;
} else { } else {
this.houseRank = res.data.houseRank.avgFraction || []; this.houseRank = res.data.houseRank.avgFraction || [];
this.allHouseRank = res.data.houseRank
this.allCompanyRank = res.data.companyRank
this.allHouseRank = res.data.houseRank;
this.allCompanyRank = res.data.companyRank;
this.companyRank = res.data.companyRank.avgFraction || []; this.companyRank = res.data.companyRank.avgFraction || [];
} }
}); });
@@ -1294,36 +1326,36 @@ export default {


// 选择公司类型切换 classatec1 公司/项目 classatec2 项目/顾问 // 选择公司类型切换 classatec1 公司/项目 classatec2 项目/顾问
chooseCompanyRank(keys, index) { chooseCompanyRank(keys, index) {
this[keys] = index
console.log(keys)
console.log(this.role, '123891273892178937129837')
this[keys] = index;
console.log(keys);
console.log(this.role, "123891273892178937129837");
if (this.role != 2) { if (this.role != 2) {
if (keys == 'classatec1') {
if (index == 0) {
this.companyRank = this.allCompanyRank.receptionCount
} else {
this.companyRank = this.allCompanyRank.avgFraction
}
if (keys == "classatec1") {
if (index == 0) {
this.companyRank = this.allCompanyRank.receptionCount;
} else {
this.companyRank = this.allCompanyRank.avgFraction;
}
} else { } else {
if (index == 0) {
this.houseRank = this.allHouseRank.receptionCount
} else {
this.houseRank = this.allHouseRank.avgFraction
}
if (index == 0) {
this.houseRank = this.allHouseRank.receptionCount;
} else {
this.houseRank = this.allHouseRank.avgFraction;
}
} }
} else { } else {
if (keys == 'classatec1') {
if (index == 0) {
this.houseRank = this.allCompanyRank.avgFraction
} else {
this.houseRank = this.allCompanyRank.receptionCount
}
if (keys == "classatec1") {
if (index == 0) {
this.houseRank = this.allCompanyRank.avgFraction;
} else {
this.houseRank = this.allCompanyRank.receptionCount;
}
} else { } else {
if (index == 0) {
this.companyRank = this.allHouseRank.avgFraction
} else {
this.companyRank = this.allHouseRank.receptionCount
}
if (index == 0) {
this.companyRank = this.allHouseRank.avgFraction;
} else {
this.companyRank = this.allHouseRank.receptionCount;
}
} }
} }
}, },
@@ -1460,7 +1492,7 @@ export default {
this.statDateEnd = ""; this.statDateEnd = "";
this.customtime = []; this.customtime = [];
this.TimetoAhoose = i; this.TimetoAhoose = i;
console.log(this.role)
console.log(this.role);
if (this.role == 3) { if (this.role == 3) {
this.getgicd(); this.getgicd();
this.getindexZxllist(); this.getindexZxllist();


Loading…
Cancel
Save