|
@@ -51,7 +51,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="校内导师">
|
|
|
- <el-input v-model="supervisorData.title" placeholder="自动链接" disabled />
|
|
|
+ <el-input v-model="supervisorData.workSupervisor" placeholder="自动链接" disabled />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -268,6 +268,7 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
supervisorData.value.title =supervisor.title;
|
|
|
supervisorData.value.studentAchievementRequirement = supervisor.studentAchievementRequirement;
|
|
|
supervisorData.value.major = supervisor.major;
|
|
|
+ supervisorData.value.workSupervisor = supervisor.workSupervisor;
|
|
|
} finally {
|
|
|
formLoading.value = false
|
|
|
}
|
|
@@ -293,6 +294,8 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
supervisorData.value.title =supervisor.title;
|
|
|
supervisorData.value.studentAchievementRequirement = supervisor.studentAchievementRequirement;
|
|
|
supervisorData.value.major = supervisor.major;
|
|
|
+ supervisorData.value.workSupervisor = supervisor.workSupervisor;
|
|
|
+
|
|
|
formData.value = await studentSelectSupervisorRecordApi.getStudentSelectSupervisorRecord(id)
|
|
|
} finally {
|
|
|
formLoading.value = false
|
|
@@ -347,6 +350,7 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
supervisorData.value.title =supervisor.title;
|
|
|
supervisorData.value.studentAchievementRequirement = supervisor.studentAchievementRequirement;
|
|
|
supervisorData.value.major = supervisor.major;
|
|
|
+ supervisorData.value.workSupervisor = supervisor.workSupervisor;
|
|
|
formData.value = await studentSelectSupervisorRecordApi.getStudentSelectSupervisorRecord(id)
|
|
|
} finally {
|
|
|
formLoading.value = false
|
|
@@ -377,13 +381,13 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
studentData.value.userNumber=result.userNumber
|
|
|
studentData.value.major=result.major
|
|
|
studentData.value.mobile=result.mobile
|
|
|
-
|
|
|
const supervisor = await supervisorSelectionSettingApi.getSupervisorInfo(supervisorId,projectId);
|
|
|
//显示的
|
|
|
supervisorData.value.nickname = supervisor.supervisorName;
|
|
|
supervisorData.value.title =supervisor.title;
|
|
|
supervisorData.value.studentAchievementRequirement = supervisor.studentAchievementRequirement;
|
|
|
supervisorData.value.major = supervisor.major;
|
|
|
+ supervisorData.value.workSupervisor = supervisor.workSupervisor;
|
|
|
formData.value = await studentSelectSupervisorRecordApi.getStudentSelectSupervisorRecord(id)
|
|
|
} finally {
|
|
|
formLoading.value = false
|
|
@@ -435,7 +439,18 @@ const handleMouseDown = (event: MouseEvent) => {
|
|
|
|
|
|
const handleMouseMove = (event: MouseEvent) => {
|
|
|
if (!isDrawing.value || !canvas.value || !context.value) return;
|
|
|
- const { offsetX, offsetY } = event;
|
|
|
+
|
|
|
+ const rect = canvas.value.getBoundingClientRect();
|
|
|
+ const offsetX = event.clientX - rect.left; // 计算鼠标相对于画布左上角的坐标
|
|
|
+ const offsetY = event.clientY - rect.top; // 计算鼠标相对于画布左上角的坐标
|
|
|
+
|
|
|
+ // 检查鼠标位置是否超出画布边界
|
|
|
+ if (offsetX < 0 || offsetX > 400 || offsetY < 0 || offsetY > 100) {
|
|
|
+ isDrawing.value = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 如果未超出边界,继续进行绘制
|
|
|
context.value.lineTo(offsetX, offsetY);
|
|
|
context.value.stroke();
|
|
|
}
|