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