|
@@ -38,10 +38,10 @@
|
|
|
>
|
|
|
<el-option :label="'正常'" :value="0" />
|
|
|
<el-option :label="'未打卡'" :value="1" />
|
|
|
-
|
|
|
+
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
<el-form-item>
|
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
@@ -69,29 +69,26 @@
|
|
|
<!-- 列表 -->
|
|
|
<ContentWrap>
|
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
- <el-table-column label="Id" align="center" prop="id" />
|
|
|
+ <el-table-column type="index" width="50" />
|
|
|
+ <el-table-column label="日期" align="center" prop="date">
|
|
|
+ <template #default="scope">
|
|
|
+ {{scope.row.date[0]}} 年 {{scope.row.date[1]}} 月 {{scope.row.date[2]}} 日
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="学生名称" align="center" prop="studentName" />
|
|
|
- <!-- <el-table-column
|
|
|
- label="打卡时间"
|
|
|
+ <el-table-column label="学号" align="center" prop="userNumber" />
|
|
|
+ <el-table-column
|
|
|
+ v-if="userInfo.userType === '4'"
|
|
|
+ label="工作间名称"
|
|
|
align="center"
|
|
|
- prop="clockInTime"
|
|
|
- :formatter="dateFormatter"
|
|
|
- width="180px"
|
|
|
- /> -->
|
|
|
- <el-table-column label="学号" align="center" prop="userNumber" width="150" />
|
|
|
- <el-table-column
|
|
|
- v-if="userInfo.userType === '4'"
|
|
|
- label="工作间名称"
|
|
|
- align="center"
|
|
|
- prop="deptName"
|
|
|
+ prop="deptName"
|
|
|
width="100"
|
|
|
/>
|
|
|
<el-table-column label="打卡类型" align="center" prop="clockInStatus">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_ATTENDANCE_TYPE" :value="scope.row.clockInStatus" />
|
|
|
+ <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_ATTENDANCE_TYPE" :value="scope.row.clockInStatus" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="日期" align="center" prop="date" width="150"/>
|
|
|
<!-- <el-table-column label="打卡状态 " align="center" prop="clockInStatus" >
|
|
|
<template #default="rowData">
|
|
|
<span :class="getStatusClass(rowData.row.clockInStatus)">
|
|
@@ -111,27 +108,27 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column label="备注原因" align="center" prop="remark" />
|
|
|
- <el-table-column label="操作" align="center" min-width="120px">
|
|
|
- <template #default="scope">
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="primary"
|
|
|
- @click="openForm('update', scope.row.id)"
|
|
|
- v-hasPermi="['system:student-attendance:update']"
|
|
|
- >
|
|
|
- 编辑
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="danger"
|
|
|
- @click="handleDelete(scope.row.id)"
|
|
|
- v-hasPermi="['system:student-attendance:delete']"
|
|
|
- >
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" />
|
|
|
+<!-- <el-table-column label="操作" align="center" min-width="120px">-->
|
|
|
+<!-- <template #default="scope">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- link-->
|
|
|
+<!-- type="primary"-->
|
|
|
+<!-- @click="openForm('update', scope.row.id)"-->
|
|
|
+<!-- v-hasPermi="['system:student-attendance:update']"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- 编辑-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- link-->
|
|
|
+<!-- type="danger"-->
|
|
|
+<!-- @click="handleDelete(scope.row.id)"-->
|
|
|
+<!-- v-hasPermi="['system:student-attendance:delete']"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- 删除-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
</el-table>
|
|
|
<!-- 分页 -->
|
|
|
<Pagination
|
|
@@ -294,4 +291,4 @@ onMounted(async () => {
|
|
|
.status-unknown {
|
|
|
color: gray;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|