[update] 修改bug87597,去掉企标详情页的标准解读按钮
This commit is contained in:
@@ -57,15 +57,6 @@
|
|||||||
<div class="detail-page-process-manuscript-item" v-for="(formItem, formIndex) in form[part]" :key="formItem.id">
|
<div class="detail-page-process-manuscript-item" v-for="(formItem, formIndex) in form[part]" :key="formItem.id">
|
||||||
<div class="detail-page-process-manuscript-title">
|
<div class="detail-page-process-manuscript-title">
|
||||||
<span>{{ formItem.dbFieldTxt }}</span>
|
<span>{{ formItem.dbFieldTxt }}</span>
|
||||||
<a-button v-if="formIndex === 0"
|
|
||||||
type="primary"
|
|
||||||
ghost
|
|
||||||
icon="file-text"
|
|
||||||
v-has="'enterpriseStandard:detail:standardResolutionSheet'"
|
|
||||||
@click="previewStandardResolutionSheet(detailData[formItem.dbFieldName + '_standardSplit'])"
|
|
||||||
:disabled="!detailData[formItem.dbFieldName + '_standardSplit']">
|
|
||||||
{{ $t('enterpriseStandardLibrary.standard.standardResolutionSheet') }}
|
|
||||||
</a-button>
|
|
||||||
</div>
|
</div>
|
||||||
<template v-if="detailData[formItem.dbFieldName]">
|
<template v-if="detailData[formItem.dbFieldName]">
|
||||||
<div class="detail-page-process-manuscript-file" v-for="file in detailData[formItem.dbFieldName + 'List']" :key="file.id">
|
<div class="detail-page-process-manuscript-file" v-for="file in detailData[formItem.dbFieldName + 'List']" :key="file.id">
|
||||||
@@ -116,8 +107,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 标准解读-->
|
|
||||||
<standard-resolution-sheet-modal ref="standardResolutionSheetModal" />
|
|
||||||
<!-- 图片预览容器 -->
|
<!-- 图片预览容器 -->
|
||||||
<div id="images">
|
<div id="images">
|
||||||
<div class="image" v-viewer="{movable: false}">
|
<div class="image" v-viewer="{movable: false}">
|
||||||
@@ -137,7 +126,6 @@ import Vue from 'vue'
|
|||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import { previewPdf } from '@/utils/previewPdf'
|
import { previewPdf } from '@/utils/previewPdf'
|
||||||
import { getFileInfo } from '../../../../api/api'
|
import { getFileInfo } from '../../../../api/api'
|
||||||
import StandardResolutionSheetModal from '@views/standardRegulationLibrary/foreignStandard/detail/modules/StandardResolutionSheetModal'
|
|
||||||
import { kkFilePreview } from '@/utils/kkFilePreview'
|
import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||||
import TextContentModal from './module/TextContentModal'
|
import TextContentModal from './module/TextContentModal'
|
||||||
import { queryStandardInfoByStandardNumber } from '@/utils/util'
|
import { queryStandardInfoByStandardNumber } from '@/utils/util'
|
||||||
@@ -149,7 +137,7 @@ const FILE_TYPE_PDF = 'pdf'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EnterpriseStandardDetail',
|
name: 'EnterpriseStandardDetail',
|
||||||
components: { TextContentModal, StandardResolutionSheetModal },
|
components: { TextContentModal },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
// 展示区域
|
// 展示区域
|
||||||
@@ -330,12 +318,6 @@ export default {
|
|||||||
downloadDraftNoWater (file) {
|
downloadDraftNoWater (file) {
|
||||||
downloadFile(`/sys/common/devEncryptDownloadWithoutWaterMark/${file.id}`, file.fileName)
|
downloadFile(`/sys/common/devEncryptDownloadWithoutWaterMark/${file.id}`, file.fileName)
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* 查看标准解读
|
|
||||||
*/
|
|
||||||
previewStandardResolutionSheet (id) {
|
|
||||||
this.$refs.standardResolutionSheetModal.open(id)
|
|
||||||
},
|
|
||||||
// 查看全部
|
// 查看全部
|
||||||
viewAll (fieldName) {
|
viewAll (fieldName) {
|
||||||
const data = this.detailData[fieldName + '_dictText'] || this.detailData[fieldName]
|
const data = this.detailData[fieldName + '_dictText'] || this.detailData[fieldName]
|
||||||
|
|||||||
Reference in New Issue
Block a user