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