<!--
 * @Author: your name
 * @Date: 2021-10-13 08:59:57
 * @LastEditTime: 2021-11-08 17:53:28
 * @LastEditors: Please set LastEditors
 * @Description: 热点事件传播导向
 * @FilePath: /data-show/src/views/EventDetails/hotEventPropagationOriented/index.vue
-->

<template>
    <div class="hepo-outter">
        <v-label-div title="热点事件传播导向" />
        <div class="hepo-inner">
            <v-echarts :opt="opt"></v-echarts>
        </div>
    </div>
</template>

<script>
import {getPropagationDirection0528} from '@/api/EventDetails'
import createOpt from "./opt"
export default {
    name: "MEDHotEventPropagationOriented",
    props: ["brand"],
    data() {
        return {
            opt: createOpt(),
            form: {
                sBrand: "",
                token: ""
            }
        }
    },
    created() {
        this.form.token = this.getToken;
        this.form.sBrand = this.getBrand.brandname || '奥迪';
        this.getDdta();
    },
    methods:{
        // 获取后台数据
        getDdta() {
            let obj = Object.assign({}, this.getCtime2, this.form);
            getPropagationDirection0528(obj).then(res => {
                let data = res.data;
                let population = data.links;
                let citylist = data.data;
                this.opt = createOpt(citylist, population)
            })

        }
    }
}
</script>

<style lang="less" scoped>
.hepo-outter {
    width: 620px;
    height: 560px;
    border: 2px solid #0F2A4D;
    .hepo-inner {
        width: 100%;
        height: calc(100% - 48px);
    }
}
</style>
