update 动态消息详情
This commit is contained in:
@@ -370,7 +370,7 @@ export default {
|
||||
}
|
||||
// pdf预览
|
||||
if (canPreview && FILE_TYPE_PDF.includes(fileSuffix)) {
|
||||
const url = previewPdf(file.response.result.id)
|
||||
const url = previewPdf(file.id)
|
||||
window.open(url)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -7,6 +7,28 @@
|
||||
<div class="detail-title">
|
||||
【{{ $t('standardRegulationLibrary.dynamicMessage.dynamicDetails') }}】{{ detailData.dynamicHeading }}
|
||||
</div>
|
||||
<div class="decoration">
|
||||
<!--浏览量-->
|
||||
<div class="page-view decoration-item">
|
||||
<a-icon type="eye" />
|
||||
{{ detailData.readCount }}
|
||||
</div>
|
||||
<!--编辑人-->
|
||||
<div class="writer decoration-item">
|
||||
<label>{{ $t('docTool.split.editor') }}</label>
|
||||
<span>{{ detailData.writer_dictText }}</span>
|
||||
</div>
|
||||
<!--发布时间-->
|
||||
<div class="writer decoration-item">
|
||||
<label>{{ $t('standardRegulationLibrary.dynamicMessage.releaseTime') }}</label>
|
||||
<span>{{ detailData.releaseTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="container-title">{{ $t('standardRegulationLibrary.dynamicMessage.dynamicDetails') }}</div>
|
||||
<div v-html="detailData.dynamicDetails"></div>
|
||||
<file-echo :file-ids="detailData.dataText" class="file-box"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</internal-detail-page>
|
||||
@@ -15,14 +37,16 @@
|
||||
<script>
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { getDynamicMessageById } from '../../../api/standardRegulationLibraryApi.js'
|
||||
import FileEcho from '../../../components/FileEcho.vue'
|
||||
|
||||
export default {
|
||||
name: 'DynamicMessageDetail',
|
||||
components: { InternalDetailPage },
|
||||
components: { InternalDetailPage, FileEcho },
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
detailData: {}
|
||||
detailData: {},
|
||||
fileList: []
|
||||
}
|
||||
},
|
||||
created () {
|
||||
@@ -63,4 +87,46 @@ export default {
|
||||
color: #1D2129;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.decoration {
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid #E5E6EB;
|
||||
text-align: right;
|
||||
|
||||
&-item {
|
||||
display: inline-block;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.writer {
|
||||
font-size: 14px;
|
||||
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
|
||||
font-weight: 400;
|
||||
|
||||
label {
|
||||
color: #4E5969;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: #86909C;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
margin-top: 24px;
|
||||
|
||||
&-title {
|
||||
font-size: 16px;
|
||||
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
|
||||
font-weight: 550;
|
||||
color: #1D2129;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.file-box {
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<a-form-item :labelCol="lineLabelCol"
|
||||
:wrapperCol="lineWrapperCol"
|
||||
:label="$t('standardRegulationLibrary.dynamicMessage.dataText')">
|
||||
<j-upload v-decorator="['dataText', validatorRules.dataText]" :number="fileNum" :file-type="fileType" />
|
||||
<j-upload v-decorator="['dataText', validatorRules.dataText]" return-id :number="fileNum" :file-type="fileType" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user