浏览代码

修改记录展示

master
父节点
当前提交
85ac258502
共有 2 个文件被更改,包括 79 次插入8 次删除
  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 查看文件

// //
export function test(query) { export function test(query) {
return request({ return request({
url: '/dk/app/queryAttendanceGroupByUserId',
url: '/dk/app/getCurrentDayRecord',
method: 'get', method: 'get',
params: query params: query
}) })

+ 78
- 7
src/views/daka/record/index.vue 查看文件

label="员工姓名" label="员工姓名"
align="center" align="center"
prop="sysUserName" prop="sysUserName"
width="180"
> >
</el-table-column> </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>
<el-table-column <el-table-column
width="150"
label="打卡状态"
label="上班打卡状态"
align="center" align="center"
prop="checkInStatus"
prop="clockInStatus"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span <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=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column <!-- <el-table-column
label="操作" label="操作"
align="center" align="center"

正在加载...
取消
保存