[update 企标稽查] 稽查报告附件可查看
This commit is contained in:
@@ -30,16 +30,15 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 附件 -->
|
||||
<template v-slot:relatedMaterial="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ text }}</a>
|
||||
</a-tooltip>
|
||||
<!--附件-->
|
||||
<template v-slot:file="text">
|
||||
<a v-if="text" @click="fileLook(text)">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-spin>
|
||||
|
||||
<upload-file ref="uploadFile" disabled></upload-file>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
@@ -50,6 +49,7 @@ import { previewPdf } from '@/utils/previewPdf'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { getCheckReportById } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||
import UploadFile from '@comp/UploadFile'
|
||||
|
||||
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
|
||||
const FILE_TYPE_PDF = 'pdf'
|
||||
@@ -58,6 +58,7 @@ const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xl
|
||||
|
||||
export default {
|
||||
name: 'CheckReportModal',
|
||||
components: { UploadFile },
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('enterpriseStandardLibrary.check.checkReport'),
|
||||
@@ -126,6 +127,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 附件列的查看点击
|
||||
fileLook (text) {
|
||||
this.$refs.uploadFile.open(text)
|
||||
},
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
|
||||
Reference in New Issue
Block a user