IQC上传PDF临床数据预览
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
aa91999ef8
commit
c57b95ee3b
|
@ -151,7 +151,7 @@
|
|||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@click.native.prevent="preview(scope.row.Path)"
|
||||
@click.native.prevent="preview(scope.row)"
|
||||
>
|
||||
{{ $t('trials:uploadClinicalData:action:preview') }}
|
||||
</el-button>
|
||||
|
@ -194,10 +194,12 @@
|
|||
import { getCRCClinicalData } from '@/api/trials'
|
||||
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
|
||||
import moment from 'moment'
|
||||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
|
||||
|
||||
export default {
|
||||
name: 'ClinicalData',
|
||||
components: { clinicalDataQuestions },
|
||||
components: { clinicalDataQuestions, PreviewFile },
|
||||
props: {
|
||||
subjectVisitId: {
|
||||
type: String,
|
||||
|
@ -242,7 +244,7 @@ export default {
|
|||
methods: {
|
||||
// 文件预览
|
||||
preview(row) {
|
||||
if (!row.Path) return
|
||||
if (!row.FileName) return
|
||||
this.previewObj.fileName = row.FileName
|
||||
this.previewObj.filePath = row.Path
|
||||
this.previewObj.fileType ='pdf'
|
||||
|
|
Loading…
Reference in New Issue