|
|
|
@ -1,49 +1,41 @@ |
|
|
|
|
<template> |
|
|
|
|
<div v-show="loaded" |
|
|
|
|
class="wrap"> |
|
|
|
|
<div v-show="loaded" class="wrap"> |
|
|
|
|
<!-- 人物详情不展示banner --> |
|
|
|
|
<div v-if="form.articleTemplate !== 23 && !isPeople" |
|
|
|
|
class="banner" |
|
|
|
|
<div v-if="form.articleTemplate !== 23 && !isPeople" class="banner" |
|
|
|
|
:style="{ backgroundImage: form.bannerImg ? ('url(' + form.bannerImg + ')') : '' }"> |
|
|
|
|
{{ form.columnName }} |
|
|
|
|
</div> |
|
|
|
|
<div class="content"> |
|
|
|
|
<Breadcrumb ref="breadcrumb" |
|
|
|
|
:data.sync="routes" /> |
|
|
|
|
<Breadcrumb ref="breadcrumb" :data.sync="routes" /> |
|
|
|
|
<div class="article"> |
|
|
|
|
<div class="left"> |
|
|
|
|
<template v-if="!isPeople"> |
|
|
|
|
<h2>{{ form.title }}</h2> |
|
|
|
|
<div class="meta">{{ form.source && form.source + ' | ' }} {{ form.author && form.author + ' | ' }} {{ form.releaseTime }}</div> |
|
|
|
|
<div class="meta">{{ form.edit && $t('column.edit') + ':' + form.edit }} {{ form.audit && ' | ' + $t('column.auditor') + ':' + form.audit }} {{ form.label && ' | ' + $t('column.label') + ':' + form.label }}</div> |
|
|
|
|
<div class="meta">{{ form.source && form.source + ' | ' }} {{ form.author && form.author + ' | ' }} {{ |
|
|
|
|
form.releaseTime }}</div> |
|
|
|
|
<div class="meta">{{ form.edit && $t('column.edit') + ':' + form.edit }} {{ form.audit && ' | ' + |
|
|
|
|
$t('column.auditor') + ':' + form.audit }} {{ form.label && ' | ' + $t('column.label') + ':' + form.label |
|
|
|
|
}}</div> |
|
|
|
|
</template> |
|
|
|
|
<p v-if="form.summary" |
|
|
|
|
class="brief">{{ form.summary }}</p> |
|
|
|
|
<div class="des" |
|
|
|
|
id="mainBody" |
|
|
|
|
v-html="form.mainBody"></div> |
|
|
|
|
<div v-if="form.fileList && form.fileList.length" |
|
|
|
|
class="annex"> |
|
|
|
|
<p v-if="form.summary" class="brief">{{ form.summary }}</p> |
|
|
|
|
<div class="des" id="mainBody" v-html="form.mainBody"></div> |
|
|
|
|
<div v-if="form.fileList && form.fileList.length" class="annex"> |
|
|
|
|
<h6>{{ $t('column.attachmentDownload') }}</h6> |
|
|
|
|
<ul class="files"> |
|
|
|
|
<li v-for="(file, i) in form.fileList" |
|
|
|
|
:key="i"> |
|
|
|
|
<li v-for="(file, i) in form.fileList" :key="i"> |
|
|
|
|
<span class="name">{{ file.fileName }}</span> |
|
|
|
|
<span class="download" |
|
|
|
|
@click="download(file)">{{$t('column.download')}}</span> |
|
|
|
|
<span class="download" @click="download(file)">{{ $t('column.download') }}</span> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<RightColumns ref="right" |
|
|
|
|
:party="isParty" /> |
|
|
|
|
<RightColumns ref="right" :party="isParty" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import Setting from '@/setting' |
|
|
|
|
import Util from '@/libs/util' |
|
|
|
|
import Breadcrumb from '@/components/breadcrumb' |
|
|
|
|
import RightColumns from '@/components/rightColumns' |
|
|
|
@ -189,12 +181,15 @@ export default { |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
@import './editor.css'; |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
width: 1200px; |
|
|
|
|
|
|
|
|
|
/deep/ .el-breadcrumb { |
|
|
|
|
font-size: 0.98rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.banner { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
@ -206,21 +201,26 @@ export default { |
|
|
|
|
background: url(../../assets/images/intro-bg.png) center center no-repeat; |
|
|
|
|
object-fit: cover; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.article { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
width: 70%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
h2 { |
|
|
|
|
font-size: 1.9rem; |
|
|
|
|
color: #1c1c1c; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.meta { |
|
|
|
|
margin: 1rem 0; |
|
|
|
|
font-size: 0.88rem; |
|
|
|
|
color: #9b9b9b; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.brief { |
|
|
|
|
padding-bottom: 1.5rem; |
|
|
|
|
margin: 1rem 0; |
|
|
|
@ -229,6 +229,7 @@ export default { |
|
|
|
|
color: #606060; |
|
|
|
|
border-bottom: 1px solid #d8d8d8; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.des { |
|
|
|
|
// width: 100%; |
|
|
|
|
// overflow: auto; |
|
|
|
@ -236,27 +237,34 @@ export default { |
|
|
|
|
color: rgb(0, 0, 238); |
|
|
|
|
word-wrap: break-word; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
max-width: 100%; |
|
|
|
|
object-fit: cover; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ul { |
|
|
|
|
padding-left: 40px; |
|
|
|
|
list-style: disc; |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
list-style: inherit; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ol { |
|
|
|
|
padding-left: 40px; |
|
|
|
|
list-style: decimal; |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
list-style: inherit; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.annex { |
|
|
|
|
margin-top: 30px; |
|
|
|
|
|
|
|
|
|
h6 { |
|
|
|
|
padding-left: 8px; |
|
|
|
|
margin-bottom: 20px; |
|
|
|
@ -267,15 +275,18 @@ export default { |
|
|
|
|
color: #333; |
|
|
|
|
border-left: 4px solid #1583ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.name { |
|
|
|
|
margin-right: 8px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.download { |
|
|
|
|
color: #1583ff; |
|
|
|
|
cursor: pointer; |
|
|
|
@ -288,6 +299,7 @@ export default { |
|
|
|
|
width: 98%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@media (max-width: 1200px) { |
|
|
|
|
.article { |
|
|
|
|
/deep/.des { |
|
|
|
@ -297,18 +309,23 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.banner { |
|
|
|
|
font-size: 1.5rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.article { |
|
|
|
|
flex-direction: column; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
width: 100%; |
|
|
|
|
|
|
|
|
|
h2 { |
|
|
|
|
font-size: 1.5rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.article { |
|
|
|
|
.des { |
|
|
|
|
img { |
|
|
|
@ -316,6 +333,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|