@@ -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 @@
- 查看
+ 查看
|
@@ -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 @@