mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 04:36:44 +08:00
团队长
This commit is contained in:
@@ -229,7 +229,7 @@ export default {
|
||||
let arr1 = []
|
||||
let obj1 = {}
|
||||
let date1 = []
|
||||
obj1.color = '#FFA500'
|
||||
obj1.color = '#000000'
|
||||
for (let i = 0; i < res.content.rest.length; i++) {
|
||||
let workTime = res.content.rest[i].split(' ')
|
||||
let workTime1 = workTime[0]
|
||||
@@ -258,7 +258,7 @@ export default {
|
||||
// arr3=arr3.concat(arr1,arr)
|
||||
|
||||
this.markDate = arr
|
||||
// console.log(this.mask)
|
||||
console.log(this.mask)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="page">
|
||||
<div class="border-gb header mh-auto h50 flex align-items-c header">
|
||||
<van-button
|
||||
round
|
||||
@@ -131,6 +131,9 @@ export default {
|
||||
this.titleTime = JSON.parse(window.localStorage.getItem('parmas1')).date.slice(0, 7)
|
||||
;(this.dateTime = JSON.parse(window.localStorage.getItem('parmas1')).date), (this.code = JSON.parse(window.localStorage.getItem('parmas1')).code)
|
||||
this.getBranchInfos1()
|
||||
},
|
||||
mounted(){
|
||||
|
||||
},
|
||||
methods: {
|
||||
timePopup() {
|
||||
@@ -198,7 +201,7 @@ export default {
|
||||
}
|
||||
// console.log(code)
|
||||
getPerformanceDetail(code).then((res) => {
|
||||
// console.log(res)
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
this.list = res.content.list
|
||||
}
|
||||
|
||||
@@ -340,30 +340,7 @@ export default {
|
||||
(this.ysbb = res.content.list[0].ysbb),(this.agentCode = res.content.list[0].code)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击头像
|
||||
InfoDetails(item) {
|
||||
console.log(item)
|
||||
for (let i = 0; i < this.headerList.length; i++) {
|
||||
this.headerList[i].isShowImg = true
|
||||
}
|
||||
this.headerList[item].isShowImg = false
|
||||
|
||||
let code = {
|
||||
date: this.timeCode,
|
||||
agentCode: this.headerList[item].agentCode,
|
||||
}
|
||||
getPerformanceDetail(code).then((res) => {
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
;(this.cbbb = res.content.list[0].cbbb),
|
||||
(this.cbjs = res.content.list[0].cbjs),
|
||||
(this.ysjs = res.content.list[0].ysjs),
|
||||
(this.ysbb = res.content.list[0].ysbb),
|
||||
(this.agentCode = res.content.list[0].code)
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
destroyed: function () {
|
||||
console.log("我已经离开了!");
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
<span class="red">{{Name}}</span>
|
||||
</div>
|
||||
<div class="flex align-items-c h86 content1 bg-white mt10">
|
||||
<div class="absolute h60 ml20 mt20 fs13 white captain">团队长</div>
|
||||
<div
|
||||
class="w40 h60 ml15 text-center relative header-box"
|
||||
v-for="(item, index) in headerList"
|
||||
@@ -42,6 +41,7 @@
|
||||
<div @click="(InfoDetails(index))">
|
||||
<!-- <img v-if="item.agentHeadUrl!==null" class="h40 w40" :src="item.agentHeadUrl" alt /> -->
|
||||
<img class="h40 w40" src="@/assets/images/u188.png" alt />
|
||||
<div class="absolute h60 top15 left8 fs13 white captain" v-if="String(item.agentName)==String(Name).split('组')[0]">团队长</div>
|
||||
<div :class="[item.isShowImg?'active':'']"></div>
|
||||
<div class="fs13">{{item.agentName}}</div>
|
||||
</div>
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
(this.Name = JSON.parse(window.localStorage.getItem('parmas1')).Name),
|
||||
(this.code = JSON.parse(window.localStorage.getItem('parmas1')).code),
|
||||
this.buName=JSON.parse(window.localStorage.getItem('parmas1')).buName
|
||||
window.localStorage.removeItem('parmas1');
|
||||
// window.localStorage.removeItem('parmas1');
|
||||
}
|
||||
|
||||
|
||||
@@ -226,8 +226,8 @@ export default {
|
||||
this.timeCode = JSON.parse(window.localStorage.getItem('parmas2')).date
|
||||
}
|
||||
if(window.localStorage.getItem('parmas1') !== null){
|
||||
this.titleTime = JSON.parse(window.localStorage.getItem('parmas2')).date.slice(0, 7),
|
||||
this.timeCode = JSON.parse(window.localStorage.getItem('parmas2')).date
|
||||
this.titleTime = JSON.parse(window.localStorage.getItem('parmas1')).date.slice(0, 7),
|
||||
this.timeCode = JSON.parse(window.localStorage.getItem('parmas1')).date
|
||||
}
|
||||
this.obj.date = this.timeCode
|
||||
// console.log(this.titleTime)
|
||||
|
||||
@@ -189,6 +189,7 @@ export default {
|
||||
path: `/performance/PerformanceInfo`,
|
||||
},
|
||||
})
|
||||
localStorage.parmas1 = JSON.stringify(parmas)
|
||||
} else if (this.agentGrade.slice(0, 2) == 'A3') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
@@ -199,8 +200,8 @@ export default {
|
||||
path: `/performance/AttendanceInfo`,
|
||||
},
|
||||
})
|
||||
localStorage.parmas1 = JSON.stringify(parmas)
|
||||
}
|
||||
localStorage.parmas1 = JSON.stringify(parmas)
|
||||
},
|
||||
getBranchInfos1(code) {
|
||||
getBranchInfos(code).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user