lizhuang 4 天前
父节点
当前提交
00e61b6b3e
共有 3 个文件被更改,包括 23 次插入29 次删除
  1. 1
    0
      src/views/daka/attendanceteam/index.vue
  2. 19
    28
      src/views/daka/record/index.vue
  3. 3
    1
      vue.config.js

+ 1
- 0
src/views/daka/attendanceteam/index.vue 查看文件

> >
<el-table-column prop="userName" label="姓名"></el-table-column> <el-table-column prop="userName" label="姓名"></el-table-column>
<el-table-column prop="userId" label="工号"></el-table-column> <el-table-column prop="userId" label="工号"></el-table-column>
<el-table-column prop="nickName" label="用户昵称"></el-table-column>
<el-table-column prop="deptName" label="部门"></el-table-column> <el-table-column prop="deptName" label="部门"></el-table-column>
<el-table-column label="操作" width="80"> <el-table-column label="操作" width="80">
<template #default="scope"> <template #default="scope">

+ 19
- 28
src/views/daka/record/index.vue 查看文件

> >
<!-- <el-table-column type="selection" width="55" align="center" /> --> <!-- <el-table-column type="selection" width="55" align="center" /> -->
<el-table-column v-if="false" label="主键ID" align="center" prop="id" /> <el-table-column v-if="false" label="主键ID" align="center" prop="id" />
<el-table-column
label="员工姓名"
align="center"
prop="sysUserName"
>
<el-table-column label="员工姓名" align="center" prop="sysUserName" >
</el-table-column>
<!-- <el-table-column label="姓名昵称" align="center" prop="nickName" >
</el-table-column> -->
<el-table-column label="考勤组" align="center" prop="attendanceGroupName" >
</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
label="上班打卡状态"
align="center"
prop="clockInStatus"
>
<el-table-column label="上班打卡状态" align="center" prop="clockInStatus" >
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
v-if="scope.row.clockInStatus == '0'"
v-if="scope.row.checkInStatus == '0'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
未打卡 未打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '1'"
v-if="scope.row.clockInStatus == '1'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
上班已打卡 上班已打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '2'"
v-if="scope.row.clockInStatus == '2'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
下班已打卡 下班已打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '3'"
v-if="scope.row.clockInStatus == '3'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
迟到打卡 迟到打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '4'"
v-if="scope.row.clockInStatus == '4'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
早退打卡 早退打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '5'"
v-if="scope.row.clockInStatus == '5'"
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
label="下班打卡状态"
align="center"
prop="clockOutStatus"
>
<el-table-column label="下班打卡状态" align="center" prop="clockOutStatus" >
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
v-if="scope.row.clockOutStatus == '0'"
v-if="scope.row.checkInStatus == '0'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
未打卡 未打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '1'"
v-if="scope.row.clockOutStatus == '1'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
上班已打卡 上班已打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '2'"
v-if="scope.row.clockOutStatus == '2'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
下班已打卡 下班已打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '3'"
v-if="scope.row.clockOutStatus == '3'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
迟到打卡 迟到打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '4'"
v-if="scope.row.clockOutStatus == '4'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
早退打卡 早退打卡
</span> </span>
<span <span
v-if="scope.row.checkInStatus == '5'"
v-if="scope.row.clockOutStatus == '5'"
style=" style="
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;

+ 3
- 1
vue.config.js 查看文件

proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.1.107:8080`,
target: `http://127.0.0.1:8080`,
// target: `http://172.17.0.1:4001`,
// target: `https://digital.sohomall.jp/prod-api`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''

正在加载...
取消
保存