|
|
@@ -27,7 +27,10 @@
|
|
|
<!-- 主体内容-->
|
|
|
<div class="container linepAdd">
|
|
|
<template v-if="postName == '质感销售负责人' || postName == '质感销售专员'">
|
|
|
- <HomeTarget :tabVal="2" ref="HomeTarget"></HomeTarget>
|
|
|
+ <HomeTarget
|
|
|
+ :tabVal="2"
|
|
|
+ ref="HomeTarget"
|
|
|
+ :homePageIndicatorDate="homePageIndicatorList"></HomeTarget>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<van-collapse v-model="activeNames" v-if="!YFQuota">
|
|
|
@@ -607,12 +610,14 @@ export default {
|
|
|
notVisitReason: '', //今日拜访0家店的原因;
|
|
|
photoSkuImgSummaryeList: null,
|
|
|
postName: '',
|
|
|
+ homePageIndicatorList: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.powerGrade = localStorage.getItem('powerGrade');
|
|
|
this.temporaryShow = this.$route.query.temporaryShow;
|
|
|
this.postName = localStorage.getItem('postName');
|
|
|
+ this.homePageIndicatorList = null;
|
|
|
if (this.$route.query.reportId != undefined) {
|
|
|
this.getDetailById();
|
|
|
} else {
|
|
|
@@ -691,6 +696,11 @@ export default {
|
|
|
window.location.replace(window.location.origin + '/mobile/home');
|
|
|
});
|
|
|
} else {
|
|
|
+ if (this.postName == '质感销售负责人' || this.postName == '质感销售专员') {
|
|
|
+ this.homePageIndicatorList = res.data.homePageIndicatorList;
|
|
|
+ } else {
|
|
|
+ this.homePageIndicatorList = null;
|
|
|
+ }
|
|
|
localStorage.setItem('powerGrade', res.data.positionId);
|
|
|
localStorage.setItem('userDeptLevel', res.data.userDeptLevel);
|
|
|
this.GZQuota = false;
|