From b937018241ace80c441c2f4452c3993717026f27 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Fri, 12 Jul 2024 23:30:06 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B47=E6=9C=8812=E6=97=A5=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=A6=81=E6=AD=A2=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/views/bl/blStuInfo/BlStuInfoList.vue | 7 +++++++ .../src/views/bl/blTeacherInfo/BlTeacherInfoList.vue | 7 +++++++ 2 files changed, 14 insertions(+) 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), },