|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!--
|
|
|
|
|
* @Author: xw
|
|
|
|
|
* @Date: 2021-10-11 18:42:58
|
|
|
|
|
* @LastEditTime: 2021-10-28 16:21:27
|
|
|
|
|
* @LastEditTime: 2021-10-29 19:16:45
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: 品牌数据
|
|
|
|
|
* @FilePath: /data-show/src/views/BrandInsight/brandData/index.vue
|
|
|
|
@ -18,10 +18,10 @@
|
|
|
|
|
</div>
|
|
|
|
|
<a-popover title="传播数据">
|
|
|
|
|
<template slot="content">
|
|
|
|
|
<div class="pd-item" v-for="(item,index) in countArr" :key="index">
|
|
|
|
|
<span>{{item.key}}</span>
|
|
|
|
|
<span>{{item.value}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pd-item" v-for="(item,index) in countArr" :key="index">
|
|
|
|
|
<span>{{item.key}}</span>
|
|
|
|
|
<span>{{item.value}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<span class="s2">{{count}}</span>
|
|
|
|
|
</a-popover>
|
|
|
|
@ -31,17 +31,23 @@
|
|
|
|
|
<img class="m1" src="../../../assets/images/BrandInsight/ic_dx.png" />
|
|
|
|
|
<span class="s1">舆情整体调性</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="s2">
|
|
|
|
|
<a-tooltip placement="top" :title="'正面:'+ affObj.a">
|
|
|
|
|
<a-popover title="传播数据">
|
|
|
|
|
<template slot="content">
|
|
|
|
|
<template v-for="(item,index) in affObj">
|
|
|
|
|
<div class="pd-item" :key="index" v-if="index != 'z'">
|
|
|
|
|
<span v-if="index === 'a'">正面</span>
|
|
|
|
|
<span v-if="index === 'b'">中性</span>
|
|
|
|
|
<span v-if="index === 'c'">负面</span>
|
|
|
|
|
<span>{{item}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<span class="s2">
|
|
|
|
|
<span class="s2-s1" :style="{width: affObj.a/affObj.z * width +'px'}"></span>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
<a-tooltip placement="top" :title="'中性:'+ affObj.b">
|
|
|
|
|
<span class="s2-s1" :style="{width: affObj.b/affObj.z * width + 'px', background: '#54BF93'}"></span>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
<a-tooltip placement="top" :title="'负面:'+ affObj.c">
|
|
|
|
|
<span class="s2-s1" :style="{width: affObj.c/affObj.z * width + 'px',background: '#CC9D12'}"></span>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</a-popover>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -89,7 +95,7 @@ export default {
|
|
|
|
|
getBrandOverviewCount0528(obj)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.count = res.data.count;
|
|
|
|
|
this.countArr = res.data.data || []
|
|
|
|
|
this.countArr = res.data.data || [];
|
|
|
|
|
resolve(true);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
@ -176,11 +182,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.pd-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-bottom: 1px solid #173b6d;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-bottom: 1px solid #173b6d;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|