学生作业增加预览

This commit is contained in:
曹磊 2024-05-24 20:52:44 +08:00
parent 5a8a4a171c
commit b46e311044
2 changed files with 1 additions and 3 deletions

View File

@ -173,7 +173,6 @@
// //
function handlePreview(record){ function handlePreview(record){
console.log(record);
record.isYl = true; record.isYl = true;
ZyInfoStudentModalPage.value.disableSubmit = true; ZyInfoStudentModalPage.value.disableSubmit = true;
ZyInfoStudentModalPage.value.edit(record); ZyInfoStudentModalPage.value.edit(record);

View File

@ -87,7 +87,6 @@
* 编辑 * 编辑
*/ */
function edit(record) { function edit(record) {
console.log(record);
nextTick(() => { nextTick(() => {
resetFields(); resetFields();
// //
@ -145,7 +144,7 @@
function openPdf(record){ function openPdf(record){
if(record.stuPdfPath){ if(record.stuPdfPath){
var url2 = getFileAccessHttpUrl(record.pdfPath) var url2 = getFileAccessHttpUrl(record.stuPdfPath)
let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2); let url = baseApiUrl+"/generic/web/viewer.html?file="+encodeURIComponent(url2);
window.open(url,"_blank") window.open(url,"_blank")
}else{ }else{