[update] 不符合项库
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
<template v-slot:file="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a v-if="text" class="link-a" @click="previewFile(record)">{{ text }}</a>
|
||||
<a v-if="text" class="link-a" @click="previewFile(record)">{{ record.file_dictText }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
@@ -135,6 +135,12 @@
|
||||
<nonmatch-item-close-modal ref="nonmatchItemCloseModal" @ok="modalFormOk"/>
|
||||
<!-- 查看弹框 -->
|
||||
<nonmatch-item-look-modal ref="nonmatchItemLookModal"/>
|
||||
<!-- 预览图片 -->
|
||||
<div id="images">
|
||||
<div class="image" v-viewer="{movable: false}">
|
||||
<img v-show="image" :src="imageUrl">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a-card>
|
||||
</template>
|
||||
@@ -280,7 +286,9 @@ export default {
|
||||
],
|
||||
url: {
|
||||
list: '/assessment/lawsEvaluationNotMet/page'
|
||||
}
|
||||
},
|
||||
image: false,
|
||||
imageUrl: ''
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
@@ -346,7 +354,7 @@ export default {
|
||||
},
|
||||
previewFile (record) {
|
||||
// 截取文件后缀名
|
||||
const fileSuffix = record.fileId_dictText ? record.fileId_dictText.split('.')[record.fileId_dictText.split('.').length - 1].toLowerCase() : ''
|
||||
const fileSuffix = record.file_dictText ? record.file_dictText.split('.')[record.file_dictText.split('.').length - 1].toLowerCase() : ''
|
||||
const canPreview = CAN_PREVIEW_FILE_SUFFIX.some(tt => fileSuffix.toLowerCase() === tt)
|
||||
// 判断是否为可预览格式的文件
|
||||
if (!canPreview) {
|
||||
@@ -355,10 +363,10 @@ export default {
|
||||
})
|
||||
return
|
||||
}
|
||||
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/view/${record.fileId}?at=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.fileId_dictText}`
|
||||
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/view/${record.file}?at=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.file_dictText}`
|
||||
// 图片预览,使用自己添加的组件
|
||||
if (canPreview && FILE_TYPE_IMGS.includes(fileSuffix)) {
|
||||
this.imageUrl = getFileAccessHttpUrl(record.fileId)
|
||||
this.imageUrl = getFileAccessHttpUrl(record.file)
|
||||
// 获取viewer实例
|
||||
const viewer = this.$el.querySelector('.image').$viewer
|
||||
// 调用show方法进行显示预览图
|
||||
@@ -368,7 +376,7 @@ export default {
|
||||
}
|
||||
// pdf预览
|
||||
if (canPreview && FILE_TYPE_PDF.includes(fileSuffix)) {
|
||||
const url = previewPdf(record.fileId)
|
||||
const url = previewPdf(record.file)
|
||||
window.open(url)
|
||||
return
|
||||
}
|
||||
@@ -378,7 +386,7 @@ export default {
|
||||
// 下载
|
||||
handleDownload (record) {
|
||||
// 下载文件
|
||||
downloadFile(`/sys/common/download/${record.fileId}`, record.fileId_dictText)
|
||||
downloadFile(`/sys/common/download/${record.file}`, record.file_dictText)
|
||||
},
|
||||
// 查看
|
||||
handleLook (record) {
|
||||
|
||||
+6
-6
@@ -16,7 +16,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="unsatisfiedRequire">{{ model.unsatisfiedRequire }}</value>
|
||||
<div>{{ model.unsatisfiedRequire }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@@ -25,7 +25,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="correctionSolution">{{ model.correctionSolution }}</value>
|
||||
<div>{{ model.correctionSolution }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@@ -34,7 +34,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="correctionPeriod">{{ model.correctionPeriod }}</value>
|
||||
<div>{{ model.correctionPeriod_dictText }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@@ -43,7 +43,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="correctionCost">{{ model.correctionCost }}</value>
|
||||
<div>{{ model.correctionCost }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@@ -52,7 +52,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="commonality">{{ model.commonality }}</value>
|
||||
<div>{{ model.commonality }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
@@ -61,7 +61,7 @@
|
||||
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing') }}</label>
|
||||
</a-col>
|
||||
<a-col :sm="16">
|
||||
<value name="commonalityCost">{{ model.commonalityCost }}</value>
|
||||
<div>{{ model.commonalityCost }}</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user