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.

69 lines
1.7 KiB

<!--
* @Author: your name
* @Date: 2021-10-18 09:07:18
* @LastEditTime: 2021-11-15 11:53:24
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/EventInsight/hotEventPropagationOriented/index.vue
-->
<template>
<div class="hpo-outter" v-loading="load">
<v-label-div title="热点事件传播导向">
<v-btn @click="goPath">事件对比</v-btn>
</v-label-div>
<div class="hpo-inner">
<v-echarts :opt="opt"></v-echarts>
</div>
</div>
</template>
<script>
import {getPropagationDirection0528} from "@/api/EventInsight"
import createOpt from "./opt"
export default {
name: "hotEventPO",
data() {
return {
load: false,
form: {
token: ""
},
opt: createOpt()
}
},
created() {
this.form.token = this.getToken;
this.getData();
},
methods: {
goPath() {
this.$router.push({path: '/eventComparison'})
},
// 获取后台数据
getData() {
this.load = true;
let obj = Object.assign({}, this.getCtime2, this.form);
getPropagationDirection0528(obj).then(res => {
let data = res.data;
let d1 = data.data;
let d2 = data.links;
this.opt = createOpt(d1, d2);
this.load = false;
})
}
}
};
</script>
<style lang="less" scoped>
.hpo-outter {
width: 100%;
height: 560px;
border: 2px solid #0f2a4d;
.hpo-inner {
width: 100%;
height: calc(100% - 48px);
}
}
</style>