@@ -39,6 +39,22 @@ const portraitSummaryApi = { | |||||
/** 获取学生属性标签 */ | /** 获取学生属性标签 */ | ||||
getStudentDetail(params: any) { | getStudentDetail(params: any) { | ||||
return http.get("getStudentDetail", params); | return http.get("getStudentDetail", params); | ||||
}, | |||||
/* 学生-出勤情况 */ | |||||
getStudentAttendance(params: any) { | |||||
return http.post("attendance", params); | |||||
}, | |||||
/* 学生-出校 */ | |||||
getStudentOutSchool(params: any) { | |||||
return http.post("outsideSchool", params); | |||||
}, | |||||
/* 学生-图书馆 */ | |||||
getStudentLibrary(params: any) { | |||||
return http.post("library", params); | |||||
}, | |||||
/* 学生-食堂 */ | |||||
getStudentCanteen(params: any) { | |||||
return http.post("canteen", params); | |||||
} | } | ||||
}; | }; | ||||
@@ -187,6 +187,8 @@ const detialRef = ref<InstanceType<typeof TraceShow> | null>(null); | |||||
onMounted(async () => { | onMounted(async () => { | ||||
// 获取系部下拉数据 | // 获取系部下拉数据 | ||||
departmentOptions.value = await getDepartmentList() | departmentOptions.value = await getDepartmentList() | ||||
// 获取班级 | |||||
classOptions.value = await getClassList('') | |||||
}); | }); | ||||
</script> | </script> | ||||
<style scoped lang="scss"> | <style scoped lang="scss"> | ||||
@@ -101,9 +101,9 @@ const rules = reactive({ | |||||
similarity: [required("请选择相似度")], | similarity: [required("请选择相似度")], | ||||
cameraId: [required("请选择摄像头")], | cameraId: [required("请选择摄像头")], | ||||
continueTime: [required("请选择持续时间")], | continueTime: [required("请选择持续时间")], | ||||
personSetId: [required("请选择所属班级")], | |||||
depId: [required("请选择系部")], | |||||
majorId: [required("请选择专业")] | |||||
personSetId: [required("请选择所属班级")] | |||||
// depId: [required("请选择系部")], | |||||
// majorId: [required("请选择专业")] | |||||
}); | }); | ||||
/** | /** | ||||
@@ -112,6 +112,8 @@ const rules = reactive({ | |||||
*/ | */ | ||||
async function onOpen(props: FormProps.Base<any>) { | async function onOpen(props: FormProps.Base<any>) { | ||||
departmentOptions.value = await getDepartmentList(); | departmentOptions.value = await getDepartmentList(); | ||||
// 获取班级 | |||||
classOptions.value = await getClassList(""); | |||||
Object.assign(sysUserProps, props); //合并参数 | Object.assign(sysUserProps, props); //合并参数 | ||||
visible.value = true; //显示表单 | visible.value = true; //显示表单 | ||||
/* 监听系部、专业 */ | /* 监听系部、专业 */ | ||||
@@ -181,7 +181,9 @@ const RefreshTable = () => { | |||||
} | } | ||||
onMounted(async () => { | onMounted(async () => { | ||||
// 获取系部下拉数据 | // 获取系部下拉数据 | ||||
departmentOptions.value = await getDepartmentList() | |||||
departmentOptions.value = await getDepartmentList(); | |||||
// 获取班级 | |||||
classOptions.value = await getClassList('') | |||||
}); | }); | ||||
</script> | </script> | ||||
<style scoped lang="scss"> | <style scoped lang="scss"> | ||||
@@ -156,6 +156,8 @@ const genderOptions = ref([ | |||||
]); | ]); | ||||
onMounted(async () => { | onMounted(async () => { | ||||
departmentOptions.value = await getDepartmentList(); | departmentOptions.value = await getDepartmentList(); | ||||
// 获取班级 | |||||
classOptions.value = await getClassList(""); | |||||
// 初始化 | // 初始化 | ||||
userInfo.value.gender = userInfo.value.gender ? userInfo.value.gender : genderOptions.value[0].value; | userInfo.value.gender = userInfo.value.gender ? userInfo.value.gender : genderOptions.value[0].value; | ||||
if (userInfo.value.personId) { | if (userInfo.value.personId) { | ||||
@@ -49,8 +49,8 @@ const rules = reactive({ | |||||
gender: [required("请选择性别")], | gender: [required("请选择性别")], | ||||
faces: [required("请上传人脸图片")], | faces: [required("请上传人脸图片")], | ||||
phone: [required("请输入手机号")], | phone: [required("请输入手机号")], | ||||
depId: [required("请选择系部")], | |||||
majorId: [required("请选择专业")], | |||||
// depId: [required("请选择系部")], | |||||
// majorId: [required("请选择专业")], | |||||
personSetId: [required("请选择班级")] | personSetId: [required("请选择班级")] | ||||
}); | }); | ||||
@@ -281,6 +281,8 @@ const handleAvatarSuccess: UploadProps["onSuccess"] = (response) => { | |||||
onMounted(async () => { | onMounted(async () => { | ||||
// 获取系部下拉数据 | // 获取系部下拉数据 | ||||
departmentOptions.value = await getDepartmentList() | departmentOptions.value = await getDepartmentList() | ||||
// 获取班级 | |||||
classOptions.value = await getClassList(""); | |||||
}); | }); | ||||
</script> | </script> | ||||
<style scoped lang="scss"> | <style scoped lang="scss"> | ||||