diff --git a/src/router/ebiz/attendance.js b/src/router/ebiz/attendance.js index cf67b15e1..c47eb678b 100644 --- a/src/router/ebiz/attendance.js +++ b/src/router/ebiz/attendance.js @@ -13,7 +13,7 @@ export default [ } }, { - path: '/attendance/Monthly', + path: '/attendance/Monthly/:obj', name: 'Monthly', component: monthly, meta: { diff --git a/src/router/ebiz/performance.js b/src/router/ebiz/performance.js index 066230309..d7ed95c71 100644 --- a/src/router/ebiz/performance.js +++ b/src/router/ebiz/performance.js @@ -26,7 +26,7 @@ export default [ name: 'AttendanceInfo', component: attendanceInfo, meta: { - title: '考勤统计', + title: '业绩查询', index: 3 } }, @@ -35,7 +35,7 @@ export default [ name: 'PerformanceList', component: PerformanceList, meta: { - title: '考勤统计', + title: '业绩查询', index: 3 } } diff --git a/src/views/ebiz/attendance/Attendance.vue b/src/views/ebiz/attendance/Attendance.vue index bb1a20e38..af056d1d4 100644 --- a/src/views/ebiz/attendance/Attendance.vue +++ b/src/views/ebiz/attendance/Attendance.vue @@ -28,8 +28,8 @@
- 王昭君 -
+ {{name}} +
@@ -94,7 +94,9 @@ export default { forgetNum: 0, dontWork: 0, titleTime: '', - timeCode:'' + timeCode:'', + name:'', + obj:{} } }, created() { @@ -114,16 +116,18 @@ export default { console.log(e) this.titleTime = utils.formatDate(e, 'yyyy-MM') this.timeCode=utils.formatDate(e, 'yyyy-MM-dd') + this.obj.time=this.timeCode this.attendance1() + }, - month() { + month(obj) { this.$jump({ flag: 'h5', extra: { - url: location.origin + `/#/attendance/Monthly` + url: location.origin + `/#/attendance/Monthly/${JSON.stringify(obj)}` }, routerInfo: { - path: `/attendance/Monthly` + path: `/attendance/Monthly/${JSON.stringify(obj)}` } }) }, @@ -142,7 +146,9 @@ export default { (this.earllyNum = res.content.earllyNum), (this.earllyTime = res.content.earllyTime), (this.forgetNum = res.content.forgetNum), - (this.dontWork = res.content.dontWork) + (this.dontWork = res.content.dontWork), + this.name=res.content.name, + this.obj.name=this.name } }) }, @@ -150,6 +156,7 @@ export default { // console.log(utils.formatDate("2020-1-1")) this.titleTime = utils.formatDate(this.currentDate, 'yyyy-MM') this.timeCode = utils.formatDate(this.currentDate, 'yyyy-MM-dd') + this.obj.time=this.timeCode console.log(this.titleTime) } } diff --git a/src/views/ebiz/attendance/Monthly.vue b/src/views/ebiz/attendance/Monthly.vue index df1906c7f..7ad8cf209 100644 --- a/src/views/ebiz/attendance/Monthly.vue +++ b/src/views/ebiz/attendance/Monthly.vue @@ -3,7 +3,7 @@
- 王昭君 + {{name}}
{{time}} 星期{{week}}
@@ -16,6 +16,8 @@ :showTodayButton="showTodayButton" @click="timeDate" :disabledWeekView="disable" + :defaultDatetime="date1" + @touchend="touchend" >
-
查看
+
查看
@@ -161,6 +161,18 @@ export default { } }) }, + //跳转查看 + details(){ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + `/#/performance/Performance` + }, + routerInfo: { + path: `/performance/Performance` + } + }) + }, getBranchInfos1(){ getBranchInfos().then(res=>{ console.log(res) diff --git a/src/views/ebiz/performance/Performance.vue b/src/views/ebiz/performance/Performance.vue index e3e1b3bc2..b217361f8 100644 --- a/src/views/ebiz/performance/Performance.vue +++ b/src/views/ebiz/performance/Performance.vue @@ -144,6 +144,7 @@ export default { btns: [ { title: '考勤记录', + titleColor:'#FF0000', route: { flag: '', extra: {} }, }, ], @@ -191,10 +192,10 @@ export default { this.timeCode = utils.formatDate(e, 'yyyy-MM-dd') this.obj.date = this.timeCode this.getPerformanceDetailC() - if (this.titleTime !== utils.formatDate(this.currentDate, 'yyyy-MM')) { - this.isShow = false - } else { + if (String(this.titleTime) === String(utils.formatDate(new Date(), 'yyyy-MM'))) { this.isShow = true + } else { + this.isShow = false } }, formatDate1() { diff --git a/src/views/ebiz/performance/PerformanceList.vue b/src/views/ebiz/performance/PerformanceList.vue index 35218899e..a37478ca8 100644 --- a/src/views/ebiz/performance/PerformanceList.vue +++ b/src/views/ebiz/performance/PerformanceList.vue @@ -73,7 +73,6 @@
-->
-
注:统计截至时间:2020-01-12 16:30