Browse Source

修改记录展示

master
1341924763@qq.com 1 week ago
parent
commit
85ac258502
2 changed files with 79 additions and 8 deletions
  1. 1
    1
      src/api/daka/attendance-group.js
  2. 78
    7
      src/views/daka/record/index.vue

+ 1
- 1
src/api/daka/attendance-group.js View File

@@ -48,7 +48,7 @@ export function del(id) {
//
export function test(query) {
return request({
url: '/dk/app/queryAttendanceGroupByUserId',
url: '/dk/app/getCurrentDayRecord',
method: 'get',
params: query
})

+ 78
- 7
src/views/daka/record/index.vue View File

@@ -120,21 +120,93 @@
label="员工姓名"
align="center"
prop="sysUserName"
width="180"
>
</el-table-column>
<el-table-column label="打卡时间" align="center" prop="checkInTime">
<el-table-column label="打卡时间" align="center" prop="checkInTime">
</el-table-column>
<el-table-column
width="150"
label="打卡状态"
label="上班打卡状态"
align="center"
prop="checkInStatus"
prop="clockInStatus"
>
<template slot-scope="scope">
<span
v-if="scope.row.checkInStatus == '0'"
v-if="scope.row.clockInStatus == '0'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
未打卡
</span>
<span
v-if="scope.row.checkInStatus == '1'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
上班已打卡
</span>
<span
v-if="scope.row.checkInStatus == '2'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
下班已打卡
</span>
<span
v-if="scope.row.checkInStatus == '3'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
迟到打卡
</span>
<span
v-if="scope.row.checkInStatus == '4'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
早退打卡
</span>
<span
v-if="scope.row.checkInStatus == '5'"
style="
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
"
>
更新打卡
</span>
</template>
</el-table-column>
<el-table-column
label="下班打卡状态"
align="center"
prop="clockOutStatus"
>
<template slot-scope="scope">
<span
v-if="scope.row.clockOutStatus == '0'"
style="
display: inline-flex;
align-items: center;
@@ -201,7 +273,6 @@
</span>
</template>
</el-table-column>
<!-- <el-table-column
label="操作"
align="center"

Loading…
Cancel
Save