From 2f53e5754357402859122584325ddd0a4e3105a7 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Fri, 21 Jan 2022 17:27:38 +0800 Subject: [PATCH] zx --- src/api/ThemeAnalizeDec/index.js | 38 ++++ src/components/v-label-table/index.vue | 36 +-- src/views/EventDEC/esprocess/index.vue | 6 +- .../EventDEC/mediaInterpretationED/index.vue | 1 - src/views/ThemeBoard/BigvAnalize/index.vue | 72 +++++- src/views/ThemeBoard/BigvAnalize/opt.js | 80 +++++++ src/views/ThemeBoard/BloggerArea/index.vue | 49 +++- src/views/ThemeBoard/BloggerArea/opt1.js | 83 +++++++ src/views/ThemeBoard/BloggerArea/opt2.js | 94 ++++++++ .../ThemeBoard/CoreTransformUser/index.vue | 172 +++++++------- src/views/ThemeBoard/CoreTransformUser/opt.js | 80 +++++++ src/views/ThemeBoard/EventTransform/index.vue | 214 +++++++++++++++++- src/views/ThemeBoard/ThemeSource/index.vue | 2 +- src/views/ThemeBoard/ThemeSource/opt.js | 4 +- .../ThemeBoard/TransformMethod/index.vue | 84 ++++++- src/views/ThemeBoard/TransformMethod/opt.js | 82 +++++++ src/views/ThemeBoard/WeiboAnalize/index.vue | 2 +- 17 files changed, 972 insertions(+), 127 deletions(-) create mode 100644 src/views/ThemeBoard/BigvAnalize/opt.js create mode 100644 src/views/ThemeBoard/BloggerArea/opt1.js create mode 100644 src/views/ThemeBoard/BloggerArea/opt2.js create mode 100644 src/views/ThemeBoard/CoreTransformUser/opt.js create mode 100644 src/views/ThemeBoard/TransformMethod/opt.js diff --git a/src/api/ThemeAnalizeDec/index.js b/src/api/ThemeAnalizeDec/index.js index b3c9678..b80bd3a 100644 --- a/src/api/ThemeAnalizeDec/index.js +++ b/src/api/ThemeAnalizeDec/index.js @@ -13,6 +13,19 @@ export function getSummarizeMerge(params) { }) } +// 主题分析-事件传播历程 +export function getList(params) { + let obj = Object.assign({action: 'getList', sType: ''}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + // 主题分析-总声量趋势 export function getVolumeTime(params) { let obj = Object.assign({action: 'getVolumeTime', sType: ''}, params) @@ -169,3 +182,28 @@ export function getVAnalyze(params) { }) } +// 主题分析-核心传播网民 +export function getDiffuseZhuTi(params) { + let obj = Object.assign({action: 'getDiffuseZhuTi', sType: ''}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 主题分析-博主区域分布 +export function getRegionWeiBo(params) { + let obj = Object.assign({action: 'getRegionWeiBo', sType: ''}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} diff --git a/src/components/v-label-table/index.vue b/src/components/v-label-table/index.vue index b40f974..69babaf 100644 --- a/src/components/v-label-table/index.vue +++ b/src/components/v-label-table/index.vue @@ -12,21 +12,29 @@ {{label}} +
+ 粉丝数>1000W + {{cont[0]}} +
- >1千万粉 - {{cont}} + 粉丝数>500W + {{cont[1]}}
- >5百万粉 - {{cont}} + 粉丝数>100W + {{cont[2]}}
- >1百万粉 - {{cont}} + 粉丝数>50W + {{cont[3]}}
-
- 数量 - {{percentage}} +
+ 粉丝数>20W + {{cont[4]}} +
+
+ 粉丝数>10W + {{cont[5]}}
@@ -44,8 +52,8 @@ export default { default: "数量" }, cont: { - type: [String, Number], - default: 0 + type: Array, + default: [] }, percentage: { type: String, @@ -75,7 +83,7 @@ export default { border-bottom: 1px solid #0F2A4D; .d1 { display: block; - width: 12%; + width: 14%; .s1 { display: block; width: 66%; @@ -90,7 +98,7 @@ export default { } } .d2 { - width: 13%; + width: 12%; .s1 { display: block; font-size: 12px; @@ -104,7 +112,7 @@ export default { } } .d3 { - width: 12%; + width: 14%; .s1 { display: block; font-size: 12px; diff --git a/src/views/EventDEC/esprocess/index.vue b/src/views/EventDEC/esprocess/index.vue index b72239b..e9fcc94 100644 --- a/src/views/EventDEC/esprocess/index.vue +++ b/src/views/EventDEC/esprocess/index.vue @@ -230,8 +230,8 @@ export default { } } /deep/ .__view { - display: flex !important; - justify-content: flex-start !important; - align-items: center !important; + display: flex; + justify-content: flex-start; + align-items: center; } \ No newline at end of file diff --git a/src/views/EventDEC/mediaInterpretationED/index.vue b/src/views/EventDEC/mediaInterpretationED/index.vue index a6c39bf..cdd2cbf 100644 --- a/src/views/EventDEC/mediaInterpretationED/index.vue +++ b/src/views/EventDEC/mediaInterpretationED/index.vue @@ -116,7 +116,6 @@ export default { getDiffuseZhuTi(obj).then((res) => { this.load = true; let data = res.data; - console.log(data) this.countObj.sum = data.sum; this.countObj.volume = data.volume; this.countObj.total = data.total; diff --git a/src/views/ThemeBoard/BigvAnalize/index.vue b/src/views/ThemeBoard/BigvAnalize/index.vue index 2b98fd2..f42db05 100644 --- a/src/views/ThemeBoard/BigvAnalize/index.vue +++ b/src/views/ThemeBoard/BigvAnalize/index.vue @@ -1,18 +1,17 @@ \ No newline at end of file diff --git a/src/views/ThemeBoard/CoreTransformUser/opt.js b/src/views/ThemeBoard/CoreTransformUser/opt.js new file mode 100644 index 0000000..e04ccd0 --- /dev/null +++ b/src/views/ThemeBoard/CoreTransformUser/opt.js @@ -0,0 +1,80 @@ +/* + * @Author: your name + * @Date: 2021-10-12 14:33:51 + * @LastEditTime: 2021-10-29 19:20:12 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/weiboKol/opt.js + */ +import * as echarts from "echarts"; +function createData(ds=[], colors=[]) { + let arr = []; + for(let i = 0; i < ds.length; i++) { + let ele = ds[i]; + if(ele.value*1 > 0) { + let obj = { value: ele.value*1, name: ele.key, itemStyle: { + color: new echarts.graphic.LinearGradient(0, 1, 1, 0, [{ + //给颜色设置渐变色 前面4个参数,给第一个设置1,第四个设置0 ,就是水平渐变 + //给第一个设置0,第四个设置1,就是垂直渐变 + offset: 0, + color: 'black' + }, { + offset: 1, + color: colors[i] + }]) + }}; + arr.push(obj) + } + } + return arr; +} +export default function createOpt(ds = [], colors= []) { + const data = createData(ds, colors) + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['62%', '74%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 30 + }, + emphasis: { + label: { + show: true, + fontSize: '20', + color: "#ffff", + fontWeight: 'bold', + formatter: function (p) { + return `${p.data.name}\n${p.percent}%\n${p.data.value}` + } + } + }, + labelLine: { + show: false + }, + data: data, + + }, + { + name: 'Access From1', + type: 'pie', + radius: ['79%', '86%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data, + + } + ] + } +} diff --git a/src/views/ThemeBoard/EventTransform/index.vue b/src/views/ThemeBoard/EventTransform/index.vue index 6e15ca6..b404138 100644 --- a/src/views/ThemeBoard/EventTransform/index.vue +++ b/src/views/ThemeBoard/EventTransform/index.vue @@ -1,21 +1,229 @@ \ No newline at end of file diff --git a/src/views/ThemeBoard/ThemeSource/index.vue b/src/views/ThemeBoard/ThemeSource/index.vue index a1fe689..4d718e2 100644 --- a/src/views/ThemeBoard/ThemeSource/index.vue +++ b/src/views/ThemeBoard/ThemeSource/index.vue @@ -1,6 +1,6 @@