You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
237 lines
7.3 KiB
237 lines
7.3 KiB
<!--
|
|
* @Author: your name
|
|
* @Date: 2021-10-19 19:45:01
|
|
* @LastEditTime: 2021-11-17 11:02:04
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /data-show/src/views/EventDEC/esprocess/index.vue
|
|
-->
|
|
<template>
|
|
<div class="esp-outter" v-loading="load">
|
|
<v-label-div title="事件传播历程">
|
|
</v-label-div>
|
|
<div class="coe-ts">
|
|
<div class="coe-ts-d1" @click="goL"><img src="../../../assets/images/EventInsight/img_zuo.png" /></div>
|
|
<div class="coe-ts-d2">
|
|
<vue-scroll ref="vs">
|
|
<div class="dd1-label">
|
|
<div class="d1x">新车上市</div>
|
|
<div class="d2">状态:事件发生</div>
|
|
<div class="d3">2021-06-01 11:26</div>
|
|
</div>
|
|
<template v-for="(item,index) in list">
|
|
<div class="dd1-item" :key="index">
|
|
<img class="m1" :src="index % 2 === 0 ? m2 : m1" :style="index % 2 === 0 ? 'margin-top: 8.2rem' : ''" />
|
|
<div class="dd1-fen"></div>
|
|
<div class="dt-d1" :style="index % 2 === 0 ? 'margin-top: 8.6rem' : ''">
|
|
<div class="d1" :style="index % 2 === 0 ? 'color: #3373CC' : 'color:#CC7733'" @click="openUrl(item._source.url)">{{item._source.title|doStr(30)}}</div>
|
|
<div class="d2">{{item._source.source}}</div>
|
|
<div class="d3">{{item._source.sourcetime}}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</vue-scroll>
|
|
</div>
|
|
<div class="coe-ts-d1" @click="goR"><img src="../../../assets/images/EventInsight/img_xan.png" /></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getEventSpreadProcess0528 } from "@/api/EventdEC";
|
|
export default {
|
|
name: "esprocess",
|
|
props: {
|
|
id: {
|
|
type: String,
|
|
default: "",
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
load: false,
|
|
form: {
|
|
sRele: "",
|
|
token: "",
|
|
sTimeType: "",
|
|
},
|
|
list: [],
|
|
x: 0,
|
|
m1: require("../../../assets/images/EventInsight/img_ct.png"),
|
|
m2: require("../../../assets/images/EventInsight/img_lt.png"),
|
|
};
|
|
},
|
|
created() {
|
|
this.form.token = this.getToken;
|
|
this.form.sRele = this.id;
|
|
this.getDdta();
|
|
},
|
|
methods: {
|
|
getDdta() {
|
|
let obj = Object.assign({}, this.form);
|
|
getEventSpreadProcess0528(obj).then((res) => {
|
|
this.load = true;
|
|
let data = res.data || [];
|
|
this.list = data;
|
|
this.load = false;
|
|
});
|
|
},
|
|
goback() {
|
|
this.$router.go(-1);
|
|
},
|
|
openUrl(url) {
|
|
window.open(url);
|
|
},
|
|
goL() {
|
|
const {h} = this.$refs.vs.getScrollProcess();
|
|
if(h === 0) return;
|
|
const { scrollLeft } = this.$refs.vs.getPosition();
|
|
this.x = scrollLeft;
|
|
this.x -= 150;
|
|
this.$refs.vs.scrollTo(
|
|
{
|
|
x: this.x,
|
|
},
|
|
300
|
|
);
|
|
},
|
|
goR() {
|
|
const {h} = this.$refs.vs.getScrollProcess();
|
|
if(h === 1) return;
|
|
const { scrollLeft } = this.$refs.vs.getPosition();
|
|
this.x = scrollLeft;
|
|
this.x += 150;
|
|
this.$refs.vs.scrollTo(
|
|
{
|
|
x: this.x,
|
|
},
|
|
300
|
|
);
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.esp-outter {
|
|
width: 100%;
|
|
height: 460px;
|
|
border: 2px solid #0f2a4d;
|
|
margin-top: 16px;
|
|
overflow: hidden;
|
|
.coe-ts {
|
|
position: relative;
|
|
width: 100%;
|
|
padding: 0px 16px;
|
|
height: calc(100% - 48px);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.coe-ts-s1 {
|
|
position: absolute;
|
|
color: #fff;
|
|
top: 16px;
|
|
left: 16px;
|
|
font-size: 16px;
|
|
color: #3373cc;
|
|
}
|
|
.coe-ts-d2 {
|
|
width: 1726px;
|
|
height: 400px;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
position: relative;
|
|
.dd1-label {
|
|
.d1x {
|
|
width: 120px;
|
|
height: 120px;
|
|
background-image: url("../../../assets/images/EventInsight/img_xlvq.png");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
font-size: 14px;
|
|
color: #b0deff;
|
|
text-align: center;
|
|
line-height: 120px;
|
|
}
|
|
.d1 {
|
|
width: 120px;
|
|
height: 120px;
|
|
background-image: url("../../../assets/images/EventInsight/img_xlq.png");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
font-size: 14px;
|
|
color: #b0deff;
|
|
text-align: center;
|
|
line-height: 120px;
|
|
}
|
|
.d2 {
|
|
font-size: 16px;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
.d3 {
|
|
font-size: 14px;
|
|
font-family: Bebas;
|
|
color: #616974;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.dd1-fen {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: #004877;
|
|
left: 0px;
|
|
top: 136px;
|
|
}
|
|
.dd1-item {
|
|
position: relative;
|
|
width: 260px;
|
|
height: 320px;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
padding-left: 84px;
|
|
justify-content: flex-start;
|
|
.m1 {
|
|
height: 148px;
|
|
}
|
|
.dt-d1 {
|
|
margin-left: 18px;
|
|
.d1 {
|
|
width: 120px;
|
|
padding-top: 16px;
|
|
height: 88px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
.d2 {
|
|
font-size: 14px;
|
|
color: #fff;
|
|
}
|
|
.d3 {
|
|
font-size: 13px;
|
|
font-family: Bebas;
|
|
color: #616974;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.coe-ts-d1 {
|
|
width: 32px;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
img {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/deep/ .__view {
|
|
display: flex !important;
|
|
justify-content: flex-start !important;
|
|
align-items: center !important;
|
|
}
|
|
</style> |