diff --git a/src/views/reviewers/components/Agreements.vue b/src/views/reviewers/components/Agreements.vue index c037b271..4b23887c 100644 --- a/src/views/reviewers/components/Agreements.vue +++ b/src/views/reviewers/components/Agreements.vue @@ -437,7 +437,7 @@ export default { }, handlePreview3(row) { return this.$preview({ - path: row.FilePath, + path: row.Path || row.FilePath, type: 'pdf', title: row.FileName, }) @@ -447,7 +447,7 @@ export default { }, handlePreview2(row, r2) { return this.$preview({ - path: row.fullPath, + path: row.Path || row.fullPath, type: 'pdf', title: row.FileName, }) @@ -537,7 +537,7 @@ export default { handlePreview(row) { console.log(row) return this.$preview({ - path: row.FullPath, + path: row.Path || row.FullPath, type: 'pdf', title: row.FileName, }) diff --git a/src/views/reviewers/curriculumVitae/components/file/agreement.vue b/src/views/reviewers/curriculumVitae/components/file/agreement.vue index 06d67587..7a3a8a1b 100644 --- a/src/views/reviewers/curriculumVitae/components/file/agreement.vue +++ b/src/views/reviewers/curriculumVitae/components/file/agreement.vue @@ -333,7 +333,7 @@ export default { }, preview(row) { this.$preview({ - path: row.FullPath, + path: row.Path || row.FullPath, type: 'pdf', title: row.FileName, }) diff --git a/src/views/reviewers/curriculumVitae/components/file/certificate.vue b/src/views/reviewers/curriculumVitae/components/file/certificate.vue index 752f7fa7..5826bdf0 100644 --- a/src/views/reviewers/curriculumVitae/components/file/certificate.vue +++ b/src/views/reviewers/curriculumVitae/components/file/certificate.vue @@ -292,7 +292,7 @@ export default { }, preview(row) { this.$preview({ - path: row.FullPath, + path: row.Path || row.FullPath, type: 'pdf', title: row.FileName, }) diff --git a/src/views/reviewers/curriculumVitae/preview.vue b/src/views/reviewers/curriculumVitae/preview.vue index 81934a8d..999cbbc4 100644 --- a/src/views/reviewers/curriculumVitae/preview.vue +++ b/src/views/reviewers/curriculumVitae/preview.vue @@ -1015,7 +1015,7 @@ export default { } }, preview(row) { - let path = row.FullPath || row.FilePath + let path = row.Path || row.FullPath || row.FilePath this.$preview({ path: path, type: 'pdf',