优化代码

This commit is contained in:
huichao
2020-07-28 17:24:39 +08:00
parent ff2c3f4f0d
commit 27005aff18
2 changed files with 4 additions and 25 deletions

View File

@@ -89,10 +89,7 @@
</div>
</div>-->
</div>
<div
class="h40 bg-red footer absolute bottom0 text-center fs14 fw500 white"
@click="checkTeam(obj)" v-if="mask1!==1"
>查看团队业绩</div>
<div class="h40 bg-red footer absolute bottom0 text-center fs14 fw500 white" @click="checkTeam(obj)" v-if="!mask1">查看团队业绩</div>
</div>
</template>
<script>
@@ -134,7 +131,7 @@ export default {
code: '',
isShowImg: true,
buName:'',
mask1:''
mask1:false
}
},
created() {
@@ -247,7 +244,7 @@ export default {
(this.deptCode = res.deptCode),
(this.areaCode = res.areaCode)
if (this.agentGrade.slice(0, 2) == 'A1') {
this.mask1 = 1
this.mask1 = true
}else if (this.agentGrade.slice(0, 2) == 'A2') {
;(this.obj.unitName = this.unitName), (this.obj.code = this.branchCode)
} else if (this.agentGrade.slice(0, 2) == 'A3') {

View File

@@ -165,22 +165,6 @@ export default {
// window.localStorage.removeItem('parmas1');
}
if (this.mask !== '1') {
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_right_button', {
btns: [
{
title: '考勤记录',
titleColor: 'FF0000',
route: { flag: '', extra: {} },
},
],
})
}, 1000)
}
// this.performanceData()
if (this.code == '') {
this.getPerformanceHeader1()
@@ -197,9 +181,7 @@ export default {
mounted() {
},
methods: {
methods: {
timePopup() {
this.dateShow = true
},