diff --git a/src/views/zy/zyInfo/StudentZyInfoList.vue b/src/views/zy/zyInfo/StudentZyInfoList.vue index 41899a8..abfe4fd 100644 --- a/src/views/zy/zyInfo/StudentZyInfoList.vue +++ b/src/views/zy/zyInfo/StudentZyInfoList.vue @@ -52,6 +52,7 @@ 详情 上传 + 下载 预览 @@ -82,6 +83,9 @@ import { defHttp } from '/@/utils/http/axios'; import { useMessage } from "/@/hooks/web/useMessage"; import { useRouter } from 'vue-router'; + import { downloadFile } from '/@/utils/common/renderUtils'; + import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; + import { useGlobSetting } from '/@/hooks/setting'; import JInput from '/@/components/Form/src/jeecg/components/JInput.vue'; import ZyInfoModal from './components/ZyInfoModal.vue'; import ZyInfoStudentListModal from '/@/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue'; @@ -105,6 +109,8 @@ const pageNo = ref(0); const pageSize = ref(6); const tableData = ref([]); +const globSetting = useGlobSetting(); +const baseApiUrl = globSetting.domainUrl; const labelCol = reactive({ @@ -173,9 +179,17 @@ //预览 function handlePreview(record){ - record.isYl = true; - ZyInfoStudentModalPage.value.disableSubmit = true; - ZyInfoStudentModalPage.value.edit(record); + // record.isYl = true; + // ZyInfoStudentModalPage.value.disableSubmit = true; + // ZyInfoStudentModalPage.value.edit(record); + + var url2 = getFileAccessHttpUrl(record.stuPdfPath) + let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); + window.open(url,"_blank") + } + + function handleDownload(record){ + downloadFile(record.stuFilePath) } //获取选课人数