|
@@ -3,8 +3,8 @@
|
|
|
<div class="text-container" :style="{height:height,width:width}">
|
|
|
<ul class="allDemeanor">
|
|
|
<li v-for="(item,index) in demeanorList" class="info">
|
|
|
- <span style="padding-left: 20px; display: inline-block; width: 20%;">{{parseTime(item.createTime, '{yyyy}-{mm}-{dd}')}}</span>
|
|
|
- <span style="padding-left: 20px; display: inline-block; width: 80%;">{{item.demeanorTitle}}</span>
|
|
|
+ <span style="padding-left: 20px; display: inline-block; width: 20%;">{{parseTime(item.date, '{yyyy}-{mm}-{dd}')}}</span>
|
|
|
+ <span style="padding-left: 20px; display: inline-block; width: 80%;" id="demeanor-title" @click="handleSee(item.url)">{{item.title}}</span>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script scoped>
|
|
|
- import { listDemeanor } from "@/api/branch/demeanor";
|
|
|
+ import { listDemeanorNoPage } from "@/api/branch/demeanor";
|
|
|
|
|
|
const totalDuration = 2000;
|
|
|
|
|
@@ -37,14 +37,17 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.listDemeanor();
|
|
|
+ this.listDemeanorNoPage();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSee(url) {
|
|
|
+ window.open(process.env.VUE_APP_BASE_API + url);
|
|
|
+ },
|
|
|
/** 查询先进风采列表 */
|
|
|
- listDemeanor() {
|
|
|
+ listDemeanorNoPage() {
|
|
|
this.queryParams.isPinned = 1;
|
|
|
- listDemeanor(this.queryParams).then(response => {
|
|
|
- this.demeanorList = response.rows;
|
|
|
+ listDemeanorNoPage(this.queryParams).then(response => {
|
|
|
+ this.demeanorList = response.data;
|
|
|
//判断是否需要滚动
|
|
|
if (this.demeanorList.length > 4) {
|
|
|
//设置文字滚动一轮时间
|
|
@@ -70,6 +73,14 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+ #demeanor-title {
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #demeanor-title:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
.text-container {
|
|
|
line-height: 30px;
|
|
|
overflow: hidden;
|