From 2ecec80bdde175bfa1f3fec1fd27f131ac0476b9 Mon Sep 17 00:00:00 2001 From: zxj Date: Mon, 17 Nov 2025 14:45:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E5=A2=9E=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/student/TableStudent.vue | 9 +++++++-- src/views/projectcenter/TaskPage.vue | 21 +++++++-------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/components/student/TableStudent.vue b/src/components/student/TableStudent.vue index 93f0d7a4..54b68386 100644 --- a/src/components/student/TableStudent.vue +++ b/src/components/student/TableStudent.vue @@ -64,7 +64,7 @@
{ return { style: { maxWidth: '200px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', cursor: 'pointer' } } }, customRender: ({ record: { studentOrgName, studentDepartName } }) => // {allDepartShow(studentOrgName)} - {studentDepartName} + {studentDepartName} }, { title: "所属小组", @@ -1465,6 +1465,11 @@ defineExpose({ getStuList, startLoading }); } } +.custom-tooltip .ant-tooltip-inner { + background-color: #fff !important; /* 修改背景色 */ + color: #000; /* 修改文字颜色 */ +} + /*.delete { z-index: 9999; width: 424px; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index dc47160d..e7c04496 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -949,6 +949,10 @@ 成绩单下载 @@ -5346,21 +5350,10 @@ export default { state.checkStuId = record.studentId; } function downloadReport(record) { - // window.open( - // window.location.protocol + - // process.env.VUE_APP_BASE_API +'/stu/project/socialRecruit/report/download?projectId='+state.projectId+'&studentId='+record.studentId - // ); api.downloadTranscript({projectId:state.projectId,studentId:record.studentId}).then(async (res) => { - console.log(res,"@@@"); - - // const binaryData = []; - // binaryData.push(res); - // console.log(binaryData); - // var pdfUrl = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' })); - const pdfBlob = new Blob([res.data], { type: 'application/pdf' }); - - // 2. 生成前端临时预览 URL - const pdfUrl = URL.createObjectURL(pdfBlob); + const pdfBlob = new Blob([res.data], { type: 'application/pdf' }); + // 2. 生成前端临时预览 URL + const pdfUrl = URL.createObjectURL(pdfBlob); window.open(pdfUrl); }) }