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
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
@click.native.prevent="preview(scope.row.Path)"
|
@click.native.prevent="preview(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t('trials:uploadClinicalData:action:preview') }}
|
{{ $t('trials:uploadClinicalData:action:preview') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -194,10 +194,12 @@
|
||||||
import { getCRCClinicalData } from '@/api/trials'
|
import { getCRCClinicalData } from '@/api/trials'
|
||||||
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
|
import clinicalDataQuestions from '@/components/clinicalDataQuestions'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import PreviewFile from '@/components/PreviewFile/index'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ClinicalData',
|
name: 'ClinicalData',
|
||||||
components: { clinicalDataQuestions },
|
components: { clinicalDataQuestions, PreviewFile },
|
||||||
props: {
|
props: {
|
||||||
subjectVisitId: {
|
subjectVisitId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
@ -242,7 +244,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 文件预览
|
// 文件预览
|
||||||
preview(row) {
|
preview(row) {
|
||||||
if (!row.Path) return
|
if (!row.FileName) return
|
||||||
this.previewObj.fileName = row.FileName
|
this.previewObj.fileName = row.FileName
|
||||||
this.previewObj.filePath = row.Path
|
this.previewObj.filePath = row.Path
|
||||||
this.previewObj.fileType ='pdf'
|
this.previewObj.fileType ='pdf'
|
||||||
|
|
Loading…
Reference in New Issue