|
@@ -450,7 +450,7 @@
|
|
|
@click="refreshDDCardTime(workForm.createDate)"></el-button>
|
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
|
v-if="!isBatch && user.timeType.syncDingding==1 && isSubstitude && workForm.userNames" icon="el-icon-refresh"
|
|
|
- @click="refreshDDCardTime(workForm.createDate)"></el-button>
|
|
|
+ @click="refreshDDCardTime(workForm.createDate,( workForm.userId && workForm.userId[0]))"></el-button>
|
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading"
|
|
|
v-if="!isBatch && user.companyId === 5978" icon="el-icon-refresh"
|
|
|
@click="refreshBeiSengAttendance(workForm.createDate)"></el-button>
|
|
@@ -3339,12 +3339,12 @@
|
|
|
let ma = ms / 1000 / 60 / 60
|
|
|
return ma; //小时
|
|
|
},
|
|
|
- refreshDDCardTime(workdate) {
|
|
|
+ refreshDDCardTime(workdate, userId) {
|
|
|
if (!workdate) return;
|
|
|
this.syncTimeLoading = true;
|
|
|
this.http.post('/dingding/refreshUserCardTime',{
|
|
|
companyId: this.user.companyId,
|
|
|
- userId: this.user.id,
|
|
|
+ userId: userId ? userId : this.user.id,
|
|
|
date: workdate,
|
|
|
},res => {
|
|
|
this.syncTimeLoading = false;
|