|
|
@@ -14,8 +14,13 @@
|
|
|
<van-collapse v-model="activeNames">
|
|
|
<template v-if="!YFQuota">
|
|
|
<!-- YFQuota:应用服务平台 不显示各项指标 -->
|
|
|
- <Atarget :reportInfo="reportTarget"></Atarget>
|
|
|
- <Btarget :reportInfo="reportTarget"></Btarget>
|
|
|
+ <template v-if="postName == '质感销售负责人' || postName == '质感销售专员'">
|
|
|
+ <target :homePageIndicatorDate="homePageIndicatorList"></target>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <Atarget :reportInfo="reportTarget"></Atarget>
|
|
|
+ <Btarget :reportInfo="reportTarget"></Btarget>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<div class="contentContainer" v-if="reportTarget.isHistory == '0'">
|
|
|
<!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
|
|
|
@@ -175,6 +180,8 @@ import fangshuiSAP from '@/views/componentsTarget/fangshuiSAP';
|
|
|
import Atarget from '@/views/home/Atarget.vue';
|
|
|
import Btarget from '@/views/home/Btarget.vue';
|
|
|
import reportCustom from './reportCustom.vue';
|
|
|
+import HomeTarget from '@/views/home/HomeTarget.vue';
|
|
|
+import target from './target.vue';
|
|
|
|
|
|
export default {
|
|
|
name: 'home',
|
|
|
@@ -193,6 +200,8 @@ export default {
|
|
|
Atarget,
|
|
|
Btarget,
|
|
|
reportCustom,
|
|
|
+ HomeTarget,
|
|
|
+ target,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -238,14 +247,18 @@ export default {
|
|
|
JZQuota: false,
|
|
|
YFQuota: false, //应用服务
|
|
|
GZdata: false,
|
|
|
+ homePageIndicatorList: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ this.postName = localStorage.getItem('postName');
|
|
|
+ this.homePageIndicatorList = null;
|
|
|
this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
this.getDetailById();
|
|
|
},
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
+ this.postName = localStorage.getItem('postName');
|
|
|
this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
if (to.path == '/weeklyApprovalDetils') {
|
|
|
this.getDetailById();
|
|
|
@@ -278,6 +291,7 @@ export default {
|
|
|
} else {
|
|
|
this.GZdata = false;
|
|
|
}
|
|
|
+ this.homePageIndicatorList = res.data.homePageIndicatorList || null;
|
|
|
var dayTime = res.data.date;
|
|
|
this.type = res.data.userType;
|
|
|
this.ptitle = res.data.pdeptName + '-' + res.data.ppostName + '-' + res.data.pnickName;
|