|
@@ -2,7 +2,7 @@
|
|
|
<div class="homePage" ref="homePage">
|
|
<div class="homePage" ref="homePage">
|
|
|
<van-nav-bar class="navBar" left-arrow title="门店拜访" @click-left="onClickLeft" />
|
|
<van-nav-bar class="navBar" left-arrow title="门店拜访" @click-left="onClickLeft" />
|
|
|
<van-tabs class="myTab" type="card" v-model="tabVal" color="#0057ba" @click="onClickTabs">
|
|
<van-tabs class="myTab" type="card" v-model="tabVal" color="#0057ba" @click="onClickTabs">
|
|
|
- <van-tab title="提示类" name="-1">
|
|
|
|
|
|
|
+ <van-tab title="提示类" name="-1" v-if="isGZorJZ == 'false'">
|
|
|
<hintTabPage :tabVal="tabVal" ref="hintTabPage"></hintTabPage
|
|
<hintTabPage :tabVal="tabVal" ref="hintTabPage"></hintTabPage
|
|
|
></van-tab>
|
|
></van-tab>
|
|
|
<van-tab title="A类指标" name="0"
|
|
<van-tab title="A类指标" name="0"
|
|
@@ -47,23 +47,29 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- tabVal: '-1',
|
|
|
|
|
|
|
+ tabVal: '0',
|
|
|
hintTabPageIndex: 0,
|
|
hintTabPageIndex: 0,
|
|
|
|
|
+ isGZorJZ: 'true',
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
// 监听切换用户
|
|
// 监听切换用户
|
|
|
'userInfo.userName': {
|
|
'userInfo.userName': {
|
|
|
handler(val) {
|
|
handler(val) {
|
|
|
- this.tabVal = '-1';
|
|
|
|
|
|
|
+ // 家装或工装不显示提示类tab
|
|
|
|
|
+ this.isGZorJZ = localStorage.getItem('isGZorJZ');
|
|
|
|
|
+ if (this.isGZorJZ == 'true') {
|
|
|
|
|
+ this.tabVal = '0';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.tabVal = '-1';
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
immediete: true,
|
|
immediete: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
activated() {
|
|
activated() {
|
|
|
- // 从其他页面跳转过来如果;要重新获取对应tab数据
|
|
|
|
|
if (this.tabVal == '-1') {
|
|
if (this.tabVal == '-1') {
|
|
|
- // postName;jz_post_name gz_customer_post
|
|
|
|
|
|
|
+ // 从其他页面跳转过来如果;要重新获取对应tab数据
|
|
|
if (this.$refs.hintTabPage) this.$refs.hintTabPage.initData();
|
|
if (this.$refs.hintTabPage) this.$refs.hintTabPage.initData();
|
|
|
} else if (this.tabVal == '0') {
|
|
} else if (this.tabVal == '0') {
|
|
|
if (this.$refs.Atarget) this.$refs.Atarget.initData();
|
|
if (this.$refs.Atarget) this.$refs.Atarget.initData();
|