|
@@ -62,7 +62,7 @@
|
|
|
|
|
|
<van-button icon="replay" native-type="button" type="default" size="mini"
|
|
|
style="height:0.6rem;padding:0 0.16667rem;" :loading="cardRefLoading" loading-size="0.26667rem"
|
|
|
- @click.stop.native="cardtimeRefresh(form.createDate)"
|
|
|
+ @click.stop.native="cardtimeRefresh(form.createDate, (fillingAgent.id || ''))"
|
|
|
v-if="substitute && fillingAgent.name && (user.timeType.syncDingding == 1 || user.timeType.syncCorpwxTime == 1)"></van-button>
|
|
|
</template>
|
|
|
<template v-if="user.companyId == 7536">
|
|
@@ -995,13 +995,14 @@ export default {
|
|
|
return ma; //小时
|
|
|
},
|
|
|
|
|
|
- cardtimeRefresh(workdate) { // 考勤记录刷新
|
|
|
+ cardtimeRefresh(workdate, userId) { // 考勤记录刷新
|
|
|
+ console.log(userId, '<==== userId')
|
|
|
if (!workdate) return;
|
|
|
this.cardRefLoading = true;
|
|
|
this.$axios.post(this.user.timeType.syncDingding == 1?'/dingding/refreshUserCardTime':'/user-corpwx-time/getPunchRecordBySelf', {
|
|
|
date: workdate,
|
|
|
companyId: this.user.companyId,
|
|
|
- userId: this.user.id
|
|
|
+ userId: userId ? userId : this.user.id
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 'ok') {
|