2021-05-07 08:26:51 +08:00
|
|
|
<template>
|
|
|
|
<el-row class="wrapper">
|
|
|
|
<el-col :xs="24" :sm="24" :xl="24" style="margin: 0 auto;">
|
|
|
|
<el-carousel :interval="5000" type="card" height="256px">
|
|
|
|
<el-carousel-item v-for="article in announcements.articles" :key="article.idArticle" style="padding-bottom: 1rem;">
|
2021-05-07 08:38:24 +08:00
|
|
|
<el-card style="height: 250px;">
|
2021-05-07 08:26:51 +08:00
|
|
|
<div class="card-body d-flex flex-column">
|
|
|
|
<el-link rel="nofollow" @click="onRouter('article',article.articleLink)" :underline="false"
|
2021-05-07 08:38:24 +08:00
|
|
|
style="margin-bottom: .7rem;">
|
2021-05-07 08:26:51 +08:00
|
|
|
<h4>
|
|
|
|
{{ article.articleTitle }}
|
2021-05-07 08:38:24 +08:00
|
|
|
<el-tag
|
|
|
|
style="margin-left: 0.5rem;"
|
|
|
|
size="mini"
|
|
|
|
effect="plain">
|
|
|
|
# 公告
|
|
|
|
</el-tag>
|
2021-05-07 08:26:51 +08:00
|
|
|
</h4>
|
|
|
|
</el-link>
|
|
|
|
<div class="text-muted article-summary-md">{{ article.articlePreviewContent }}</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-carousel-item>
|
|
|
|
</el-carousel>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "announcementList",
|
|
|
|
props: {
|
|
|
|
announcements: {
|
|
|
|
type: Object
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onRouter(name, data) {
|
|
|
|
this.$router.push({
|
|
|
|
path: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|