<!--
 * @Author: your name
 * @Date: 2021-10-18 15:05:22
 * @LastEditTime: 2021-11-15 19:29:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /data-show/src/views/EventComparison/profileOfAssociatedAuthors/index.vue
-->
<template>
    <div class="poao-outter">
        <div class="poao-inner">
            <div class="poao-d1" v-for="(item,index) in list" :key="index">
                <v-label-div :title="titles[index]" :showLine="false" :eStyle="{'border-style': 'none'}">
                    <span style="font-size: 18px; color: #3373CC">{{item.key|doStr(10)}}</span>
                </v-label-div>
                <div class="poao-item" style="margin-top: 12px">
                    <div>
                        <img class="m1" src="../../../assets/images/EventInsight/img_glzz.png" />
                        <span class="s1">关联作者数量</span>
                    </div>
                    <span class="s2">{{item.value.useruidCount}}</span>
                </div>
                <div class="poao-item">
                    <div>
                        <img class="m1" src="../../../assets/images/EventInsight/img_ljgj.png" />
                        <span class="s1">累计稿件数量</span>
                    </div>
                    <span class="s2">{{item.value.zhutieCount}}</span>
                </div>
                <div class="poao-item">
                    <div>
                        <img class="m1" src="../../../assets/images/EventInsight/img_glmt.png" />
                        <span class="s1">关联媒体数量</span>
                    </div>
                    <span class="s2">{{item.value.sourceCount}}</span>
                </div>
                <div class="poao-item">
                    <div>
                        <img class="m1" src="../../../assets/images/EventInsight/ic_cbl.png" />
                        <span class="s1">传播量</span>
                    </div>
                    <span class="s2">{{item.value.chuanboCount}}</span>
                </div>
            </div>
           
        </div>

    </div>
</template>

<script>
import {getUserOverview0528C} from "@/api/EventComparison"
export default {
    name: "profileOfAssociatedAuthors",
    data() {
        return {
            form: {
                token: "",
                sRele: ""
            },
            titles: ['关联作者概况', ''],
            list: []
        }
    },
    created() {
        this.initData()
    },
    methods: {
        initData() {
           this.form.token = this.getToken;
           let arr = [];
           this.getEComparison.forEach(ele => {
               arr.push(ele.events_id);
           })
           this.form.sRele = arr.toString();
           this.getData()
       },
       getData() {
           let obj = Object.assign({}, this.getCtime2, this.form);
           getUserOverview0528C(obj).then(res => {
               let data = res.data || [];
               this.list = data;
           })
       }
    }
};
</script>

<style lang="less" scoped>
.poao-outter {
    width: auto;
    height: auto;
    .poao-inner {
        display: flex;
        justify-content: flex-start;
        .poao-d1 {
            width: 472px;
            height: 412px;
            .poao-item {
                width: 440px;
                height: 80px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border: 1px solid #022248;
                border-radius: 2px;
                margin-left: 16px;
                margin-top: 5px;
                .m1 {
                    display: inline-block;
                    width: 54px;
                    height: 54px;
                    margin-left: 12px;
                }
                .s1 {
                    display: inline-block;
                    font-size: 14px;
                    color: #fff;
                    margin-left: 12px;
                }
                .s2 {
                    display: inline-block;
                    font-size: 32px;
                    font-family: Bebas;
                    color: #ffffff;
                    margin-right: 16px;
                }
            }
        }
    }
}
</style>
