自定义独立阅片人的证书pdf浏览方式修改为pdfjs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9795f89ce9
commit
712d2cc89b
|
@ -140,7 +140,8 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList.length > 0">
|
<div v-if="scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList.length > 0">
|
||||||
<el-button type="text" @click="windowOpen(scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList[0].FilePath)">View</el-button>
|
<el-button type="text" @click="preview(scope.row,ite.TrialReadingCriterionId)">View</el-button>
|
||||||
|
<!-- <el-button type="text" @click="windowOpen(scope.row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === ite.TrialReadingCriterionId}).StatementCriterionFileList[0].FilePath)">View</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<span>{{ $t('trials:enrolledReviews:label:notUpload') }}</span>
|
<span>{{ $t('trials:enrolledReviews:label:notUpload') }}</span>
|
||||||
|
@ -474,6 +475,17 @@ export default {
|
||||||
this.initPage()
|
this.initPage()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 预览
|
||||||
|
preview(row,TrialReadingCriterionId){
|
||||||
|
let file = row.CriterionCategoryList.find(v => {return v.TrialReadingCriterionId === TrialReadingCriterionId}).StatementCriterionFileList[0];
|
||||||
|
let arr = file.FilePath.split(".");
|
||||||
|
|
||||||
|
this.$preview({
|
||||||
|
path:file.FilePath,
|
||||||
|
type:arr[arr.length - 1],
|
||||||
|
title:file.FileName
|
||||||
|
})
|
||||||
|
},
|
||||||
isConsistencyChange(row, ite, value, showMessage) {
|
isConsistencyChange(row, ite, value, showMessage) {
|
||||||
this.batchSetCriterionJoinJoinAnalysis(row, ite, value, showMessage)
|
this.batchSetCriterionJoinJoinAnalysis(row, ite, value, showMessage)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue