Browse Source

学生行为画像-学生档案接口联调

master
suyanyan 2 months ago
parent
commit
0659111c8b
8 changed files with 220 additions and 151 deletions
  1. +16
    -0
      SafeCampus.WEB/src/api/modules/violation/portraitSummary.ts
  2. +2
    -0
      SafeCampus.WEB/src/views/attendance/behaviorTrace/index.vue
  3. +5
    -3
      SafeCampus.WEB/src/views/attendance/roolcall/components/form/index.vue
  4. +3
    -1
      SafeCampus.WEB/src/views/attendance/roolcall/index.vue
  5. +2
    -0
      SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue
  6. +2
    -2
      SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue
  7. +2
    -0
      SafeCampus.WEB/src/views/userManage/personnel/index.vue
  8. +188
    -145
      SafeCampus.WEB/src/views/violation/portrait/detail.vue

+ 16
- 0
SafeCampus.WEB/src/api/modules/violation/portraitSummary.ts View File

@@ -39,6 +39,22 @@ const portraitSummaryApi = {
/** 获取学生属性标签 */
getStudentDetail(params: any) {
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);
}
};



+ 2
- 0
SafeCampus.WEB/src/views/attendance/behaviorTrace/index.vue View File

@@ -187,6 +187,8 @@ const detialRef = ref<InstanceType<typeof TraceShow> | null>(null);
onMounted(async () => {
// 获取系部下拉数据
departmentOptions.value = await getDepartmentList()
// 获取班级
classOptions.value = await getClassList('')
});
</script>
<style scoped lang="scss">


+ 5
- 3
SafeCampus.WEB/src/views/attendance/roolcall/components/form/index.vue View File

@@ -101,9 +101,9 @@ const rules = reactive({
similarity: [required("请选择相似度")],
cameraId: [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>) {
departmentOptions.value = await getDepartmentList();
// 获取班级
classOptions.value = await getClassList("");
Object.assign(sysUserProps, props); //合并参数
visible.value = true; //显示表单
/* 监听系部、专业 */


+ 3
- 1
SafeCampus.WEB/src/views/attendance/roolcall/index.vue View File

@@ -181,7 +181,9 @@ const RefreshTable = () => {
}
onMounted(async () => {
// 获取系部下拉数据
departmentOptions.value = await getDepartmentList()
departmentOptions.value = await getDepartmentList();
// 获取班级
classOptions.value = await getClassList('')
});
</script>
<style scoped lang="scss">


+ 2
- 0
SafeCampus.WEB/src/views/userManage/personnel/components/form/form_basic.vue View File

@@ -156,6 +156,8 @@ const genderOptions = ref([
]);
onMounted(async () => {
departmentOptions.value = await getDepartmentList();
// 获取班级
classOptions.value = await getClassList("");
// 初始化
userInfo.value.gender = userInfo.value.gender ? userInfo.value.gender : genderOptions.value[0].value;
if (userInfo.value.personId) {


+ 2
- 2
SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue View File

@@ -49,8 +49,8 @@ const rules = reactive({
gender: [required("请选择性别")],
faces: [required("请上传人脸图片")],
phone: [required("请输入手机号")],
depId: [required("请选择系部")],
majorId: [required("请选择专业")],
// depId: [required("请选择系部")],
// majorId: [required("请选择专业")],
personSetId: [required("请选择班级")]
});



+ 2
- 0
SafeCampus.WEB/src/views/userManage/personnel/index.vue View File

@@ -281,6 +281,8 @@ const handleAvatarSuccess: UploadProps["onSuccess"] = (response) => {
onMounted(async () => {
// 获取系部下拉数据
departmentOptions.value = await getDepartmentList()
// 获取班级
classOptions.value = await getClassList("");
});
</script>
<style scoped lang="scss">


+ 188
- 145
SafeCampus.WEB/src/views/violation/portrait/detail.vue
File diff suppressed because it is too large
View File


Loading…
Cancel
Save