|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!--
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-18 09:34:53
|
|
|
|
|
* @LastEditTime: 2021-10-19 17:10:48
|
|
|
|
|
* @LastEditTime: 2021-11-02 17:44:03
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/EventInsight/IndustryTOPHE/index.vue
|
|
|
|
@ -11,17 +11,23 @@
|
|
|
|
|
<div class="itp-outter">
|
|
|
|
|
<v-label-div title="行业TOP热点事件">
|
|
|
|
|
</v-label-div>
|
|
|
|
|
<v-table :columns="columns" :data="tbData" :pagination="false">
|
|
|
|
|
<a slot="a" slot-scope="text" @click="goDetails">{{ text }}</a>
|
|
|
|
|
</v-table>
|
|
|
|
|
<div class="itp-inner">
|
|
|
|
|
<dv-scroll-board :config="config" :style="{ width: '100%', height: '100%' }" @click="handlerSs"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getHotEventsList} from "@/api/EventInsight"
|
|
|
|
|
export default {
|
|
|
|
|
name: "industryTOPHE",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
form: {
|
|
|
|
|
token: ""
|
|
|
|
|
},
|
|
|
|
|
config: {},
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: "事件标题",
|
|
|
|
@ -57,9 +63,36 @@ export default {
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goDetails() {
|
|
|
|
|
this.$router.push({path: '/eventDEC'})
|
|
|
|
|
},
|
|
|
|
|
getData() {
|
|
|
|
|
let obj = Object.assign({}, this.getCommTime, this.form);
|
|
|
|
|
getHotEventsList(obj).then(res => {
|
|
|
|
|
let data = res.data || [];
|
|
|
|
|
let arr = [];
|
|
|
|
|
data.forEach(ele => {
|
|
|
|
|
let o = [`<span style="cursor: pointer;">${ele.events_title}</span>`, ele.events_influence, ele.events_type, ele.events_brand];
|
|
|
|
|
arr.push(o)
|
|
|
|
|
})
|
|
|
|
|
this.config = {
|
|
|
|
|
headerBGC: "#0c203b",
|
|
|
|
|
oddRowBGC: "#173b6d",
|
|
|
|
|
evenRowBGC: "rgba(69, 149, 244, 0)",
|
|
|
|
|
columnWidth: [900],
|
|
|
|
|
rowNum: 6,
|
|
|
|
|
header: ["事件标题", "影响力","类型","关联品牌"],
|
|
|
|
|
data: arr,
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handlerSs() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
@ -71,5 +104,9 @@ export default {
|
|
|
|
|
height: 392px;
|
|
|
|
|
border: 2px solid #0f2a4d;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
.itp-inner {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 48px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|