From a38be158c60ff976dc6c3d886474474870ef9ae6 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Mon, 29 Aug 2022 17:16:58 +0800 Subject: [PATCH] zx --- src/api/KeyMediaSpecial/index.js | 146 ++++++++ src/api/SpecialAnalize/index.js | 218 ++++++++++++ src/router/index.js | 12 + src/views/KeyMediaSpecial/index.vue | 324 ++++++++++++++++++ .../popularEventsList/index.vue | 107 ++++++ .../KeyMediaSpecial/spreadTOPmodels/index.vue | 81 +++++ .../KeyMediaSpecial/spreadTOPmodels/opt.js | 111 ++++++ .../KeyMediaSpecial/subscribeSeries/index.vue | 80 +++++ .../KeyMediaSpecial/subscribeSeries/opt.js | 111 ++++++ .../KeyMediaSpecial/weiboCharacters/index.vue | 194 +++++++++++ .../KeyMediaSpecial/weiboCharacters/opt.js | 72 ++++ .../weiboCharactersStoken/index.vue | 73 ++++ .../weiboCommunicationTrend/index.vue | 134 ++++++++ .../weiboCommunicationTrend/opt.js | 116 +++++++ .../weiboCommunicationTrendLong/index.vue | 134 ++++++++ .../weiboCommunicationTrendLong/opt.js | 116 +++++++ .../index.vue | 38 ++ .../weiboCommunicationTrendStoken/index.vue | 38 ++ .../weiboContentTOPVolume/index.vue | 175 ++++++++++ .../v-ranking-kmd/index.vue | 236 +++++++++++++ .../weiboContentTOPVolumeStoken/index.vue | 66 ++++ .../weiboContentType/index.vue | 132 +++++++ .../KeyMediaSpecial/weiboContentType/opt.js | 72 ++++ .../weiboContentTypeStoken/index.vue | 50 +++ .../weiboUserActiveArea/index.vue | 113 ++++++ .../weiboUserActiveArea/opt1.js | 83 +++++ .../weiboUserActiveArea/opt2.js | 94 +++++ .../weiboUserActiveAreaStoken/index.vue | 49 +++ .../KeyMediaSpecial/weiboWordCloud/index.vue | 89 +++++ .../KeyMediaSpecial/weiboWordCloud/opt.js | 215 ++++++++++++ .../weiboWordCloudStoken/index.vue | 39 +++ src/views/SpecialAnalize/index.vue | 1 + src/views/SpecialAnalize/tbEvent.js | 5 +- .../affectionType/index.vue | 74 ++++ .../SpecialAnalizeBoard/affectionType/opt.js | 150 ++++++++ .../contentDirection/index.vue | 85 +++++ .../contentDirection/v-ranking-fhtd/index.vue | 230 +++++++++++++ .../hotWordCloud/index.vue | 65 ++++ .../SpecialAnalizeBoard/hotWordCloud/opt.js | 215 ++++++++++++ src/views/SpecialAnalizeBoard/index.vue | 299 ++++++++++++++++ .../modelPopularity/index.vue | 76 ++++ .../modelPopularity/v-ranking-mpth/index.vue | 230 +++++++++++++ .../modelPopularityStoken/index.vue | 39 +++ .../SpecialAnalizeBoard/saleForm/index.vue | 60 ++++ src/views/SpecialAnalizeBoard/saleForm/opt.js | 87 +++++ .../SpecialAnalizeBoard/sourceDis/index.vue | 137 ++++++++ .../SpecialAnalizeBoard/sourceDis/opt.js | 72 ++++ .../sourceTopTen/index.vue | 137 ++++++++ .../SpecialAnalizeBoard/sourceTopTen/opt.js | 138 ++++++++ .../transformTopMedia/index.vue | 99 ++++++ .../v-ranking-fhtd/index.vue | 235 +++++++++++++ .../weiboCharacters/index.vue | 180 ++++++++++ .../weiboCharacters/opt.js | 72 ++++ .../weiboCharactersStoken/index.vue | 73 ++++ .../weiboCommunicationTrend/index.vue | 84 +++++ .../weiboCommunicationTrend/opt.js | 116 +++++++ .../weiboCommunicationTrendStoken/index.vue | 38 ++ .../weiboContentType/index.vue | 119 +++++++ .../weiboContentType/opt.js | 72 ++++ .../weiboContentTypeStoken/index.vue | 50 +++ .../weiboUserActiveArea/index.vue | 103 ++++++ .../weiboUserActiveArea/opt1.js | 83 +++++ .../weiboUserActiveArea/opt2.js | 94 +++++ .../weiboUserActiveAreaStoken/index.vue | 49 +++ .../weiboWordCloud/index.vue | 62 ++++ .../SpecialAnalizeBoard/weiboWordCloud/opt.js | 215 ++++++++++++ .../weiboWordCloudStoken/index.vue | 39 +++ .../wyAffectionPercent/index.vue | 82 +++++ .../wyAffectionPercent/opt.js | 72 ++++ .../SpecialAnalizeBoard/wyTransform/index.vue | 83 +++++ .../SpecialAnalizeBoard/wyTransform/opt.js | 116 +++++++ src/views/SpecialAnalizeChoose/index.vue | 2 +- 72 files changed, 7754 insertions(+), 2 deletions(-) create mode 100644 src/api/KeyMediaSpecial/index.js create mode 100644 src/views/KeyMediaSpecial/index.vue create mode 100644 src/views/KeyMediaSpecial/popularEventsList/index.vue create mode 100644 src/views/KeyMediaSpecial/spreadTOPmodels/index.vue create mode 100644 src/views/KeyMediaSpecial/spreadTOPmodels/opt.js create mode 100644 src/views/KeyMediaSpecial/subscribeSeries/index.vue create mode 100644 src/views/KeyMediaSpecial/subscribeSeries/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboCharacters/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboCharacters/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboCharactersStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrend/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrend/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrendLong/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrendLong/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrendLongStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboCommunicationTrendStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboContentTOPVolume/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboContentTOPVolume/v-ranking-kmd/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboContentTOPVolumeStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboContentType/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboContentType/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboContentTypeStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboUserActiveArea/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboUserActiveArea/opt1.js create mode 100644 src/views/KeyMediaSpecial/weiboUserActiveArea/opt2.js create mode 100644 src/views/KeyMediaSpecial/weiboUserActiveAreaStoken/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboWordCloud/index.vue create mode 100644 src/views/KeyMediaSpecial/weiboWordCloud/opt.js create mode 100644 src/views/KeyMediaSpecial/weiboWordCloudStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/affectionType/index.vue create mode 100644 src/views/SpecialAnalizeBoard/affectionType/opt.js create mode 100644 src/views/SpecialAnalizeBoard/contentDirection/index.vue create mode 100644 src/views/SpecialAnalizeBoard/contentDirection/v-ranking-fhtd/index.vue create mode 100644 src/views/SpecialAnalizeBoard/hotWordCloud/index.vue create mode 100644 src/views/SpecialAnalizeBoard/hotWordCloud/opt.js create mode 100644 src/views/SpecialAnalizeBoard/index.vue create mode 100644 src/views/SpecialAnalizeBoard/modelPopularity/index.vue create mode 100644 src/views/SpecialAnalizeBoard/modelPopularity/v-ranking-mpth/index.vue create mode 100644 src/views/SpecialAnalizeBoard/modelPopularityStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/saleForm/index.vue create mode 100644 src/views/SpecialAnalizeBoard/saleForm/opt.js create mode 100644 src/views/SpecialAnalizeBoard/sourceDis/index.vue create mode 100644 src/views/SpecialAnalizeBoard/sourceDis/opt.js create mode 100644 src/views/SpecialAnalizeBoard/sourceTopTen/index.vue create mode 100644 src/views/SpecialAnalizeBoard/sourceTopTen/opt.js create mode 100644 src/views/SpecialAnalizeBoard/transformTopMedia/index.vue create mode 100644 src/views/SpecialAnalizeBoard/transformTopMedia/v-ranking-fhtd/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboCharacters/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboCharacters/opt.js create mode 100644 src/views/SpecialAnalizeBoard/weiboCharactersStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboCommunicationTrend/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboCommunicationTrend/opt.js create mode 100644 src/views/SpecialAnalizeBoard/weiboCommunicationTrendStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboContentType/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboContentType/opt.js create mode 100644 src/views/SpecialAnalizeBoard/weiboContentTypeStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboUserActiveArea/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt1.js create mode 100644 src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt2.js create mode 100644 src/views/SpecialAnalizeBoard/weiboUserActiveAreaStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboWordCloud/index.vue create mode 100644 src/views/SpecialAnalizeBoard/weiboWordCloud/opt.js create mode 100644 src/views/SpecialAnalizeBoard/weiboWordCloudStoken/index.vue create mode 100644 src/views/SpecialAnalizeBoard/wyAffectionPercent/index.vue create mode 100644 src/views/SpecialAnalizeBoard/wyAffectionPercent/opt.js create mode 100644 src/views/SpecialAnalizeBoard/wyTransform/index.vue create mode 100644 src/views/SpecialAnalizeBoard/wyTransform/opt.js diff --git a/src/api/KeyMediaSpecial/index.js b/src/api/KeyMediaSpecial/index.js new file mode 100644 index 0000000..04a7410 --- /dev/null +++ b/src/api/KeyMediaSpecial/index.js @@ -0,0 +1,146 @@ +import httpService from "@/request" + +//首页点击 - 洞察详情 +export function getCountAndaffections(params) { + let obj = Object.assign({action: 'getCountAndaffections', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 车型TOP +export function getCartypeTop10(params) { + let obj = Object.assign({action: 'getCartypeTop10', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 精华分布 +export function getIsjingGroupBy(params) { + let obj = Object.assign({action: 'getIsjingGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 用户区域 +export function getUserRegionGroupBy(params) { + let obj = Object.assign({action: 'getUserRegionGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 是否认证 +export function getUserAttestationGroupBy(params) { + let obj = Object.assign({action: 'getUserAttestationGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 传播趋势 +export function getTimeCount(params) { + let obj = Object.assign({action: 'getTimeCount', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 内容类型 +export function getWtypeWeiBo0528(params) { + let obj = Object.assign({action: 'getWtypeWeiBo0528', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 关注车型TOP +export function getGuanZhuSeriesname(params) { + let obj = Object.assign({action: 'getGuanZhuSeriesname', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 图文分布 +export function getPicboolGroupBy(params) { + let obj = Object.assign({action: 'getPicboolGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 热门词云 +export function getHotWord(params) { + let obj = Object.assign({action: 'getHotWord', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 消息数据 +export function getList(params) { + let obj = Object.assign({action: 'getList', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +//首页点击 - 内容top声量 +export function getDirectWeiBo0528(params) { + let obj = Object.assign({action: 'getDirectWeiBo0528', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} \ No newline at end of file diff --git a/src/api/SpecialAnalize/index.js b/src/api/SpecialAnalize/index.js index 9a96826..aae286d 100644 --- a/src/api/SpecialAnalize/index.js +++ b/src/api/SpecialAnalize/index.js @@ -47,4 +47,222 @@ export function delSchemeDataSpecial(params) { 'content-type': 'application/x-www-form-urlencoded' } }) +} + +// 专项分析 - 数据详情 +export function getCountAndaffections(params) { + let obj = Object.assign({action: 'getCountAndaffections', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 数据详情 +export function getTimeCount(params) { + let obj = Object.assign({action: 'getTimeCount', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 传播top阵地 +export function getSourceTop(params) { + let obj = Object.assign({action: 'getSourceTop', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 渠道分布 +export function getSourcetype(params) { + let obj = Object.assign({action: 'getSourcetype', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 人物画像性别 +export function getAttestationSex(params) { + let obj = Object.assign({action: 'getAttestationSex', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 人物画像认证 +export function getUserAttestationGroupBy(params) { + let obj = Object.assign({action: 'getUserAttestationGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 调性趋势 +export function getAffectionsTime(params) { + let obj = Object.assign({action: 'getAffectionsTime', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 内容方向 +export function getDirectWeiBo0528(params) { + let obj = Object.assign({action: 'getDirectWeiBo0528', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - TOP10渠道占比 +export function getBrandOrSeriesNameBySourceTypeGroupBy(params) { + let obj = Object.assign({action: 'getBrandOrSeriesNameBySourceTypeGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 内容类型占比 +export function getWtypeWeiBo0528(params) { + let obj = Object.assign({action: 'getWtypeWeiBo0528', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 用户活跃地区 +export function getUserRegionGroupBy(params) { + let obj = Object.assign({action: 'getUserRegionGroupBy', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 热门词云 +export function getHotWord(params) { + let obj = Object.assign({action: 'getHotWord', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 尾翼传播趋势 +export function getTimeCountWY(params) { + let obj = Object.assign({action: 'getTimeCount', sType: 'BrandWeiYi'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 专项分析 - 尾翼TOP媒体 +export function getSourceTopWY(params) { + let obj = Object.assign({action: 'getSourceTop', sType: 'BrandWeiYi'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 专项分析 - 尾翼调性占比 +export function getAffectionsTimeWY(params) { + let obj = Object.assign({action: 'getAffectionsTime', sType: 'BrandWeiYi'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 专项分析 - 尾翼热门词云 +export function getHotWordWY(params) { + let obj = Object.assign({action: 'getHotWord', sType: 'BrandWeiYi'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 专项分析 - 近年销量 +export function getSeriesTimeCountToYear(params) { + let obj = Object.assign({action: 'getSeriesTimeCountToYear', sType: 'BrandOverview'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index bd896b8..89bae40 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -404,6 +404,18 @@ const router = [ desc: "专项分析-选择", component: resolve => require(["@/views/SpecialAnalizeChoose"], resolve), }, + { + path: '/specialAnalizeBoard', + name: "specialAnalizeBoard", + desc: "专项分析-数据页", + component: resolve => require(["@/views/SpecialAnalizeBoard"], resolve), + }, + { + path: '/keyMediaSpecial', + name: "keyMediaSpecial", + desc: "专项分析-重点媒体", + component: resolve => require(["@/views/KeyMediaSpecial"], resolve), + }, ] }, diff --git a/src/views/KeyMediaSpecial/index.vue b/src/views/KeyMediaSpecial/index.vue new file mode 100644 index 0000000..ce02fe3 --- /dev/null +++ b/src/views/KeyMediaSpecial/index.vue @@ -0,0 +1,324 @@ + + + + + + + + + 返回专项分析 + + + {{ form.sSource }} + + + + {{ total }} + 信息总量 + + + + + + {{ totalRep }} + 互动人数 + + + + + + + + + + {{key}} + {{item}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/popularEventsList/index.vue b/src/views/KeyMediaSpecial/popularEventsList/index.vue new file mode 100644 index 0000000..ed7552a --- /dev/null +++ b/src/views/KeyMediaSpecial/popularEventsList/index.vue @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/spreadTOPmodels/index.vue b/src/views/KeyMediaSpecial/spreadTOPmodels/index.vue new file mode 100644 index 0000000..247627a --- /dev/null +++ b/src/views/KeyMediaSpecial/spreadTOPmodels/index.vue @@ -0,0 +1,81 @@ + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/spreadTOPmodels/opt.js b/src/views/KeyMediaSpecial/spreadTOPmodels/opt.js new file mode 100644 index 0000000..8aaaa5f --- /dev/null +++ b/src/views/KeyMediaSpecial/spreadTOPmodels/opt.js @@ -0,0 +1,111 @@ +/* + * @Author: your name + * @Date: 2021-10-12 18:23:25 + * @LastEditTime: 2021-10-12 18:31:20 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/spreadTOPmodels/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx,ds) { + return { + grid: { + top: "10%", + left: "16px", + right: "5%", + bottom: "16px", + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function (params) { + var result = ""; + var dotHtml = + ''; + params.forEach(function (item) { + result += item.axisValue + "" + dotHtml + item.data; + }); + return result; + }, + }, + xAxis: { + type: "category", + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + data: dx, + }, + yAxis: { + type: "value", + axisLine: { + show: false, + lineStyle: { + color: "#FFF", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + name: "2001", + data: ds, + type: "bar", + barWidth: 24, + itemStyle: { + normal: { + label: { + show: true, //开启显示 + position: 'top', //在上方显示 + textStyle: { //数值样式 + color: '#fff', + fontSize: 14 + } + }, + color: new echarts.graphic.LinearGradient( + 0, + 1, + 0, + 0, + [ + { + offset: 0, + color: "rgba(99,187,143,0.4)", // 0% 处的颜色 + }, + { + offset: 1, + color: "#51bc8f", // 100% 处的颜色#3373CC + }, + ], + false + ), + }, + }, + }, + ], + } +} diff --git a/src/views/KeyMediaSpecial/subscribeSeries/index.vue b/src/views/KeyMediaSpecial/subscribeSeries/index.vue new file mode 100644 index 0000000..9bdb0e6 --- /dev/null +++ b/src/views/KeyMediaSpecial/subscribeSeries/index.vue @@ -0,0 +1,80 @@ + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/subscribeSeries/opt.js b/src/views/KeyMediaSpecial/subscribeSeries/opt.js new file mode 100644 index 0000000..878e67a --- /dev/null +++ b/src/views/KeyMediaSpecial/subscribeSeries/opt.js @@ -0,0 +1,111 @@ +/* + * @Author: your name + * @Date: 2021-10-12 18:23:25 + * @LastEditTime: 2021-10-12 18:31:20 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/spreadTOPmodels/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx,ds) { + return { + grid: { + top: "10%", + left: "16px", + right: "5%", + bottom: "16px", + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function (params) { + var result = ""; + var dotHtml = + ''; + params.forEach(function (item) { + result += item.axisValue + "" + dotHtml + item.data; + }); + return result; + }, + }, + xAxis: { + type: "category", + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + data: dx, + }, + yAxis: { + type: "value", + axisLine: { + show: false, + lineStyle: { + color: "#FFF", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + name: "2001", + data: ds, + type: "bar", + barWidth: 24, + itemStyle: { + normal: { + label: { + show: true, //开启显示 + position: 'top', //在上方显示 + textStyle: { //数值样式 + color: '#fff', + fontSize: 14 + } + }, + color: new echarts.graphic.LinearGradient( + 0, + 1, + 0, + 0, + [ + { + offset: 0, + color: "#CC9D1240", // 0% 处的颜色 + }, + { + offset: 1, + color: "#CC9D12", // 100% 处的颜色#3373CC + }, + ], + false + ), + }, + }, + }, + ], + } +} diff --git a/src/views/KeyMediaSpecial/weiboCharacters/index.vue b/src/views/KeyMediaSpecial/weiboCharacters/index.vue new file mode 100644 index 0000000..6e2f067 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCharacters/index.vue @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboCharacters/opt.js b/src/views/KeyMediaSpecial/weiboCharacters/opt.js new file mode 100644 index 0000000..47ea3e0 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCharacters/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.Value, + name: ele.Key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 36 + }, + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/KeyMediaSpecial/weiboCharactersStoken/index.vue b/src/views/KeyMediaSpecial/weiboCharactersStoken/index.vue new file mode 100644 index 0000000..5cac297 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCharactersStoken/index.vue @@ -0,0 +1,73 @@ + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrend/index.vue b/src/views/KeyMediaSpecial/weiboCommunicationTrend/index.vue new file mode 100644 index 0000000..4ff6332 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrend/index.vue @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrend/opt.js b/src/views/KeyMediaSpecial/weiboCommunicationTrend/opt.js new file mode 100644 index 0000000..e704b3a --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrend/opt.js @@ -0,0 +1,116 @@ +/* + * @Author: your name + * @Date: 2021-10-12 15:32:24 + * @LastEditTime: 2021-11-19 19:50:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/weiboVolumeTrend/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx = [], ds = [], hotIndex = []) { + let mark = []; + hotIndex.forEach(ele => { + let obj = { + name: 'Max', + xAxis: ele, yAxis: ds[ele], + symbol: 'pin', + symbolSize: 16, + symbolOffset: [0, '-70%'], + } + mark.push(obj) + }) + return { + grid: { + top: 16, + left: 16, + right: "5%", + bottom: 10, + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLabel: { + formatter: (value) => { + let rex = "00:00:00"; + let isCont = false; + let str = value; + for(let i = 0;i { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + data: ds, + type: 'line', + color: '#546fc5', + areaStyle: {normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#546fc5' + }, { + offset: 1, + color: 'rgba(0,0,0,0)' + }]), + }}, + markPoint: { + data: mark, + } + } + ] + }; +} diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/index.vue b/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/index.vue new file mode 100644 index 0000000..fbc5085 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/index.vue @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/opt.js b/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/opt.js new file mode 100644 index 0000000..e704b3a --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrendLong/opt.js @@ -0,0 +1,116 @@ +/* + * @Author: your name + * @Date: 2021-10-12 15:32:24 + * @LastEditTime: 2021-11-19 19:50:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/weiboVolumeTrend/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx = [], ds = [], hotIndex = []) { + let mark = []; + hotIndex.forEach(ele => { + let obj = { + name: 'Max', + xAxis: ele, yAxis: ds[ele], + symbol: 'pin', + symbolSize: 16, + symbolOffset: [0, '-70%'], + } + mark.push(obj) + }) + return { + grid: { + top: 16, + left: 16, + right: "5%", + bottom: 10, + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLabel: { + formatter: (value) => { + let rex = "00:00:00"; + let isCont = false; + let str = value; + for(let i = 0;i { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + data: ds, + type: 'line', + color: '#546fc5', + areaStyle: {normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#546fc5' + }, { + offset: 1, + color: 'rgba(0,0,0,0)' + }]), + }}, + markPoint: { + data: mark, + } + } + ] + }; +} diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrendLongStoken/index.vue b/src/views/KeyMediaSpecial/weiboCommunicationTrendLongStoken/index.vue new file mode 100644 index 0000000..4100783 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrendLongStoken/index.vue @@ -0,0 +1,38 @@ + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboCommunicationTrendStoken/index.vue b/src/views/KeyMediaSpecial/weiboCommunicationTrendStoken/index.vue new file mode 100644 index 0000000..551000b --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboCommunicationTrendStoken/index.vue @@ -0,0 +1,38 @@ + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboContentTOPVolume/index.vue b/src/views/KeyMediaSpecial/weiboContentTOPVolume/index.vue new file mode 100644 index 0000000..117e07c --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentTOPVolume/index.vue @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboContentTOPVolume/v-ranking-kmd/index.vue b/src/views/KeyMediaSpecial/weiboContentTOPVolume/v-ranking-kmd/index.vue new file mode 100644 index 0000000..c8aa254 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentTOPVolume/v-ranking-kmd/index.vue @@ -0,0 +1,236 @@ + + + + + + + {{ num|numStr }} + + + {{label}} + + 传播量 + {{val}} + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboContentTOPVolumeStoken/index.vue b/src/views/KeyMediaSpecial/weiboContentTOPVolumeStoken/index.vue new file mode 100644 index 0000000..75da131 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentTOPVolumeStoken/index.vue @@ -0,0 +1,66 @@ + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboContentType/index.vue b/src/views/KeyMediaSpecial/weiboContentType/index.vue new file mode 100644 index 0000000..2236772 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentType/index.vue @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboContentType/opt.js b/src/views/KeyMediaSpecial/weiboContentType/opt.js new file mode 100644 index 0000000..9b0df73 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentType/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.value, + name: ele.key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 36 + }, + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/KeyMediaSpecial/weiboContentTypeStoken/index.vue b/src/views/KeyMediaSpecial/weiboContentTypeStoken/index.vue new file mode 100644 index 0000000..1f12434 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboContentTypeStoken/index.vue @@ -0,0 +1,50 @@ + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboUserActiveArea/index.vue b/src/views/KeyMediaSpecial/weiboUserActiveArea/index.vue new file mode 100644 index 0000000..7970509 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboUserActiveArea/index.vue @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboUserActiveArea/opt1.js b/src/views/KeyMediaSpecial/weiboUserActiveArea/opt1.js new file mode 100644 index 0000000..32e3a99 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboUserActiveArea/opt1.js @@ -0,0 +1,83 @@ + + +/* + * @Author: your name + * @Date: 2021-10-09 12:38:34 + * @LastEditTime: 2021-10-14 11:48:19 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/tailInsight/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOptD1(dx=[],ds=[]) { + return { + grid: { + left: 16, + right: '5%', + bottom: 10, + top: "1%", + containLabel: true + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'value', + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + yAxis: { + type: 'category', + data: dx, + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + inverse: true + }, + series: [ + { + name: '2011', + type: 'bar', + barWidth: 20, + data: ds, + color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ + offset: 0, + color: 'rgba(59,106,179,0.4)' + }, { + offset: 1, + color: '#2f68b4' + }]), + } + ] + } +} diff --git a/src/views/KeyMediaSpecial/weiboUserActiveArea/opt2.js b/src/views/KeyMediaSpecial/weiboUserActiveArea/opt2.js new file mode 100644 index 0000000..c961002 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboUserActiveArea/opt2.js @@ -0,0 +1,94 @@ +/* + * @Author: your name + * @Date: 2021-10-14 11:53:16 + * @LastEditTime: 2021-11-04 17:17:02 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/WeiboDetails/weiboUserActiveArea/opt2.js + */ + +export default function createOptD2(dm) { + return { + tooltip: { + trigger: "item", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + // geo: { + // show: true, + // map: 'china', + // roam: false,//地图设置不可拖拽,固定的 + // itemStyle: { + // normal: { + // borderWidth: 0, + // shadowColor: 'rgba(0,54,255, 1)', + // shadowBlur: 100 + // } + // } + // }, + visualMap: { + type: 'continuous', + show: false, + min: 0, + max: 2000, + text: ['高', '低'], + orient: 'horizontal', + itemWidth: 15, + itemHeight: 200, + right: 0, + bottom: 30, + inRange: { + color: ['#0393d2', '#75ddff'] + }, + textStyle: { + color: 'white' + } + }, + series: [ + { + name: "微博区域", + type: "map", + mapType: "china", + roam: false, + zoom: 1,//默认地图在容器中显示zoom:1,可根据需求放大缩小地图 + left: 16, + top: 20, + right: 10, + bottom: 10, + selectedMode:'multiple', + colorBy: 'data', + itemStyle: { + areaColor: '#001f5b',//地图区域背景颜色 + borderColor: '#005cf9',//地图边界颜色 + shadowColor: '#005cf9', + emphasis: { + areaColor: '#3066ba',//鼠标滑过区域颜色 + label: { + color: '#fff' + } + } + }, + label: { + normal: { + show: false + }, + }, + + // select: { + // label: { + // show: false + // }, + // itemStyle: { + // areaColor: '#3edffe' + // } + // }, + data: dm + } + ] + } +} diff --git a/src/views/KeyMediaSpecial/weiboUserActiveAreaStoken/index.vue b/src/views/KeyMediaSpecial/weiboUserActiveAreaStoken/index.vue new file mode 100644 index 0000000..8ef1ae7 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboUserActiveAreaStoken/index.vue @@ -0,0 +1,49 @@ + + + + + + + + + diff --git a/src/views/KeyMediaSpecial/weiboWordCloud/index.vue b/src/views/KeyMediaSpecial/weiboWordCloud/index.vue new file mode 100644 index 0000000..b0f2c75 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboWordCloud/index.vue @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/KeyMediaSpecial/weiboWordCloud/opt.js b/src/views/KeyMediaSpecial/weiboWordCloud/opt.js new file mode 100644 index 0000000..9fd72a6 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboWordCloud/opt.js @@ -0,0 +1,215 @@ +/* + * @Author: your name + * @Date: 2021-10-09 13:35:13 + * @LastEditTime: 2021-10-14 19:14:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/hotDiscussionGraph/opt.js + */ +// import * as echarts from "echarts"; +const dataBJ = [ + [1, 55, 9, 56, 0.46, 18, 6, '良'], + [2, 25, 11, 21, 0.65, 34, 9, '优'], + [3, 56, 7, 63, 0.3, 14, 5, '良'], + [4, 33, 7, 29, 0.33, 16, 6, '优'], + [5, 42, 24, 44, 0.76, 40, 16, '优'], + [6, 82, 58, 90, 1.77, 68, 33, '良'], + [7, 74, 49, 77, 1.46, 48, 27, '良'], + [8, 78, 55, 80, 1.29, 59, 29, '良'], + [9, 267, 216, 280, 4.8, 108, 64, '重度污染'], + // [10, 185, 127, 216, 2.52, 61, 27, '中度污染'], + // [11, 39, 19, 38, 0.57, 31, 15, '优'], + // [12, 41, 11, 40, 0.43, 21, 7, '优'], + // [13, 64, 38, 74, 1.04, 46, 22, '良'], + // [14, 108, 79, 120, 1.7, 75, 41, '轻度污染'], + // [15, 108, 63, 116, 1.48, 44, 26, '轻度污染'], + // [16, 33, 6, 29, 0.34, 13, 5, '优'], + // [17, 94, 66, 110, 1.54, 62, 31, '良'], + // [18, 186, 142, 192, 3.88, 93, 79, '中度污染'], + // [19, 57, 31, 54, 0.96, 32, 14, '良'], + // [20, 22, 8, 17, 0.48, 23, 10, '优'], + // [21, 39, 15, 36, 0.61, 29, 13, '优'], + // [22, 94, 69, 114, 2.08, 73, 39, '良'], + // [23, 99, 73, 110, 2.43, 76, 48, '良'], + // [24, 31, 12, 30, 0.5, 32, 16, '优'], + // [25, 42, 27, 43, 1, 53, 22, '优'], + // [26, 154, 117, 157, 3.05, 92, 58, '中度污染'], + // [27, 234, 185, 230, 4.09, 123, 69, '重度污染'], + // [28, 160, 120, 186, 2.77, 91, 50, '中度污染'], + // [29, 134, 96, 165, 2.76, 83, 41, '轻度污染'], + // [30, 52, 24, 60, 1.03, 50, 21, '良'], + // [31, 46, 5, 49, 0.28, 10, 6, '优'] + ]; + const dataGZ = [ + [1, 26, 37, 27, 1.163, 27, 13, '优'], + [2, 85, 62, 71, 1.195, 60, 8, '良'], + [3, 78, 38, 74, 1.363, 37, 7, '良'], + [4, 21, 21, 36, 0.634, 40, 9, '优'], + [5, 41, 42, 46, 0.915, 81, 13, '优'], + // [6, 56, 52, 69, 1.067, 92, 16, '良'], + // [7, 64, 30, 28, 0.924, 51, 2, '良'], + // [8, 55, 48, 74, 1.236, 75, 26, '良'], + // [9, 76, 85, 113, 1.237, 114, 27, '良'], + // [10, 91, 81, 104, 1.041, 56, 40, '良'], + // [11, 84, 39, 60, 0.964, 25, 11, '良'], + // [12, 64, 51, 101, 0.862, 58, 23, '良'], + // [13, 70, 69, 120, 1.198, 65, 36, '良'], + // [14, 77, 105, 178, 2.549, 64, 16, '良'], + // [15, 109, 68, 87, 0.996, 74, 29, '轻度污染'], + // [16, 73, 68, 97, 0.905, 51, 34, '良'], + // [17, 54, 27, 47, 0.592, 53, 12, '良'], + // [18, 51, 61, 97, 0.811, 65, 19, '良'], + // [19, 91, 71, 121, 1.374, 43, 18, '良'], + // [20, 73, 102, 182, 2.787, 44, 19, '良'], + // [21, 73, 50, 76, 0.717, 31, 20, '良'], + // [22, 84, 94, 140, 2.238, 68, 18, '良'], + // [23, 93, 77, 104, 1.165, 53, 7, '良'], + // [24, 99, 130, 227, 3.97, 55, 15, '良'], + // [25, 146, 84, 139, 1.094, 40, 17, '轻度污染'], + // [26, 113, 108, 137, 1.481, 48, 15, '轻度污染'], + // [27, 81, 48, 62, 1.619, 26, 3, '良'], + // [28, 56, 48, 68, 1.336, 37, 9, '良'], + // [29, 82, 92, 174, 3.29, 0, 13, '良'], + // [30, 106, 116, 188, 3.628, 101, 16, '轻度污染'], + // [31, 118, 50, 0, 1.383, 76, 11, '轻度污染'] + ]; + const dataSH = [ + [1, 91, 45, 125, 0.82, 34, 23, '良'], + [2, 65, 27, 78, 0.86, 45, 29, '良'], + [3, 83, 60, 84, 1.09, 73, 27, '良'], + [4, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + [5, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [6, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + // [7, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [8, 89, 65, 78, 0.86, 51, 26, '良'], + // [9, 53, 33, 47, 0.64, 50, 17, '良'], + // [10, 80, 55, 80, 1.01, 75, 24, '良'], + // [11, 117, 81, 124, 1.03, 45, 24, '轻度污染'], + // [12, 99, 71, 142, 1.1, 62, 42, '良'], + // [13, 95, 69, 130, 1.28, 74, 50, '良'], + // [14, 116, 87, 131, 1.47, 84, 40, '轻度污染'], + // [15, 108, 80, 121, 1.3, 85, 37, '轻度污染'], + // [16, 134, 83, 167, 1.16, 57, 43, '轻度污染'], + // [17, 79, 43, 107, 1.05, 59, 37, '良'], + // [18, 71, 46, 89, 0.86, 64, 25, '良'], + // [19, 97, 71, 113, 1.17, 88, 31, '良'], + // [20, 84, 57, 91, 0.85, 55, 31, '良'], + // [21, 87, 63, 101, 0.9, 56, 41, '良'], + // [22, 104, 77, 119, 1.09, 73, 48, '轻度污染'], + // [23, 87, 62, 100, 1, 72, 28, '良'], + // [24, 168, 128, 172, 1.49, 97, 56, '中度污染'], + // [25, 65, 45, 51, 0.74, 39, 17, '良'], + // [26, 39, 24, 38, 0.61, 47, 17, '优'], + // [27, 39, 24, 39, 0.59, 50, 19, '优'], + // [28, 93, 68, 96, 1.05, 79, 29, '良'], + // [29, 188, 143, 197, 1.66, 99, 51, '中度污染'], + // [30, 174, 131, 174, 1.55, 108, 50, '中度污染'], + // [31, 187, 143, 201, 1.39, 89, 53, '中度污染'] + ]; +// const schema = [ +// { name: 'date', index: 0, text: '日' }, +// { name: 'AQIindex', index: 1, text: 'AQI指数' }, +// { name: 'PM25', index: 2, text: 'PM2.5' }, +// { name: 'PM10', index: 3, text: 'PM10' }, +// { name: 'CO', index: 4, text: '一氧化碳(CO)' }, +// { name: 'NO2', index: 5, text: '二氧化氮(NO2)' }, +// { name: 'SO2', index: 6, text: '二氧化硫(SO2)' } +// ]; + const itemStyle = { + opacity: 0.8, + shadowBlur: 10, + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowColor: 'rgba(0,0,0,0.3)' + }; +export default function createOpt() { + return { + grid: { + top: "16px", + left: "16px", + right: "16px", + bottom: "16px", + containLabel: true, + }, + tooltip: { + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function(param) { + let value = param.value; + return `${value[value.length - 1]}${value[0]}` + } + }, + xAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + } + }, + yAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + }, + scale: true + }, + series: [{ + name: '北京', + data: dataBJ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, { + name: '上海', + data: dataSH, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, + { + name: '广州', + data: dataGZ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + } + ] + } +} diff --git a/src/views/KeyMediaSpecial/weiboWordCloudStoken/index.vue b/src/views/KeyMediaSpecial/weiboWordCloudStoken/index.vue new file mode 100644 index 0000000..66ae020 --- /dev/null +++ b/src/views/KeyMediaSpecial/weiboWordCloudStoken/index.vue @@ -0,0 +1,39 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalize/index.vue b/src/views/SpecialAnalize/index.vue index 08070dc..3368eb7 100644 --- a/src/views/SpecialAnalize/index.vue +++ b/src/views/SpecialAnalize/index.vue @@ -147,6 +147,7 @@ export default { .cid-title { height: 133px; font-size: 20px; + cursor: pointer; } .cid-data { display: flex; diff --git a/src/views/SpecialAnalize/tbEvent.js b/src/views/SpecialAnalize/tbEvent.js index 299210d..1f54de8 100644 --- a/src/views/SpecialAnalize/tbEvent.js +++ b/src/views/SpecialAnalize/tbEvent.js @@ -40,7 +40,10 @@ export default { }, //前往详情页 toThemeData(guids,name) { - + this.$router.push({ + path: '/specialAnalizeBoard', + query: {sSpecialGuid: guids, name: name} + }) }, //日期 calendarPriceRangeChange(date) { diff --git a/src/views/SpecialAnalizeBoard/affectionType/index.vue b/src/views/SpecialAnalizeBoard/affectionType/index.vue new file mode 100644 index 0000000..0c47084 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/affectionType/index.vue @@ -0,0 +1,74 @@ + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/affectionType/opt.js b/src/views/SpecialAnalizeBoard/affectionType/opt.js new file mode 100644 index 0000000..dec32aa --- /dev/null +++ b/src/views/SpecialAnalizeBoard/affectionType/opt.js @@ -0,0 +1,150 @@ + +/* + * @Author: your name + * @Date: 2021-10-09 11:38:06 + * @LastEditTime: 2021-11-19 19:42:50 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/barometer/opt.js + */ +import * as echarts from "echarts"; +import {bigNumberTransform} from "@/utils/gol/dataTool" +let colors = ['#3373CC', '#54BF93', '#CC9D12'] +function createData(ds = []) { + let arr = []; + for (let i = 0; i < ds.length; i++) { + let arr1 = ds[i]; + for (let j = 0; j < arr1.length; j++) { + let n = arr.findIndex(ele => { + return ele.name === arr1[j].key; + }) + if (n === -1) { + let obj = + { + name: arr1[j].key, + type: 'line', + symbol: 'none', + itemStyle: { + color: colors[j] + }, + areaStyle: { + normal: { + opacity: 0.4, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, color: colors[j] // 0% 处的颜色 + }, { + offset: 1, color: '#000' // 100% 处的颜色 + }] + ), + } + }, + emphasis: { + focus: 'series' + }, + data: [arr1[j].value] + } + arr.push(obj) + } else { + arr[n].data.push(arr1[j].value) + } + } + } + return arr; +} +export default function createOpt(dx = [], ds = []) { + const data = createData(ds); + return { + grid: { + left: 10, + right: '5%', + bottom: 10, + top: 46, + containLabel: true + }, + // dataZoom: [{ + // type: 'inside', //1平移 缩放 + // throttle: '50', //设置触发视图刷新的频率。单位为毫秒(ms)。 + // minValueSpan: 6, //用于限制窗口大小的最小值,在类目轴上可以设置为 5 表示 5 个类目 + // start: 1, //数据窗口范围的起始百分比 范围是:0 ~ 100。表示 0% ~ 100%。 + // end: 50, //数据窗口范围的结束百分比。范围是:0 ~ 100。 + // zoomLock: true, //如果设置为 true 则锁定选择区域的大小,也就是说,只能平移,不能缩放。 + // }], + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + legend: { + icon: 'roundRect', + textStyle: { //图例文字的样式 + color: '#fff', + fontSize:10 + }, + y: 10, + x: 10, + itemWidth: 10, + itemHeight: 10 + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + axisLabel: { + formatter: (value) => { + let rex = "00:00:00"; + let isCont = false; + let str = value; + for(let i = 0;i { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: data + } +} diff --git a/src/views/SpecialAnalizeBoard/contentDirection/index.vue b/src/views/SpecialAnalizeBoard/contentDirection/index.vue new file mode 100644 index 0000000..aabe22a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/contentDirection/index.vue @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/contentDirection/v-ranking-fhtd/index.vue b/src/views/SpecialAnalizeBoard/contentDirection/v-ranking-fhtd/index.vue new file mode 100644 index 0000000..0df8b0e --- /dev/null +++ b/src/views/SpecialAnalizeBoard/contentDirection/v-ranking-fhtd/index.vue @@ -0,0 +1,230 @@ + + + + + + + {{ num|numStr }} + + + {{label}} + + 传播量 + {{val}} + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/hotWordCloud/index.vue b/src/views/SpecialAnalizeBoard/hotWordCloud/index.vue new file mode 100644 index 0000000..48078e2 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/hotWordCloud/index.vue @@ -0,0 +1,65 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/hotWordCloud/opt.js b/src/views/SpecialAnalizeBoard/hotWordCloud/opt.js new file mode 100644 index 0000000..9fd72a6 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/hotWordCloud/opt.js @@ -0,0 +1,215 @@ +/* + * @Author: your name + * @Date: 2021-10-09 13:35:13 + * @LastEditTime: 2021-10-14 19:14:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/hotDiscussionGraph/opt.js + */ +// import * as echarts from "echarts"; +const dataBJ = [ + [1, 55, 9, 56, 0.46, 18, 6, '良'], + [2, 25, 11, 21, 0.65, 34, 9, '优'], + [3, 56, 7, 63, 0.3, 14, 5, '良'], + [4, 33, 7, 29, 0.33, 16, 6, '优'], + [5, 42, 24, 44, 0.76, 40, 16, '优'], + [6, 82, 58, 90, 1.77, 68, 33, '良'], + [7, 74, 49, 77, 1.46, 48, 27, '良'], + [8, 78, 55, 80, 1.29, 59, 29, '良'], + [9, 267, 216, 280, 4.8, 108, 64, '重度污染'], + // [10, 185, 127, 216, 2.52, 61, 27, '中度污染'], + // [11, 39, 19, 38, 0.57, 31, 15, '优'], + // [12, 41, 11, 40, 0.43, 21, 7, '优'], + // [13, 64, 38, 74, 1.04, 46, 22, '良'], + // [14, 108, 79, 120, 1.7, 75, 41, '轻度污染'], + // [15, 108, 63, 116, 1.48, 44, 26, '轻度污染'], + // [16, 33, 6, 29, 0.34, 13, 5, '优'], + // [17, 94, 66, 110, 1.54, 62, 31, '良'], + // [18, 186, 142, 192, 3.88, 93, 79, '中度污染'], + // [19, 57, 31, 54, 0.96, 32, 14, '良'], + // [20, 22, 8, 17, 0.48, 23, 10, '优'], + // [21, 39, 15, 36, 0.61, 29, 13, '优'], + // [22, 94, 69, 114, 2.08, 73, 39, '良'], + // [23, 99, 73, 110, 2.43, 76, 48, '良'], + // [24, 31, 12, 30, 0.5, 32, 16, '优'], + // [25, 42, 27, 43, 1, 53, 22, '优'], + // [26, 154, 117, 157, 3.05, 92, 58, '中度污染'], + // [27, 234, 185, 230, 4.09, 123, 69, '重度污染'], + // [28, 160, 120, 186, 2.77, 91, 50, '中度污染'], + // [29, 134, 96, 165, 2.76, 83, 41, '轻度污染'], + // [30, 52, 24, 60, 1.03, 50, 21, '良'], + // [31, 46, 5, 49, 0.28, 10, 6, '优'] + ]; + const dataGZ = [ + [1, 26, 37, 27, 1.163, 27, 13, '优'], + [2, 85, 62, 71, 1.195, 60, 8, '良'], + [3, 78, 38, 74, 1.363, 37, 7, '良'], + [4, 21, 21, 36, 0.634, 40, 9, '优'], + [5, 41, 42, 46, 0.915, 81, 13, '优'], + // [6, 56, 52, 69, 1.067, 92, 16, '良'], + // [7, 64, 30, 28, 0.924, 51, 2, '良'], + // [8, 55, 48, 74, 1.236, 75, 26, '良'], + // [9, 76, 85, 113, 1.237, 114, 27, '良'], + // [10, 91, 81, 104, 1.041, 56, 40, '良'], + // [11, 84, 39, 60, 0.964, 25, 11, '良'], + // [12, 64, 51, 101, 0.862, 58, 23, '良'], + // [13, 70, 69, 120, 1.198, 65, 36, '良'], + // [14, 77, 105, 178, 2.549, 64, 16, '良'], + // [15, 109, 68, 87, 0.996, 74, 29, '轻度污染'], + // [16, 73, 68, 97, 0.905, 51, 34, '良'], + // [17, 54, 27, 47, 0.592, 53, 12, '良'], + // [18, 51, 61, 97, 0.811, 65, 19, '良'], + // [19, 91, 71, 121, 1.374, 43, 18, '良'], + // [20, 73, 102, 182, 2.787, 44, 19, '良'], + // [21, 73, 50, 76, 0.717, 31, 20, '良'], + // [22, 84, 94, 140, 2.238, 68, 18, '良'], + // [23, 93, 77, 104, 1.165, 53, 7, '良'], + // [24, 99, 130, 227, 3.97, 55, 15, '良'], + // [25, 146, 84, 139, 1.094, 40, 17, '轻度污染'], + // [26, 113, 108, 137, 1.481, 48, 15, '轻度污染'], + // [27, 81, 48, 62, 1.619, 26, 3, '良'], + // [28, 56, 48, 68, 1.336, 37, 9, '良'], + // [29, 82, 92, 174, 3.29, 0, 13, '良'], + // [30, 106, 116, 188, 3.628, 101, 16, '轻度污染'], + // [31, 118, 50, 0, 1.383, 76, 11, '轻度污染'] + ]; + const dataSH = [ + [1, 91, 45, 125, 0.82, 34, 23, '良'], + [2, 65, 27, 78, 0.86, 45, 29, '良'], + [3, 83, 60, 84, 1.09, 73, 27, '良'], + [4, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + [5, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [6, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + // [7, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [8, 89, 65, 78, 0.86, 51, 26, '良'], + // [9, 53, 33, 47, 0.64, 50, 17, '良'], + // [10, 80, 55, 80, 1.01, 75, 24, '良'], + // [11, 117, 81, 124, 1.03, 45, 24, '轻度污染'], + // [12, 99, 71, 142, 1.1, 62, 42, '良'], + // [13, 95, 69, 130, 1.28, 74, 50, '良'], + // [14, 116, 87, 131, 1.47, 84, 40, '轻度污染'], + // [15, 108, 80, 121, 1.3, 85, 37, '轻度污染'], + // [16, 134, 83, 167, 1.16, 57, 43, '轻度污染'], + // [17, 79, 43, 107, 1.05, 59, 37, '良'], + // [18, 71, 46, 89, 0.86, 64, 25, '良'], + // [19, 97, 71, 113, 1.17, 88, 31, '良'], + // [20, 84, 57, 91, 0.85, 55, 31, '良'], + // [21, 87, 63, 101, 0.9, 56, 41, '良'], + // [22, 104, 77, 119, 1.09, 73, 48, '轻度污染'], + // [23, 87, 62, 100, 1, 72, 28, '良'], + // [24, 168, 128, 172, 1.49, 97, 56, '中度污染'], + // [25, 65, 45, 51, 0.74, 39, 17, '良'], + // [26, 39, 24, 38, 0.61, 47, 17, '优'], + // [27, 39, 24, 39, 0.59, 50, 19, '优'], + // [28, 93, 68, 96, 1.05, 79, 29, '良'], + // [29, 188, 143, 197, 1.66, 99, 51, '中度污染'], + // [30, 174, 131, 174, 1.55, 108, 50, '中度污染'], + // [31, 187, 143, 201, 1.39, 89, 53, '中度污染'] + ]; +// const schema = [ +// { name: 'date', index: 0, text: '日' }, +// { name: 'AQIindex', index: 1, text: 'AQI指数' }, +// { name: 'PM25', index: 2, text: 'PM2.5' }, +// { name: 'PM10', index: 3, text: 'PM10' }, +// { name: 'CO', index: 4, text: '一氧化碳(CO)' }, +// { name: 'NO2', index: 5, text: '二氧化氮(NO2)' }, +// { name: 'SO2', index: 6, text: '二氧化硫(SO2)' } +// ]; + const itemStyle = { + opacity: 0.8, + shadowBlur: 10, + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowColor: 'rgba(0,0,0,0.3)' + }; +export default function createOpt() { + return { + grid: { + top: "16px", + left: "16px", + right: "16px", + bottom: "16px", + containLabel: true, + }, + tooltip: { + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function(param) { + let value = param.value; + return `${value[value.length - 1]}${value[0]}` + } + }, + xAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + } + }, + yAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + }, + scale: true + }, + series: [{ + name: '北京', + data: dataBJ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, { + name: '上海', + data: dataSH, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, + { + name: '广州', + data: dataGZ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/index.vue b/src/views/SpecialAnalizeBoard/index.vue new file mode 100644 index 0000000..d99c137 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/index.vue @@ -0,0 +1,299 @@ + + + + + + + 返回专项列表 + + + + + + {{ countObj.Count }} + 信息总量 + + + + + + {{ countObj.ReplyCount }} + 评论总数量 + + + + + + + + + {{key}} + {{item}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/modelPopularity/index.vue b/src/views/SpecialAnalizeBoard/modelPopularity/index.vue new file mode 100644 index 0000000..2b4d76a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/modelPopularity/index.vue @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/modelPopularity/v-ranking-mpth/index.vue b/src/views/SpecialAnalizeBoard/modelPopularity/v-ranking-mpth/index.vue new file mode 100644 index 0000000..fb825e2 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/modelPopularity/v-ranking-mpth/index.vue @@ -0,0 +1,230 @@ + + + + + + + {{ num|numStr }} + + + {{label}} + + 传播量 + {{val}} + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/modelPopularityStoken/index.vue b/src/views/SpecialAnalizeBoard/modelPopularityStoken/index.vue new file mode 100644 index 0000000..fe0b33a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/modelPopularityStoken/index.vue @@ -0,0 +1,39 @@ + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/saleForm/index.vue b/src/views/SpecialAnalizeBoard/saleForm/index.vue new file mode 100644 index 0000000..9d29a01 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/saleForm/index.vue @@ -0,0 +1,60 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/saleForm/opt.js b/src/views/SpecialAnalizeBoard/saleForm/opt.js new file mode 100644 index 0000000..990cb9b --- /dev/null +++ b/src/views/SpecialAnalizeBoard/saleForm/opt.js @@ -0,0 +1,87 @@ +/* + * @Author: your name + * @Date: 2021-10-12 16:40:53 + * @LastEditTime: 2021-11-19 19:48:04 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/forumCommunicationTrend/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx = [], ds = []) { + return { + grid: { + top: "15%", + left: "3%", + right: "5%", + bottom: "3%", + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + axisLabel : { + formatter: (value) => { + return value + } + }, + data: dx + }, + yAxis: { + type: 'value', + axisLine: { + show: false, + lineStyle: { + color: "#FFF", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + data: ds, + type: 'line', + color: "#CC9D12", + areaStyle: {normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#CC9D12' + }, { + offset: 1, + color: 'rgba(0,0,0,0)' + }]), + }}, + } + ] + }; +} diff --git a/src/views/SpecialAnalizeBoard/sourceDis/index.vue b/src/views/SpecialAnalizeBoard/sourceDis/index.vue new file mode 100644 index 0000000..491f5cb --- /dev/null +++ b/src/views/SpecialAnalizeBoard/sourceDis/index.vue @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/sourceDis/opt.js b/src/views/SpecialAnalizeBoard/sourceDis/opt.js new file mode 100644 index 0000000..9b0df73 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/sourceDis/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.value, + name: ele.key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 36 + }, + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/sourceTopTen/index.vue b/src/views/SpecialAnalizeBoard/sourceTopTen/index.vue new file mode 100644 index 0000000..c9321f5 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/sourceTopTen/index.vue @@ -0,0 +1,137 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/sourceTopTen/opt.js b/src/views/SpecialAnalizeBoard/sourceTopTen/opt.js new file mode 100644 index 0000000..ebfdd2a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/sourceTopTen/opt.js @@ -0,0 +1,138 @@ +/* + * @Author: your name + * @Date: 2021-10-09 11:01:19 + * @LastEditTime: 2021-12-23 16:37:35 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js + */ +import * as echarts from "echarts"; +import {doStr} from "@/utils/gol/dataTool" +import { bigNumberTransform } from "@/utils/gol/dataTool" +let colors = ['rgba(84,111,197,1)', 'rgba(145,203,116,1)', 'rgba(90,203,156,1)', 'rgba(248,200,87,1)', 'rgba(237,101,101,1)', "rgba(114,191,222,1)", 'rgba(58,162,114,1)', 'rgba(251,131,81,1)'] +//['#546fc5', '#91cb74', '#f9c857', '#ed6565', '#72bfde', '#3aa272', '#fb8351'] +let colors2 = ['rgba(84,111,197,0.6)', 'rgba(145,203,116,0.6)', 'rgba(90,203,156,0.6)', 'rgba(248,200,87,0.6)', 'rgba(237,101,101,0.6)', "rgba(114,191,222,0.6)", 'rgba(58,162,114,0.6)', 'rgba(251,131,81,0.6)'] +function createData(ds = []) { + let arr = []; + for (let i = 0; i < ds.length; i++) { + let arr1 = ds[i]; + for (let j = 0; j < arr1.length; j++) { + let n = arr.findIndex(ele => { + return ele.name === arr1[j].Key; + }) + if (n === -1) { + let obj = + { + name: arr1[j].Key, + type: 'bar', + stack: 'total', + barWidth: 18, + barGap: "-100%", + emphasis: { + focus: 'series' + }, + itemStyle: { + normal: { + //柱体的颜色 + //右,下,左,上(1,0,0,0)表示从正右开始向左渐变 + color: function () { + return new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: colors[j] + }, + { + offset: 1, + color: colors2[j] + } + ], false); + } + } + + }, + data: [arr1[j].Value] + } + arr.push(obj) + } else { + arr[n].data.push(arr1[j].Value) + } + } + } + return arr; +} +export default function createOpt(dx = [], ds = []) { + const data = createData(ds); + return { + grid: { + left: 10, + right: 10, + bottom: 10, + containLabel: true + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + color: colors, + legend: { + textStyle: { //图例文字的样式 + color: '#fff', + fontSize: 10 + }, + itemWidth: 12, + itemHeight: 12, + borderRadius: 1, //圆角半径 + y: 10, + x: 10, + }, + xAxis: { + type: 'category', + axisLabel :{ + interval:0, + formatter: (value) => { + let res = doStr(value, 4); + return res + } + }, + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + data: dx + }, + yAxis: { + type: 'value', + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: data + } + +} \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/transformTopMedia/index.vue b/src/views/SpecialAnalizeBoard/transformTopMedia/index.vue new file mode 100644 index 0000000..e554b71 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/transformTopMedia/index.vue @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/transformTopMedia/v-ranking-fhtd/index.vue b/src/views/SpecialAnalizeBoard/transformTopMedia/v-ranking-fhtd/index.vue new file mode 100644 index 0000000..1041c5d --- /dev/null +++ b/src/views/SpecialAnalizeBoard/transformTopMedia/v-ranking-fhtd/index.vue @@ -0,0 +1,235 @@ + + + + + + + {{ num|numStr }} + + + {{label}} + + 传播量 + {{val}} + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboCharacters/index.vue b/src/views/SpecialAnalizeBoard/weiboCharacters/index.vue new file mode 100644 index 0000000..6e9f8e3 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCharacters/index.vue @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboCharacters/opt.js b/src/views/SpecialAnalizeBoard/weiboCharacters/opt.js new file mode 100644 index 0000000..9b0df73 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCharacters/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.value, + name: ele.key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 36 + }, + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/weiboCharactersStoken/index.vue b/src/views/SpecialAnalizeBoard/weiboCharactersStoken/index.vue new file mode 100644 index 0000000..5cac297 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCharactersStoken/index.vue @@ -0,0 +1,73 @@ + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/index.vue b/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/index.vue new file mode 100644 index 0000000..727970c --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/index.vue @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/opt.js b/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/opt.js new file mode 100644 index 0000000..e704b3a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCommunicationTrend/opt.js @@ -0,0 +1,116 @@ +/* + * @Author: your name + * @Date: 2021-10-12 15:32:24 + * @LastEditTime: 2021-11-19 19:50:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/weiboVolumeTrend/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx = [], ds = [], hotIndex = []) { + let mark = []; + hotIndex.forEach(ele => { + let obj = { + name: 'Max', + xAxis: ele, yAxis: ds[ele], + symbol: 'pin', + symbolSize: 16, + symbolOffset: [0, '-70%'], + } + mark.push(obj) + }) + return { + grid: { + top: 16, + left: 16, + right: "5%", + bottom: 10, + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLabel: { + formatter: (value) => { + let rex = "00:00:00"; + let isCont = false; + let str = value; + for(let i = 0;i { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + data: ds, + type: 'line', + color: '#546fc5', + areaStyle: {normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#546fc5' + }, { + offset: 1, + color: 'rgba(0,0,0,0)' + }]), + }}, + markPoint: { + data: mark, + } + } + ] + }; +} diff --git a/src/views/SpecialAnalizeBoard/weiboCommunicationTrendStoken/index.vue b/src/views/SpecialAnalizeBoard/weiboCommunicationTrendStoken/index.vue new file mode 100644 index 0000000..551000b --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboCommunicationTrendStoken/index.vue @@ -0,0 +1,38 @@ + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboContentType/index.vue b/src/views/SpecialAnalizeBoard/weiboContentType/index.vue new file mode 100644 index 0000000..81554c3 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboContentType/index.vue @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboContentType/opt.js b/src/views/SpecialAnalizeBoard/weiboContentType/opt.js new file mode 100644 index 0000000..9b0df73 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboContentType/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.value, + name: ele.key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 36 + }, + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/weiboContentTypeStoken/index.vue b/src/views/SpecialAnalizeBoard/weiboContentTypeStoken/index.vue new file mode 100644 index 0000000..1f12434 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboContentTypeStoken/index.vue @@ -0,0 +1,50 @@ + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboUserActiveArea/index.vue b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/index.vue new file mode 100644 index 0000000..b1c3464 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/index.vue @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt1.js b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt1.js new file mode 100644 index 0000000..32e3a99 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt1.js @@ -0,0 +1,83 @@ + + +/* + * @Author: your name + * @Date: 2021-10-09 12:38:34 + * @LastEditTime: 2021-10-14 11:48:19 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/tailInsight/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOptD1(dx=[],ds=[]) { + return { + grid: { + left: 16, + right: '5%', + bottom: 10, + top: "1%", + containLabel: true + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'value', + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + yAxis: { + type: 'category', + data: dx, + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + inverse: true + }, + series: [ + { + name: '2011', + type: 'bar', + barWidth: 20, + data: ds, + color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ + offset: 0, + color: 'rgba(59,106,179,0.4)' + }, { + offset: 1, + color: '#2f68b4' + }]), + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt2.js b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt2.js new file mode 100644 index 0000000..c961002 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboUserActiveArea/opt2.js @@ -0,0 +1,94 @@ +/* + * @Author: your name + * @Date: 2021-10-14 11:53:16 + * @LastEditTime: 2021-11-04 17:17:02 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/WeiboDetails/weiboUserActiveArea/opt2.js + */ + +export default function createOptD2(dm) { + return { + tooltip: { + trigger: "item", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + // geo: { + // show: true, + // map: 'china', + // roam: false,//地图设置不可拖拽,固定的 + // itemStyle: { + // normal: { + // borderWidth: 0, + // shadowColor: 'rgba(0,54,255, 1)', + // shadowBlur: 100 + // } + // } + // }, + visualMap: { + type: 'continuous', + show: false, + min: 0, + max: 2000, + text: ['高', '低'], + orient: 'horizontal', + itemWidth: 15, + itemHeight: 200, + right: 0, + bottom: 30, + inRange: { + color: ['#0393d2', '#75ddff'] + }, + textStyle: { + color: 'white' + } + }, + series: [ + { + name: "微博区域", + type: "map", + mapType: "china", + roam: false, + zoom: 1,//默认地图在容器中显示zoom:1,可根据需求放大缩小地图 + left: 16, + top: 20, + right: 10, + bottom: 10, + selectedMode:'multiple', + colorBy: 'data', + itemStyle: { + areaColor: '#001f5b',//地图区域背景颜色 + borderColor: '#005cf9',//地图边界颜色 + shadowColor: '#005cf9', + emphasis: { + areaColor: '#3066ba',//鼠标滑过区域颜色 + label: { + color: '#fff' + } + } + }, + label: { + normal: { + show: false + }, + }, + + // select: { + // label: { + // show: false + // }, + // itemStyle: { + // areaColor: '#3edffe' + // } + // }, + data: dm + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/weiboUserActiveAreaStoken/index.vue b/src/views/SpecialAnalizeBoard/weiboUserActiveAreaStoken/index.vue new file mode 100644 index 0000000..8ef1ae7 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboUserActiveAreaStoken/index.vue @@ -0,0 +1,49 @@ + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/weiboWordCloud/index.vue b/src/views/SpecialAnalizeBoard/weiboWordCloud/index.vue new file mode 100644 index 0000000..e96aa7e --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboWordCloud/index.vue @@ -0,0 +1,62 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/weiboWordCloud/opt.js b/src/views/SpecialAnalizeBoard/weiboWordCloud/opt.js new file mode 100644 index 0000000..9fd72a6 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboWordCloud/opt.js @@ -0,0 +1,215 @@ +/* + * @Author: your name + * @Date: 2021-10-09 13:35:13 + * @LastEditTime: 2021-10-14 19:14:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/hotDiscussionGraph/opt.js + */ +// import * as echarts from "echarts"; +const dataBJ = [ + [1, 55, 9, 56, 0.46, 18, 6, '良'], + [2, 25, 11, 21, 0.65, 34, 9, '优'], + [3, 56, 7, 63, 0.3, 14, 5, '良'], + [4, 33, 7, 29, 0.33, 16, 6, '优'], + [5, 42, 24, 44, 0.76, 40, 16, '优'], + [6, 82, 58, 90, 1.77, 68, 33, '良'], + [7, 74, 49, 77, 1.46, 48, 27, '良'], + [8, 78, 55, 80, 1.29, 59, 29, '良'], + [9, 267, 216, 280, 4.8, 108, 64, '重度污染'], + // [10, 185, 127, 216, 2.52, 61, 27, '中度污染'], + // [11, 39, 19, 38, 0.57, 31, 15, '优'], + // [12, 41, 11, 40, 0.43, 21, 7, '优'], + // [13, 64, 38, 74, 1.04, 46, 22, '良'], + // [14, 108, 79, 120, 1.7, 75, 41, '轻度污染'], + // [15, 108, 63, 116, 1.48, 44, 26, '轻度污染'], + // [16, 33, 6, 29, 0.34, 13, 5, '优'], + // [17, 94, 66, 110, 1.54, 62, 31, '良'], + // [18, 186, 142, 192, 3.88, 93, 79, '中度污染'], + // [19, 57, 31, 54, 0.96, 32, 14, '良'], + // [20, 22, 8, 17, 0.48, 23, 10, '优'], + // [21, 39, 15, 36, 0.61, 29, 13, '优'], + // [22, 94, 69, 114, 2.08, 73, 39, '良'], + // [23, 99, 73, 110, 2.43, 76, 48, '良'], + // [24, 31, 12, 30, 0.5, 32, 16, '优'], + // [25, 42, 27, 43, 1, 53, 22, '优'], + // [26, 154, 117, 157, 3.05, 92, 58, '中度污染'], + // [27, 234, 185, 230, 4.09, 123, 69, '重度污染'], + // [28, 160, 120, 186, 2.77, 91, 50, '中度污染'], + // [29, 134, 96, 165, 2.76, 83, 41, '轻度污染'], + // [30, 52, 24, 60, 1.03, 50, 21, '良'], + // [31, 46, 5, 49, 0.28, 10, 6, '优'] + ]; + const dataGZ = [ + [1, 26, 37, 27, 1.163, 27, 13, '优'], + [2, 85, 62, 71, 1.195, 60, 8, '良'], + [3, 78, 38, 74, 1.363, 37, 7, '良'], + [4, 21, 21, 36, 0.634, 40, 9, '优'], + [5, 41, 42, 46, 0.915, 81, 13, '优'], + // [6, 56, 52, 69, 1.067, 92, 16, '良'], + // [7, 64, 30, 28, 0.924, 51, 2, '良'], + // [8, 55, 48, 74, 1.236, 75, 26, '良'], + // [9, 76, 85, 113, 1.237, 114, 27, '良'], + // [10, 91, 81, 104, 1.041, 56, 40, '良'], + // [11, 84, 39, 60, 0.964, 25, 11, '良'], + // [12, 64, 51, 101, 0.862, 58, 23, '良'], + // [13, 70, 69, 120, 1.198, 65, 36, '良'], + // [14, 77, 105, 178, 2.549, 64, 16, '良'], + // [15, 109, 68, 87, 0.996, 74, 29, '轻度污染'], + // [16, 73, 68, 97, 0.905, 51, 34, '良'], + // [17, 54, 27, 47, 0.592, 53, 12, '良'], + // [18, 51, 61, 97, 0.811, 65, 19, '良'], + // [19, 91, 71, 121, 1.374, 43, 18, '良'], + // [20, 73, 102, 182, 2.787, 44, 19, '良'], + // [21, 73, 50, 76, 0.717, 31, 20, '良'], + // [22, 84, 94, 140, 2.238, 68, 18, '良'], + // [23, 93, 77, 104, 1.165, 53, 7, '良'], + // [24, 99, 130, 227, 3.97, 55, 15, '良'], + // [25, 146, 84, 139, 1.094, 40, 17, '轻度污染'], + // [26, 113, 108, 137, 1.481, 48, 15, '轻度污染'], + // [27, 81, 48, 62, 1.619, 26, 3, '良'], + // [28, 56, 48, 68, 1.336, 37, 9, '良'], + // [29, 82, 92, 174, 3.29, 0, 13, '良'], + // [30, 106, 116, 188, 3.628, 101, 16, '轻度污染'], + // [31, 118, 50, 0, 1.383, 76, 11, '轻度污染'] + ]; + const dataSH = [ + [1, 91, 45, 125, 0.82, 34, 23, '良'], + [2, 65, 27, 78, 0.86, 45, 29, '良'], + [3, 83, 60, 84, 1.09, 73, 27, '良'], + [4, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + [5, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [6, 109, 81, 121, 1.28, 68, 51, '轻度污染'], + // [7, 106, 77, 114, 1.07, 55, 51, '轻度污染'], + // [8, 89, 65, 78, 0.86, 51, 26, '良'], + // [9, 53, 33, 47, 0.64, 50, 17, '良'], + // [10, 80, 55, 80, 1.01, 75, 24, '良'], + // [11, 117, 81, 124, 1.03, 45, 24, '轻度污染'], + // [12, 99, 71, 142, 1.1, 62, 42, '良'], + // [13, 95, 69, 130, 1.28, 74, 50, '良'], + // [14, 116, 87, 131, 1.47, 84, 40, '轻度污染'], + // [15, 108, 80, 121, 1.3, 85, 37, '轻度污染'], + // [16, 134, 83, 167, 1.16, 57, 43, '轻度污染'], + // [17, 79, 43, 107, 1.05, 59, 37, '良'], + // [18, 71, 46, 89, 0.86, 64, 25, '良'], + // [19, 97, 71, 113, 1.17, 88, 31, '良'], + // [20, 84, 57, 91, 0.85, 55, 31, '良'], + // [21, 87, 63, 101, 0.9, 56, 41, '良'], + // [22, 104, 77, 119, 1.09, 73, 48, '轻度污染'], + // [23, 87, 62, 100, 1, 72, 28, '良'], + // [24, 168, 128, 172, 1.49, 97, 56, '中度污染'], + // [25, 65, 45, 51, 0.74, 39, 17, '良'], + // [26, 39, 24, 38, 0.61, 47, 17, '优'], + // [27, 39, 24, 39, 0.59, 50, 19, '优'], + // [28, 93, 68, 96, 1.05, 79, 29, '良'], + // [29, 188, 143, 197, 1.66, 99, 51, '中度污染'], + // [30, 174, 131, 174, 1.55, 108, 50, '中度污染'], + // [31, 187, 143, 201, 1.39, 89, 53, '中度污染'] + ]; +// const schema = [ +// { name: 'date', index: 0, text: '日' }, +// { name: 'AQIindex', index: 1, text: 'AQI指数' }, +// { name: 'PM25', index: 2, text: 'PM2.5' }, +// { name: 'PM10', index: 3, text: 'PM10' }, +// { name: 'CO', index: 4, text: '一氧化碳(CO)' }, +// { name: 'NO2', index: 5, text: '二氧化氮(NO2)' }, +// { name: 'SO2', index: 6, text: '二氧化硫(SO2)' } +// ]; + const itemStyle = { + opacity: 0.8, + shadowBlur: 10, + shadowOffsetX: 0, + shadowOffsetY: 0, + shadowColor: 'rgba(0,0,0,0.3)' + }; +export default function createOpt() { + return { + grid: { + top: "16px", + left: "16px", + right: "16px", + bottom: "16px", + containLabel: true, + }, + tooltip: { + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function(param) { + let value = param.value; + return `${value[value.length - 1]}${value[0]}` + } + }, + xAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + } + }, + yAxis: { + show: false, + type: 'value', + splitLine: { + lineStyle: { + type: 'dashed' + } + }, + scale: true + }, + series: [{ + name: '北京', + data: dataBJ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, { + name: '上海', + data: dataSH, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + }, + { + name: '广州', + data: dataGZ, + type: 'scatter', + symbolSize: function (data) { + return data[2] + }, + label: { + show: true, + color: "#FFF", + formatter: function (param) { + return param.data[param.data.length - 1]; + }, + }, + itemStyle: itemStyle + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/weiboWordCloudStoken/index.vue b/src/views/SpecialAnalizeBoard/weiboWordCloudStoken/index.vue new file mode 100644 index 0000000..66ae020 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/weiboWordCloudStoken/index.vue @@ -0,0 +1,39 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/views/SpecialAnalizeBoard/wyAffectionPercent/index.vue b/src/views/SpecialAnalizeBoard/wyAffectionPercent/index.vue new file mode 100644 index 0000000..a85d49a --- /dev/null +++ b/src/views/SpecialAnalizeBoard/wyAffectionPercent/index.vue @@ -0,0 +1,82 @@ + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/wyAffectionPercent/opt.js b/src/views/SpecialAnalizeBoard/wyAffectionPercent/opt.js new file mode 100644 index 0000000..566b75d --- /dev/null +++ b/src/views/SpecialAnalizeBoard/wyAffectionPercent/opt.js @@ -0,0 +1,72 @@ +/* + * @Author: your name + * @Date: 2021-10-09 09:49:50 + * @LastEditTime: 2021-10-28 13:07:24 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/Index/userPortrait/opt.js + */ +import * as echarts from "echarts"; +// let colors = ['#3373CC', '#CC9D12', '#54BF93','#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1','#f7a35c','#90ed7d'] +function createData(ds = [], colors) { + let arr = []; + ds.map((ele, index) => { + let obj = { + value: ele.value, + name: ele.key, + itemStyle: { + color: colors[index] + } + } + arr.push(obj) + }) + return arr; +} +export default function createOpt(ds = [], color = []) { + const data = createData(ds, color); + return { + series: [ + { + name: 'Access From0', + type: 'pie', + radius: ['65%', '80%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center', + lineHeight: 48 + }, + emphasis: { + label: { + show: true, + fontSize: '24', + 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: ['86%', '94%'], + avoidLabelOverlap: false, + label: { + show: false, + position: 'center' + }, + labelLine: { + show: false + }, + center: ['50%', '50%'],//边框位置 + data: data + } + ] + } +} diff --git a/src/views/SpecialAnalizeBoard/wyTransform/index.vue b/src/views/SpecialAnalizeBoard/wyTransform/index.vue new file mode 100644 index 0000000..b566bed --- /dev/null +++ b/src/views/SpecialAnalizeBoard/wyTransform/index.vue @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + diff --git a/src/views/SpecialAnalizeBoard/wyTransform/opt.js b/src/views/SpecialAnalizeBoard/wyTransform/opt.js new file mode 100644 index 0000000..42be974 --- /dev/null +++ b/src/views/SpecialAnalizeBoard/wyTransform/opt.js @@ -0,0 +1,116 @@ +/* + * @Author: your name + * @Date: 2021-10-12 15:32:24 + * @LastEditTime: 2021-11-19 19:50:21 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/weiboVolumeTrend/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx = [], ds = [], hotIndex = []) { + let mark = []; + hotIndex.forEach(ele => { + let obj = { + name: 'Max', + xAxis: ele, yAxis: ds[ele], + symbol: 'pin', + symbolSize: 16, + symbolOffset: [0, '-70%'], + } + mark.push(obj) + }) + return { + grid: { + top: 16, + left: 16, + right: "5%", + bottom: 10, + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;" + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisTick: { + show: false, + }, + axisLabel: { + formatter: (value) => { + let rex = "00:00:00"; + let isCont = false; + let str = value; + for(let i = 0;i { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + data: ds, + type: 'line', + color: '#63AECC', + areaStyle: {normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#63AECC' + }, { + offset: 1, + color: 'rgba(0,0,0,0)' + }]), + }}, + markPoint: { + data: mark, + } + } + ] + }; +} diff --git a/src/views/SpecialAnalizeChoose/index.vue b/src/views/SpecialAnalizeChoose/index.vue index 4c6dd0e..b3c39d5 100644 --- a/src/views/SpecialAnalizeChoose/index.vue +++ b/src/views/SpecialAnalizeChoose/index.vue @@ -25,7 +25,7 @@ - + 重选分析