ydmyzx 4 miesięcy temu
rodzic
commit
3fbfee805a

BIN
public/wi.png


+ 2 - 2
src/api/system/studentSelectionProject/index.ts

@@ -56,8 +56,8 @@ export const studentSelectionProjectApi = {
     return await request.get({ url: `/system/student-selection-project/getProjectSupervisors`})
   },
   // 获取当前项目的导师
-  getProjectInnerSupervisors: async () => {
-    return await request.get({ url: `/system/student-selection-project/getProjectInnerSupervisors`})
+  getProjectInnerSupervisors: async (projectId) => {
+    return await request.get({ url: `/system/student-selection-project/getProjectInnerSupervisors?projectId=` + projectId })
   },
 
   // 提交校内导师分配

+ 2 - 2
src/views/system/studentSelection/studentSelectSupervisorRecord/record.vue

@@ -367,8 +367,8 @@ const exportWordTemplate = async () => {
           '(3)第一署名单位为桂林理工大学,学生排名第一,导师(含校内)作为指导老师,获得中国国际大学生创新大赛、“挑战杯”大学生创业计划竞赛等全国性赛事省部级一等奖(金奖)或者国家级二等奖(银奖)以上奖项1项。赛事认定参考桂林理工大学每年修订的《全国普通高校大学生竞赛目录》,若有异议,以学院学位委员会认可为准。',
       studentSignDate: formatDate(selectionBook.studentSignDate) || '无',
       supervisorSignDate: formatDate(selectionBook.supervisorSignDate) || '无',
-      supervisorSignature: selectionBook.supervisorSignature || '\n',
-      studentSignature: selectionBook.supervisorSignature || '\n'
+      supervisorSignature: selectionBook.supervisorSignature || '/wi.png',
+      studentSignature: selectionBook.supervisorSignature || '/wi.png'
     };
   }));
   console.log("导出的数据对象:", dataList);

+ 3 - 5
src/views/system/studentSelection/studentSelectionProject/openCampusSupervisorForm.vue

@@ -66,6 +66,7 @@ const open = async (id?: number) => {
   if (id) {
     formLoading.value = true
     try {
+      getSupervisor(id)
       const data = await studentSelectionProjectApi.getStudentSelectExternalSupervisorsList(id)
       formData.value.studentList = data;
      } finally {
@@ -94,9 +95,9 @@ const submitForm = async () => {
 
 // 获取所有导师
 const supervisors = ref<{ id: number; nickname: string }[]>([])
-const getSupervisor = async () => {
+const getSupervisor = async (id) => {
   try {
-    const result = await studentSelectionProjectApi.getProjectInnerSupervisors()
+    const result = await studentSelectionProjectApi.getProjectInnerSupervisors(id)
     supervisors.value = result
   } catch (error) {
     console.error('未获取到导师', error)
@@ -104,7 +105,4 @@ const getSupervisor = async () => {
   }
 }
 
-onMounted(() => {
-  getSupervisor()
-})
 </script>