Parcourir la source

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

master
suyanyan il y a 2 mois
Parent
révision
0659111c8b
8 fichiers modifiés avec 220 ajouts et 151 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer