mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
fix:新增学习状态查询条件
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<a-form-item title="学习状态:">
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="tableParam.approvalResults"
|
||||
v-model:value="tableParam.studyStatus"
|
||||
style="width: 260px; height: 40px"
|
||||
placeholder="学习状态"
|
||||
:options="learnStatusList"
|
||||
@@ -644,7 +644,7 @@ const tablecolumns = ref([
|
||||
customCell: () => { return { style: { maxWidth: '200px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', cursor: 'pointer' } } },
|
||||
customRender: ({ record: { studentOrgName, studentDepartName } }) =>
|
||||
// <a-tooltip color="white" placement="topLeft" title={allDepartShow(studentOrgName)} >{allDepartShow(studentOrgName)}</a-tooltip>
|
||||
<a-tooltip color="white" placement="topLeft" title={studentOrgName} >{studentDepartName}</a-tooltip>
|
||||
<a-tooltip overlayClassName="custom-tooltip" placement="topLeft" title={studentOrgName} >{studentDepartName}</a-tooltip>
|
||||
},
|
||||
{
|
||||
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;
|
||||
|
||||
@@ -949,6 +949,10 @@
|
||||
<a-button
|
||||
v-if="isNewEmployee"
|
||||
@click="downloadReport(record)"
|
||||
:disabled="
|
||||
record.approvalResults != 3 ||
|
||||
record.finishTaskNum / record.totalTaskNum != 100
|
||||
"
|
||||
type="link"
|
||||
>成绩单下载
|
||||
</a-button>
|
||||
@@ -5346,19 +5350,8 @@ 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);
|
||||
window.open(pdfUrl);
|
||||
|
||||
Reference in New Issue
Block a user