diff --git a/jeecgboot-vue3/src/views/bl/blStuInfo/BlStuInfoList.vue b/jeecgboot-vue3/src/views/bl/blStuInfo/BlStuInfoList.vue index f9fb021..f4e5c1f 100644 --- a/jeecgboot-vue3/src/views/bl/blStuInfo/BlStuInfoList.vue +++ b/jeecgboot-vue3/src/views/bl/blStuInfo/BlStuInfoList.vue @@ -218,6 +218,13 @@ const $message = useMessage(); // onClick: handleEdit.bind(null, record), // }, { + ifShow: !!record.filePath, + label: '下载报告', + onClick: downloadFile.bind(null, record.filePath), + }, + { + ifShow: !record.filePath, + disabled: true, label: '下载报告', onClick: downloadFile.bind(null, record.filePath), }, diff --git a/jeecgboot-vue3/src/views/bl/blTeacherInfo/BlTeacherInfoList.vue b/jeecgboot-vue3/src/views/bl/blTeacherInfo/BlTeacherInfoList.vue index e3e01e2..70eb3e2 100644 --- a/jeecgboot-vue3/src/views/bl/blTeacherInfo/BlTeacherInfoList.vue +++ b/jeecgboot-vue3/src/views/bl/blTeacherInfo/BlTeacherInfoList.vue @@ -218,6 +218,13 @@ const $message = useMessage(); // onClick: handleEdit.bind(null, record), // }, { + ifShow: !!record.filePath, + label: '下载报告', + onClick: downloadFile.bind(null, record.filePath), + }, + { + ifShow: !record.filePath, + disabled: true, label: '下载报告', onClick: downloadFile.bind(null, record.filePath), },