mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 14:36:44 +08:00
传参
This commit is contained in:
@@ -29,10 +29,15 @@
|
||||
</div>
|
||||
<div class="c-gray-base fs13 ml25 mt10" v-if="mask=='1'">
|
||||
所在机构:
|
||||
<span v-if="Name!==''">{{Name}}></span><span class="red">{{unitName}}</span>
|
||||
<span v-if="Name!==''">{{Name}}></span>
|
||||
<span class="red">{{unitName}}</span>
|
||||
</div>
|
||||
<div class="flex align-items-c h86 content1 bg-white mt10" v-if="mask=='1'">
|
||||
<div class="w40 h60 ml15 text-center relative" v-for="(item, index) in headerList" :key="index">
|
||||
<div
|
||||
class="w40 h60 ml15 text-center relative"
|
||||
v-for="(item, index) in headerList"
|
||||
:key="index"
|
||||
>
|
||||
<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 />
|
||||
@@ -93,7 +98,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getBaseAgentInfo, getPerformanceHeader, getPerformanceDetail,getHeader } from '@/api/ebiz/performance/performance'
|
||||
import { getBaseAgentInfo, getPerformanceHeader, getPerformanceDetail, getHeader } from '@/api/ebiz/performance/performance'
|
||||
import utils from '@/assets/js/utils/date-utils'
|
||||
import { Popup, DatetimePicker } from 'vant'
|
||||
export default {
|
||||
@@ -127,9 +132,9 @@ export default {
|
||||
mask: '',
|
||||
headerList: [],
|
||||
unitName: '',
|
||||
Name:'',
|
||||
code:'',
|
||||
isShowImg:true
|
||||
Name: '',
|
||||
code: '',
|
||||
isShowImg: true,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -139,8 +144,8 @@ export default {
|
||||
;(this.titleTime = JSON.parse(this.$route.params.parmas).date.slice(0, 7)),
|
||||
(this.dateTime = JSON.parse(this.$route.params.parmas).date),
|
||||
(this.unitName = JSON.parse(this.$route.params.parmas).unitName),
|
||||
this.Name=JSON.parse(this.$route.params.parmas).Name,
|
||||
this.code=JSON.parse(this.$route.params.parmas).code
|
||||
(this.Name = JSON.parse(this.$route.params.parmas).Name),
|
||||
(this.code = JSON.parse(this.$route.params.parmas).code)
|
||||
}
|
||||
|
||||
if (this.mask !== '1') {
|
||||
@@ -150,7 +155,7 @@ export default {
|
||||
btns: [
|
||||
{
|
||||
title: '考勤记录',
|
||||
titleColor:'FF0000',
|
||||
titleColor: 'FF0000',
|
||||
route: { flag: '', extra: {} },
|
||||
},
|
||||
],
|
||||
@@ -159,12 +164,12 @@ export default {
|
||||
}
|
||||
|
||||
// this.performanceData()
|
||||
if(this.code==''){
|
||||
this.getPerformanceHeader1()
|
||||
if (this.code == '') {
|
||||
this.getPerformanceHeader1()
|
||||
}
|
||||
this.formatDate1()
|
||||
this.getBaseAgentInfo1()
|
||||
if(this.code!==''){
|
||||
if (this.code !== '') {
|
||||
this.getHeader1()
|
||||
}
|
||||
},
|
||||
@@ -244,15 +249,13 @@ export default {
|
||||
(this.agentCode = res.jobNo),
|
||||
(this.obj.agentGrade = this.agentGrade),
|
||||
(this.obj.agentCode = this.agentCode),
|
||||
this.branchCode=res.branchCode,
|
||||
this.deptCode=res.deptCode,
|
||||
this.areaCode=res.areaCode
|
||||
(this.branchCode = res.branchCode),
|
||||
(this.deptCode = res.deptCode),
|
||||
(this.areaCode = res.areaCode)
|
||||
if (this.agentGrade.slice(0, 2) == 'A2') {
|
||||
this.obj.unitName = this.unitName,
|
||||
this.obj.code=this.branchCode
|
||||
;(this.obj.unitName = this.unitName), (this.obj.code = this.branchCode)
|
||||
} else if (this.agentGrade.slice(0, 2) == 'A3') {
|
||||
this.obj.unitName = this.saleArea,
|
||||
this.obj.code=this.deptCode
|
||||
;(this.obj.unitName = this.saleArea), (this.obj.code = this.deptCode)
|
||||
} else if (this.agentGrade.slice(0, 2) == 'A4') {
|
||||
}
|
||||
if (this.agentGrade == 'A101') {
|
||||
@@ -266,29 +269,29 @@ export default {
|
||||
getPerformanceHeader1() {
|
||||
let date = {}
|
||||
getPerformanceHeader(date).then((res) => {
|
||||
console.log("=="+res)
|
||||
console.log('==' + res)
|
||||
if (res.result == 0) {
|
||||
for(let i=0;i<res.content.length;i++){
|
||||
res.content[i].isShowImg=true
|
||||
}
|
||||
this.headerList = res.content
|
||||
console.log(this.headerList)
|
||||
for (let i = 0; i < res.content.length; i++) {
|
||||
res.content[i].isShowImg = true
|
||||
}
|
||||
this.headerList = res.content
|
||||
console.log(this.headerList)
|
||||
}
|
||||
})
|
||||
},
|
||||
getHeader1(){
|
||||
getHeader1() {
|
||||
console.log(1111)
|
||||
let code={
|
||||
agentgroup:this.code
|
||||
let code = {
|
||||
agentgroup: this.code,
|
||||
}
|
||||
getHeader(code).then(res=>{
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
for(let i=0;i<res.content.length;i++){
|
||||
res.content[i].isShowImg=true
|
||||
res.content[0].isShowImg=false
|
||||
}
|
||||
this.headerList = res.content
|
||||
getHeader(code).then((res) => {
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
for (let i = 0; i < res.content.length; i++) {
|
||||
res.content[i].isShowImg = true
|
||||
res.content[0].isShowImg = false
|
||||
}
|
||||
this.headerList = res.content
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -300,23 +303,23 @@ export default {
|
||||
agentCode: this.agentCode,
|
||||
}
|
||||
getPerformanceDetail(code).then((res) => {
|
||||
// console.log(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.agentCode = res.content.list[0].code)
|
||||
(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
|
||||
|
||||
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,
|
||||
@@ -327,6 +330,7 @@ export default {
|
||||
;(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)
|
||||
}
|
||||
})
|
||||
@@ -349,14 +353,14 @@ export default {
|
||||
width: 100%;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
.active{
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
z-index: 100;
|
||||
background: #ccc;
|
||||
opacity: 0.5;
|
||||
top: 0px;
|
||||
border-radius: 20px;
|
||||
position: absolute;
|
||||
.active {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
z-index: 100;
|
||||
background: #ccc;
|
||||
opacity: 0.5;
|
||||
top: 0px;
|
||||
border-radius: 20px;
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user