瀏覽代碼

提交相关代码

Lijy 1 天之前
父節點
當前提交
7bdbb8867a
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -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;