|
@@ -69,11 +69,11 @@
|
|
|
<p v-if="userInfo.userType=='1'">★ 本人签字
|
|
|
</p>
|
|
|
<div v-if="userInfo.userType=='1'">
|
|
|
- <canvas
|
|
|
- id="canvas"
|
|
|
- ref="canvas"
|
|
|
- width="300px"
|
|
|
- height="100px"
|
|
|
+ <canvas
|
|
|
+ id="canvas"
|
|
|
+ ref="canvas"
|
|
|
+ width="300px"
|
|
|
+ height="100px"
|
|
|
@mousedown="handleMouseDown"
|
|
|
@mousemove="handleMouseMove"
|
|
|
@mouseup="handleMouseUp"
|
|
@@ -106,9 +106,9 @@
|
|
|
<div v-show="lastSupervisorSignature">
|
|
|
<img :src="formData.supervisorSignature" alt="导师签名" style="width: 300px; height: 100px; margin-right: 10px; background-color: white;"/>
|
|
|
<div style="margin-top: 10px;">
|
|
|
- <el-button
|
|
|
+ <el-button
|
|
|
plain
|
|
|
- type="primary"
|
|
|
+ type="primary"
|
|
|
size="small"
|
|
|
@click="handleResign"
|
|
|
>
|
|
@@ -171,7 +171,7 @@ import * as UserApi from '@/api/system/user'
|
|
|
import { defineOptions, defineExpose, ref, reactive, nextTick, onMounted, computed } from 'vue'
|
|
|
import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
|
|
|
import {supervisorSelectionSettingApi} from '@/api/system/supervisorSelectionSetting'
|
|
|
-import { htmlPdf } from "@/utils/htmlToPDF.js"
|
|
|
+import { htmlPdf } from "@/utils/htmlToPDF.js"
|
|
|
import { studentSelectionProjectApi, studentSelectionProjectVO } from '@/api/system/studentSelectionProject'
|
|
|
|
|
|
/** 师生互选记录 表单 */
|
|
@@ -280,7 +280,7 @@ const showPrintButton = ref(false); // 控制打印按钮的显示
|
|
|
/** 打开弹窗 */
|
|
|
const open = async (type: string, projectId?: number, supervisorId?:number, id?:number, studentId?:number, selectType?:number) => {
|
|
|
dialogVisible.value = true;
|
|
|
-
|
|
|
+
|
|
|
if (type === 'create'){
|
|
|
dialogTitle.value = '志愿填报'
|
|
|
submitFormText.value = '选择'
|
|
@@ -346,7 +346,7 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
supervisorData.value.studentAchievementRequirement = supervisor.studentAchievementRequirement;
|
|
|
supervisorData.value.major = supervisor.major;
|
|
|
supervisorData.value.workSupervisor = supervisor.workSupervisor;
|
|
|
-
|
|
|
+
|
|
|
formData.value = await studentSelectSupervisorRecordApi.getStudentSelectSupervisorRecord(id)
|
|
|
await getSupervisorSignature();
|
|
|
formData.value.supervisorSignature = lastSupervisorSignature.value
|
|
@@ -509,7 +509,7 @@ const open = async (type: string, projectId?: number, supervisorId?:number, id?:
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// 获取当前项目的导师
|
|
@@ -523,11 +523,11 @@ const getProjectSupervisors = async () => {
|
|
|
|
|
|
const handleExport = (row) => {
|
|
|
var fileName = '师生互选表';
|
|
|
- const formElement = document.querySelector('.form-container');
|
|
|
+ const formElement = document.querySelector('.form-container');
|
|
|
htmlPdf(fileName, formElement, row);
|
|
|
dialogVisible.value = false;
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
const isDrawing = ref(false) // 是否正在画
|
|
|
const context = ref() // 签名画布的上下文
|
|
|
const contextT = ref()
|