From 6099926f910ee56c0de42fedf03eb5ba6ceb3374 Mon Sep 17 00:00:00 2001 From: huichao Date: Sat, 25 Jul 2020 17:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/attendance/Monthly.vue | 31 +++++++------- src/views/ebiz/performance/AttendanceInfo.vue | 5 --- src/views/ebiz/performance/Performance.vue | 41 +++++++++++++++---- 3 files changed, 47 insertions(+), 30 deletions(-) diff --git a/src/views/ebiz/attendance/Monthly.vue b/src/views/ebiz/attendance/Monthly.vue index 3623c9ae4..e06a7bd29 100644 --- a/src/views/ebiz/attendance/Monthly.vue +++ b/src/views/ebiz/attendance/Monthly.vue @@ -86,14 +86,17 @@ export default { text:'', goWorkTime:'', offWorkTime:'', - + flag:'' } }, created(){ + this. isShowCalendar=true, this.date1=new Date(JSON.parse(this.$route.params.obj).time) this.time=JSON.parse(this.$route.params.obj).time this.name=JSON.parse(this.$route.params.obj).name - this.getMonthDetail1(); + setTimeout(()=>{ + this.getMonthDetail1(); + },1000) this.time=utils.formatDate(this.currentDate, 'yyyy-MM-dd') }, methods: { @@ -120,8 +123,8 @@ export default { this.goWorkTime=res.content.goWorkTime, this.offWorkTime=res.content.offWorkTime if(this.flag=='0'){ - this.goWorkTime=this.goWorkTime.split(' ')[0] - this.offWorkTime=this.offWorkTime.split(' ')[0] + this.goWorkTime=this.goWorkTime.split(' ')[1] + this.offWorkTime=this.offWorkTime.split(' ')[1] this.text='正常' }else if(this.flag=='1'){ this.text='缺勤' @@ -151,8 +154,8 @@ export default { this.goWorkTime=res.content.goWorkTime, this.offWorkTime=res.content.offWorkTime if(this.flag=='0'){ - this.goWorkTime=this.goWorkTime.split(' ')[0] - this.offWorkTime=this.offWorkTime.split(' ')[0] + this.goWorkTime=this.goWorkTime.split(' ')[1] + this.offWorkTime=this.offWorkTime.split(' ')[1] this.text='正常' }else if(this.flag=='1'){ this.text='缺勤' @@ -172,7 +175,7 @@ export default { } if(Date.parse(this.time)<=Date.parse(utils.formatDate(new Date(), 'yyyy-MM-dd'))){ getMonthDetail(date).then(res=>{ - // console.log(res) + console.log(res) if(res.result == 0){ let arr1=[] let obj1={} @@ -181,15 +184,13 @@ export default { for(let i=0;i{{Name}}>{{unitName}}
-
-
+
+
+
{{item.agentName}}
@@ -127,7 +128,8 @@ export default { headerList: [], unitName: '', Name:'', - code:'' + code:'', + isShowImg:true } }, created() { @@ -264,9 +266,13 @@ export default { getPerformanceHeader1() { let date = {} getPerformanceHeader(date).then((res) => { - console.log(res) + console.log("=="+res) if (res.result == 0) { - this.headerList = res.content + for(let i=0;i{ console.log(res) if (res.result == 0) { - this.headerList = res.content + for(let i=0;i { console.log(res) @@ -334,4 +349,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; +} \ No newline at end of file