From 190afa6abc098a82cc7874c11c4ce34bb8229644 Mon Sep 17 00:00:00 2001 From: huichao Date: Sat, 25 Jul 2020 16:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/attendance/Monthly.vue | 32 ++-- src/views/ebiz/performance/AttendanceInfo.vue | 169 +++++++++--------- src/views/ebiz/performance/Performance.vue | 6 +- .../ebiz/performance/PerformanceList.vue | 12 -- 4 files changed, 111 insertions(+), 108 deletions(-) diff --git a/src/views/ebiz/attendance/Monthly.vue b/src/views/ebiz/attendance/Monthly.vue index 888e27b45..3623c9ae4 100644 --- a/src/views/ebiz/attendance/Monthly.vue +++ b/src/views/ebiz/attendance/Monthly.vue @@ -34,18 +34,18 @@
- 打卡时间 {{goWorkTime}} + 打卡时间 {{goWorkTime}} (上班 时间 {{workTime}})
-
{{text}}
-
{{text}}
+
{{text}}
+
{{text}}
- 打卡时间 {{offWorkTime}} + 打卡时间 {{offWorkTime}} (下班 时间 {{workTimeOff}})
-
{{text}}
-
{{text}}
+
{{text}}
+
{{text}}
@@ -119,9 +119,9 @@ export default { this.flag=res.content.flag, this.goWorkTime=res.content.goWorkTime, this.offWorkTime=res.content.offWorkTime - this.goWorkTime=this.goWorkTime.split('T')[1].split('.')[0] - this.offWorkTime=this.offWorkTime.split('T')[1].split('.')[0] if(this.flag=='0'){ + this.goWorkTime=this.goWorkTime.split(' ')[0] + this.offWorkTime=this.offWorkTime.split(' ')[0] this.text='正常' }else if(this.flag=='1'){ this.text='缺勤' @@ -149,10 +149,10 @@ export default { this.amount=res.content.amount, this.flag=res.content.flag, this.goWorkTime=res.content.goWorkTime, - this.offWorkTime=res.content.offWorkTime, - this.goWorkTime=this.goWorkTime.split('T')[1].split('.')[0] - this.offWorkTime=this.offWorkTime.split('T')[1].split('.')[0] + this.offWorkTime=res.content.offWorkTime if(this.flag=='0'){ + this.goWorkTime=this.goWorkTime.split(' ')[0] + this.offWorkTime=this.offWorkTime.split(' ')[0] this.text='正常' }else if(this.flag=='1'){ this.text='缺勤' @@ -177,7 +177,7 @@ export default { let arr1=[] let obj1={} let date1=[] - obj1.color='yellow' + obj1.color='orange' for(let i=0;i \ No newline at end of file diff --git a/src/views/ebiz/performance/AttendanceInfo.vue b/src/views/ebiz/performance/AttendanceInfo.vue index 6a9d470b5..a822ed129 100644 --- a/src/views/ebiz/performance/AttendanceInfo.vue +++ b/src/views/ebiz/performance/AttendanceInfo.vue @@ -25,22 +25,24 @@ /> -