|
@@ -8,10 +8,10 @@
|
|
|
:inline="true"
|
|
|
label-width="68px"
|
|
|
>
|
|
|
- <el-form-item label="用户昵称" prop="nickName">
|
|
|
+ <el-form-item label="用户昵称" prop="nickname">
|
|
|
<el-input
|
|
|
placeholder="请输入用户昵称 "
|
|
|
- v-model="queryParams.nickName"
|
|
|
+ v-model="queryParams.nickname"
|
|
|
clearable
|
|
|
@keyup.enter="handleQuery"
|
|
|
class="!w-240px"
|
|
@@ -27,9 +27,9 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="导入状态" prop="status">
|
|
|
+ <el-form-item label="导入状态" prop="photoIsExist">
|
|
|
<el-select
|
|
|
- v-model="queryParams.status"
|
|
|
+ v-model="queryParams.photoIsExist"
|
|
|
placeholder="请选择导入状态"
|
|
|
clearable
|
|
|
class="!w-240px"
|
|
@@ -83,9 +83,9 @@
|
|
|
:formatter="dateFormatter"
|
|
|
width="180px"
|
|
|
/>
|
|
|
- <el-table-column label="导入状态" align="center" prop="status">
|
|
|
+ <el-table-column label="导入状态" align="center" prop="photoIsExist">
|
|
|
<template #default="scope">
|
|
|
- <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_FACE_TYPE" :value="scope.row.status" />
|
|
|
+ <dict-tag :type="DICT_TYPE.SYSTEM_STUDENT_FACE_TYPE" :value="scope.row.photoIsExist" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="导入状态" align="center" prop="status" width="180px">
|
|
@@ -166,6 +166,7 @@ import StudentFaceImport from './StudentFaceImport.vue'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
|
import { DICT_TYPE } from '@/utils/dict'
|
|
|
+import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
|
|
|
|
|
|
|
|
|
/** 学生考勤记录 列表 */
|
|
@@ -174,6 +175,13 @@ defineOptions({ name: 'StudentFaceManage' })
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
+const userInfo = ref({} as ProfileVO)
|
|
|
+const getUserInfo = async () => {
|
|
|
+ const users = await getUserProfile()
|
|
|
+ console.log(users)
|
|
|
+ userInfo.value = users
|
|
|
+}
|
|
|
+
|
|
|
const loading = ref(true) // 列表的加载中
|
|
|
const list = ref<UserVO[]>([]) // 列表的数据
|
|
|
const total = ref(0) // 列表的总页数
|
|
@@ -183,7 +191,7 @@ const queryParams = reactive({
|
|
|
id: undefined,
|
|
|
nickname: undefined,
|
|
|
createTime: [],
|
|
|
- status: undefined,
|
|
|
+ photoIsExist: undefined,
|
|
|
remark: undefined,
|
|
|
})
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
@@ -193,7 +201,7 @@ const exportLoading = ref(false) // 导出的加载中
|
|
|
const getList = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
|
- const data = await UserApi.getDeptStudentPage(queryParams)
|
|
|
+ const data = await UserApi.getStudentPage(queryParams)
|
|
|
list.value = data.list
|
|
|
total.value = data.total
|
|
|
console.log(data,'查询列表');
|
|
@@ -258,16 +266,16 @@ const handleImportzip = () => {
|
|
|
}
|
|
|
|
|
|
// 状态颜色显示
|
|
|
-const getStatusClass = (status) => {
|
|
|
- switch (status) {
|
|
|
- case "0":
|
|
|
- return 'status-Imported';
|
|
|
- case "1":
|
|
|
- return 'status-Notimported';
|
|
|
- default:
|
|
|
- return 'status-unknown';
|
|
|
- }
|
|
|
-};
|
|
|
+// const getStatusClass = (status) => {
|
|
|
+// switch (status) {
|
|
|
+// case "0":
|
|
|
+// return 'status-Imported';
|
|
|
+// case "1":
|
|
|
+// return 'status-Notimported';
|
|
|
+// default:
|
|
|
+// return 'status-unknown';
|
|
|
+// }
|
|
|
+// };
|
|
|
|
|
|
// 获取学生列表并处理 photoUrl
|
|
|
// const loadStudentData = async (params) => {
|
|
@@ -290,7 +298,8 @@ const getStatusClass = (status) => {
|
|
|
// };
|
|
|
|
|
|
/** 初始化 **/
|
|
|
-onMounted(() => {
|
|
|
+onMounted(async () => {
|
|
|
+ await getUserInfo()
|
|
|
getList()
|
|
|
})
|
|
|
</script>
|