update code
parent
1d9c332b61
commit
046d367285
|
@ -481,7 +481,7 @@ export default {
|
|||
|
||||
<style lang="less">
|
||||
.head-title{
|
||||
z-index: 9999;
|
||||
z-index: 999;
|
||||
}
|
||||
.main-header {
|
||||
.head-title-tab {
|
||||
|
|
|
@ -1,16 +1,26 @@
|
|||
<template>
|
||||
<MyDialog v-if="show" v-model="show" width="1600px" height="850px" class="mag-detail-dialog">
|
||||
<template slot="title">{{info.title }}</template>
|
||||
<template slot="title">{{ info.title }}</template>
|
||||
<div style="text-align: center;color:dodgerblue;">
|
||||
{{ info.name }} - {{ info.topicName }} - {{ info.deptName }} - {{ info.authorName }} - {{ info.createTime|formatDateTime }}
|
||||
{{ info.name }} - {{ info.topicName }} - {{ info.deptName }} - {{ info.authorName }} - {{
|
||||
info.createTime | formatDateTime }}
|
||||
</div>
|
||||
<div class="scroll" style="max-height: calc(100% - 100px);overflow: auto;">
|
||||
<div style="display: flex;justify-content: center;">
|
||||
<el-image v-if="info.imageUrl" class="info-image" :src="'/jhapi' + info.imageUrl + '.min.jpg'"
|
||||
:preview-src-list="['/jhapi' + info.imageUrl]"></el-image>
|
||||
|
||||
|
||||
<div v-if="info.imageUrl && info.imageUrl.length > 0" style="width:calc(100% - 16px);">
|
||||
<el-image v-for="(item, idx) in info.imageUrl" :key="idx" class="info-image" :src="item + '.min.jpg'" :preview-src-list="[item]"></el-image>
|
||||
</div>
|
||||
<!--
|
||||
<el-carousel >
|
||||
<el-carousel-item v-for="(item, idx) in info.imageUrl" :key="idx">
|
||||
<el-image class="info-image" :src="item + '.min.jpg'" :preview-src-list="[item]"></el-image>
|
||||
</el-carousel-item>
|
||||
</el-carousel>
|
||||
-->
|
||||
|
||||
<pre v-html="info.content" style="white-space: break-spaces;"></pre>
|
||||
</div>
|
||||
<pre v-html="info.content" style="white-space: break-spaces;"></pre>
|
||||
</div>
|
||||
</MyDialog>
|
||||
</template>
|
||||
|
||||
|
@ -27,17 +37,17 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
show: false,
|
||||
info:{},
|
||||
info: {},
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
showDialog(data) {
|
||||
methods: {
|
||||
showDialog(data) {
|
||||
this.show = true
|
||||
this.info=data;
|
||||
this.info = data;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -52,15 +62,18 @@ export default {
|
|||
</style>
|
||||
<style lang="less">
|
||||
.mag-detail-dialog {
|
||||
.popup-project-introduction-con{
|
||||
.popup-project-introduction-con {
|
||||
height: 100%;
|
||||
.popup-project-introduction-details{
|
||||
|
||||
.popup-project-introduction-details {
|
||||
height: 100%;
|
||||
.quality-table.special-table{
|
||||
|
||||
.quality-table.special-table {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup-project-introduction-min {
|
||||
transform: translateY(100px);
|
||||
}
|
||||
|
@ -77,13 +90,22 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.el-image.info-image{
|
||||
.el-carousel.el-carousel--horizontal{
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
.el-image__inner{
|
||||
width:auto !important;
|
||||
}
|
||||
.el-carousel__arrow i{
|
||||
font-size: 40px;
|
||||
}
|
||||
}
|
||||
.el-image.info-image {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding:6px;
|
||||
padding: 6px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -11,8 +11,8 @@
|
|||
<el-table-column label="作者" align="center" prop="authorName" />
|
||||
<el-table-column label="期刊主图" align="center" prop="imageUrl">
|
||||
<template slot-scope="{row}">
|
||||
<el-image v-if="row.imageUrl" class="row-image" :src="'/jhapi' + row.imageUrl + '.min.jpg'"
|
||||
:preview-src-list="['/jhapi' + row.imageUrl]"></el-image>
|
||||
<el-image v-if="row.imageUrl && row.imageUrl.length>0" class="row-image" :src="row.imageUrl[0] + '.min.jpg'"
|
||||
:preview-src-list="row.imageUrl"></el-image>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="标题" align="center" prop="title">
|
||||
|
@ -65,7 +65,9 @@ export default {
|
|||
|
||||
methods: {
|
||||
doRowClick(row,col,e){
|
||||
this.$refs.dlg.showDialog(row);
|
||||
if(e.target.className.indexOf("el-image__inner")==-1){
|
||||
this.$refs.dlg.showDialog(row);
|
||||
}
|
||||
},
|
||||
handleCurrentChange(n) {
|
||||
this.index = n;
|
||||
|
@ -98,7 +100,9 @@ export default {
|
|||
if (tmps && tmps.length > 0) {
|
||||
tmps = tryToJson(tmps, []);
|
||||
if (tmps.length > 0) {
|
||||
it.imageUrl = tmps[0];
|
||||
it.imageUrl = tmps.map(it=>{
|
||||
return "/jhapi"+it;
|
||||
});
|
||||
}
|
||||
}
|
||||
return it;
|
||||
|
|
Loading…
Reference in New Issue