prod
lily.zhang 3 years ago
parent 7f7988924f
commit a75aa91e0c

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-25 15:38:59
* @LastEditTime: 2021-10-26 16:27:31
* @LastEditTime: 2021-10-28 13:15:14
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/BrandInsight/index.js
@ -13,8 +13,11 @@ export function getCartypeTop10(params) {
let obj = Object.assign({action: 'getCartypeTop10', sType: 'BrandOverview', iBBsType: 1}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 品牌数据-数据传播总量
@ -22,8 +25,11 @@ export function getBrandOverviewCount0528(params) {
let obj = Object.assign({action: 'getBrandOverviewCount0528', sType: 'BrandOverview'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 舆情传播趋势
@ -31,8 +37,11 @@ export function getSourcetypeTime(params) {
let obj = Object.assign({action: 'getSourcetypeTime', sType: 'BrandOverview'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -41,8 +50,11 @@ export function getAffections(params) {
let obj = Object.assign({action: 'getAffections', sType: 'BrandOverview'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 热门事件列表
@ -50,8 +62,11 @@ export function getHotEventsList0528(params) {
let obj = Object.assign({action: 'getHotEventsList0528', sType: 'BrandOverview'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -60,8 +75,11 @@ export function getHotEventsType(params) {
let obj = Object.assign({action: 'getHotEventsType', sType: 'HotEvent'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 微博KOL
@ -69,8 +87,11 @@ export function getBoauthenCount0528(params) {
let obj = Object.assign({action: 'getBoauthenCount0528', sType: 'BrandWeiBo'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 微博洞察-微博人物画像
@ -78,8 +99,11 @@ export function getSexMergeWeiBo(params) {
let obj = Object.assign({action: 'getSexMergeWeiBo', sType: 'BrandWeiBo'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -88,8 +112,11 @@ export function getCountTime0528(params) {
let obj = Object.assign({action: 'getCountTime0528', sType: 'BrandWeiBo'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -98,8 +125,11 @@ export function getBbsCountTime(params) {
let obj = Object.assign({action: 'getBbsCountTime', sType: 'BbsBrand'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -108,8 +138,11 @@ export function getHotTopic0528(params) {
let obj = Object.assign({action: 'getHotTopic0528', sType: 'BbsBrand', iBBsType: 1}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -118,8 +151,11 @@ export function agetCartypeTop10(params) {
let obj = Object.assign({action: 'getCartypeTop10', sType: 'BbsBrand', iBBsType: 1}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -128,8 +164,11 @@ export function getHotWord(params) {
let obj = Object.assign({action: 'getHotWord', sType: 'BrandWeiYi'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -138,8 +177,11 @@ export function getWeiYiVolumeTime(params) {
let obj = Object.assign({action: 'getWeiYiVolumeTime', sType: 'BrandWeiYi'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -148,7 +190,10 @@ export function getWebsite(params) {
let obj = Object.assign({action: 'getWebsite', sType: 'BrandWeiYi'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-27 17:08:02
* @LastEditTime: 2021-10-27 17:09:09
* @LastEditTime: 2021-10-28 13:17:27
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/EventInsight/index.js
@ -13,7 +13,10 @@ export function getPropagationDirection0528(params) {
let obj = Object.assign({action: 'getPropagationDirection0528', sType: 'HotEvent0528'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-26 09:12:35
* @LastEditTime: 2021-10-26 09:18:40
* @LastEditTime: 2021-10-28 13:16:34
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/MarketingAnalysis/index.js
@ -12,8 +12,11 @@ export function getBrandSourceType0528(params) {
let obj = Object.assign({action: 'getBrandSourceType0528',sType: 'Marketing'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 重点活跃媒体TOP10排行
@ -21,8 +24,11 @@ export function getWebsite(params) {
let obj = Object.assign({action: 'getWebsite',sType: 'Marketing'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 品牌销量榜TOP10排行
@ -30,7 +36,10 @@ export function getCheZhuBrandMKTCount0528(params) {
let obj = Object.assign({action: 'getCheZhuBrandMKTCount0528',sType: 'Marketing'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-20 16:36:08
* @LastEditTime: 2021-10-27 19:28:14
* @LastEditTime: 2021-10-28 13:14:08
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/comm/index.js
@ -13,8 +13,11 @@ export function getOneTime(params) {
let obj = Object.assign({action: 'getTime', sType: 0}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -23,8 +26,11 @@ export function getTwoTime(params) {
let obj = Object.assign({action: 'getTime',sType: 1}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -33,8 +39,11 @@ export function getQuDao(params) {
let obj = Object.assign({action: 'getQuDao'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 获取情感
@ -42,8 +51,11 @@ export function getQingGan(params) {
let obj = Object.assign({action: 'getQingGan'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 负面等级
@ -51,8 +63,11 @@ export function getCrisis(params) {
let obj = Object.assign({action: 'getCrisis'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -61,8 +76,11 @@ export function getUserBrand(params) {
let obj = Object.assign({action: 'getUserBrand'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -71,8 +89,11 @@ export function getToExcelField(params) {
let obj = Object.assign({action: 'getToExcelField'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 导出Excel的方法

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-20 16:17:39
* @LastEditTime: 2021-10-27 13:33:16
* @LastEditTime: 2021-10-28 12:15:59
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/home/index.js
@ -13,8 +13,11 @@ export function getEventsListH(params) {
let obj = Object.assign({action: 'getEventsListH',sQuDao: '新车上市', sType: 'Home', iTimeType: 0}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -23,8 +26,11 @@ export function getWebsiteHome0528(params) {
let obj = Object.assign({action: 'getWebsiteHome0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -33,8 +39,11 @@ export function getHomeCount0528(params) {
let obj = Object.assign({action: 'getHomeCount0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_热销排行-选择框
@ -42,8 +51,11 @@ export function getCheZhuTime0528(params) {
let obj = Object.assign({action: 'getCheZhuTime0528'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_热销排行
@ -51,8 +63,11 @@ export function getCheZhuBrandCount0528(params) {
let obj = Object.assign({action: 'getCheZhuBrandCount0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -61,8 +76,11 @@ export function getHotWordHome(params) {
let obj = Object.assign({action: 'getHotWordHome',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -71,8 +89,11 @@ export function getPositive0528(params) {
let obj = Object.assign({action: 'getPositive0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -81,8 +102,11 @@ export function getNegative0528(params) {
let obj = Object.assign({action: 'getNegative0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_尾翼洞察
@ -90,8 +114,11 @@ export function getWeiYiCountHome0528(params) {
let obj = Object.assign({action: 'getWeiYiCountHome0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -100,8 +127,11 @@ export function getAffections0528(params) {
let obj = Object.assign({action: 'getAffections0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -110,8 +140,11 @@ export function getCrisisTime(params) {
let obj = Object.assign({action: 'getCrisisTime',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -120,8 +153,11 @@ export function getHomeBrandSourceType0528(params) {
let obj = Object.assign({action: 'getHomeBrandSourceType0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -130,8 +166,11 @@ export function getSexOrAttestationOrRegionHome0528(params) {
let obj = Object.assign({action: 'getSexOrAttestationOrRegionHome0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-20 13:17:25
* @LastEditTime: 2021-10-20 15:44:23
* @LastEditTime: 2021-10-28 13:16:51
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/login/index.js
@ -13,8 +13,11 @@ export function loginSubmit(params) {
let obj = Object.assign({action: 'logUser'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -23,8 +26,11 @@ export function getVerifycode(params) {
let obj = Object.assign({action: 'getVerifycode'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
@ -33,8 +39,11 @@ export function getVERCode(params) {
let obj = Object.assign({action: 'getVERCode', iType: 1}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 检查手机验证码
@ -42,8 +51,11 @@ export function checkVERCode(params) {
let obj = Object.assign({action: 'checkVERCode'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 修改密码
@ -51,7 +63,10 @@ export function updPhonePwd(params) {
let obj = Object.assign({action: 'updPhonePwd'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-23 17:19:09
* @LastEditTime: 2021-10-23 17:26:38
* @LastEditTime: 2021-10-28 13:17:39
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/mySelf/index.js
@ -12,7 +12,10 @@ export function getMyFileInfoExcel(params) {
let obj = Object.assign({action: 'getFileInfoExcel', sType: 'User'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'get',
params: obj
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-09 09:19:06
* @LastEditTime: 2021-10-26 12:57:04
* @LastEditTime: 2021-10-28 13:08:21
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/components/v-label-ctx/index.vue
@ -66,7 +66,7 @@ export default {
align-items: center;
border-bottom: 1px solid #0F2A4D;
.d1 {
width: 42px;
display: block;
.s1 {
display: block;
width: 100%;

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-12 13:56:13
* @LastEditTime: 2021-10-27 19:35:30
* @LastEditTime: 2021-10-28 13:01:22
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/mixins/index.js
@ -73,8 +73,42 @@ export default {
sClock += mm + "";
if (ss < 10) sClock += "0";
sClock += ss;
return clock+sClock;
return clock + sClock;
},
},
filters: {
// 处理超出字后面...
doStr(str, n) {
let totalCount = 0;
let txt = "";
for (var i = 0; i < str.length; i++) {
let c = str.charCodeAt(i);
if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
totalCount++;
} else {
totalCount += 2;
}
if(totalCount <= n) {
txt += str[i];
} else {
txt += '...';
return txt
}
}
return txt;
},
// 数字转化成金额
formatMoney(val, places, symbol, thousand, decimal) {
places = !isNaN(places = Math.abs(places)) ? places : 2;
symbol = symbol !== undefined ? symbol : "¥";
thousand = thousand || ",";
decimal = decimal || ".";
let number = !isNaN(parseFloat(val)) ? parseFloat(val) : 0;
let negative = number < 0 ? "-" : "";
let i = parseInt(number = Math.abs(+val || 0).toFixed(places), 10) + "";
let j = (j = i.length) > 3 ? j % 3 : 0;
return symbol + negative + (j ? i.substr(0, j) + thousand : "") + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousand) + (places ? decimal + Math.abs(number - i).toFixed(places).slice(2) : "");
}
}
})
}

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-13 09:28:02
* @LastEditTime: 2021-10-26 16:36:19
* @LastEditTime: 2021-10-28 14:00:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/request/index.js
@ -9,6 +9,7 @@
import axios from 'axios';
import qs from 'qs';
import router from "@/permission"
import { message} from 'ant-design-vue'
function filterRequestData(obj) {
let o = {};
for(let key in obj) {
@ -62,7 +63,9 @@ httpService.interceptors.response.use(response => {
totalNum = res.totalNum || 0;
return {data,data1, msg, totalNum};
} else {
return Promise.reject(new Error(res))
msg = res.Msg || "";
message.error(msg);
return Promise.reject(new Error(msg))
}
},err => {
// TODO:具体的code对应的处理可继续添加修改

@ -14,3 +14,10 @@
border-top: 1px solid transparent;
margin-top: -1px;
}
.eds {
display:inline-block;
width: 80%;
overflow : hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

@ -1,11 +1,12 @@
/*
* @Author: your name
* @Date: 2021-10-15 15:15:27
* @LastEditTime: 2021-10-15 17:44:34
* @LastEditTime: 2021-10-28 15:44:36
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/BrandComparison/channelDistribution/opt.js
*/
let colors = ['#3373CC', '#63AECC', '#54BF93', '#CC9D12', '#CC7733', "#CC5B41", '#452b74', '#71686f']
export default function createOpt() {
return {
grid: {
@ -15,6 +16,7 @@ export default function createOpt() {
bottom: "16px",
containLabel: true,
},
color: colors,
legend: {
data: ['奥迪', '宝马', '奔驰', '吉利', '大众', '别克'],
textStyle: { //图例文字的样式

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-12 11:06:58
* @LastEditTime: 2021-10-27 10:52:22
* @LastEditTime: 2021-10-28 15:18:16
* @LastEditors: Please set LastEditors
* @Description: 热门事件
* @FilePath: /data-show/src/views/BrandInsight/popularEvents/index.vue
@ -16,6 +16,7 @@
</template>
<script>
import moment from "moment";
import { getHotEventsType } from "@/api/BrandInsight";
import createOpt from "./opt";
export default {
@ -28,10 +29,10 @@ export default {
sBrand: "",
token: "",
},
opt:{},
opt: {},
};
},
created() {
created() {
this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || this.brand;
this.getData();
@ -44,14 +45,27 @@ export default {
let data = res.data;
let arr = data.Data || [];
let type = data.Type || {};
let obj = {}
Object.keys(type).forEach(ele => {
obj[ele] = []
})
arr.forEach(ele => {
let a = [ele.minSourcetime, ele.events_count*1, ele.events_influence, ele.events_brand, ele.events_title, ele.events_type, ele.maxSourcetime, ele.summary ]
obj[ele.events_type].push(a);
})
let obj = {};
Object.keys(type).forEach((ele) => {
obj[ele] = [];
});
arr.forEach((ele) => {
let m1 = moment(ele.minSourcetime);
let m2 = moment(ele.maxSourcetime);
let duration = m2.diff(m1, "minute");
// let str= moment.utc(time).format('HH:mm')
let a = [
duration,
ele.events_count * 1,
ele.events_influence,
ele.events_brand,
ele.events_title,
ele.events_type,
ele.maxSourcetime,
ele.summary,
];
obj[ele.events_type].push(a);
});
this.opt = createOpt(obj);
this.load = false;
});

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-12 11:16:44
* @LastEditTime: 2021-10-27 09:06:14
* @LastEditTime: 2021-10-28 15:19:16
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/BrandInsight/popularEvents/opt.js
@ -15,6 +15,7 @@
// [['12:00',4,300000000,'E4','7-10年经验'],['08:00',0.77,300000000,'E3','7-10年经验'],['04:00',0.83,300000000,'E2','7-10年经验']],
// [['16:00',1.04,350000000,'F5','10年以上经验'],['08:00',1.54,350000000,'F3','10年以上经验'],['04:00',2.5,350000000,'F2','10年以上经验']],
// ];
import moment from "moment";
function createData(obj = {}) {
let arr = [];
for (let key in obj) {
@ -63,11 +64,11 @@ export default function createOpt(ds = {}) {
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;",
formatter: (p) => {
let data = p.data;
return `<span>${data[5]}-${data[3]}</span><br><span>${data[4]}</span><br><span>时间:${data[0]} ~ ${data[6]}</span><br/><span>影响力:${data[2]}</span>`;
return `<span>${data[5]}-${data[3]}</span><br><span>${data[4]}</span><br><span>影响力:${data[2]}</span>`;
}
},
xAxis: {
type: 'category',
type: 'time',
boundaryGap: false,
axisTick: {
show: false,
@ -78,9 +79,15 @@ export default function createOpt(ds = {}) {
color: "#fff",
},
},
// data: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', '24:00'],
axisLabel : {
formatter: (value) => {
let str = value.substring(10,16)
console.log(value)
var str= moment.utc(value).format('HH:mm');
// let str = value.substring(10,16)
return str;
}
},

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-12 10:50:44
* @LastEditTime: 2021-10-27 10:52:35
* @LastEditTime: 2021-10-28 13:23:54
* @LastEditors: Please set LastEditors
* @Description: 热门事件列表
* @FilePath: /data-show/src/views/BrandInsight/popularEventsList/index.vue
@ -31,12 +31,7 @@ export default {
iPageSize: 100,
},
config: {
headerBGC: "#0F2A4D",
oddRowBGC: "rgba(69, 149, 244, 0);",
evenRowBGC: "#0F2A4D;",
columnWidth: [400],
header: ["事件列表", "影响力", "时间", "关联车型"],
data: [],
},
};
},
@ -62,9 +57,9 @@ export default {
arr.push(a);
});
this.config = {
headerBGC: "#0F2A4D",
oddRowBGC: "rgba(69, 149, 244, 0);",
evenRowBGC: "#0F2A4D;",
headerBGC: "#1b4062",
oddRowBGC: "#090f4d",
evenRowBGC: "rgba(69, 149, 244, 0)",
columnWidth: [400],
rowNum: 5,
header: ["事件列表", "影响力", "时间", "关联车型"],

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-12 09:32:35
* @LastEditTime: 2021-10-27 13:38:10
* @LastEditTime: 2021-10-28 13:12:46
* @LastEditors: Please set LastEditors
* @Description: 舆情传播趋势
* @FilePath: /data-show/src/views/BrandInsight/titsopo/index.vue
@ -64,7 +64,7 @@ export default {
},
//
goIDE() {
this.$router.push({path: '/industryDataExport',query: {token: this.getToken, action: 'getList', sType: 'BrandData', brand: this.form.sBrand }})
this.$router.push({path: '/industryDataExport',query: {token: this.getToken, action: 'getList', sType: 'BrandData', brand: this.form.sBrand, title: "品牌-行业数据" }})
},
//
clickEchars(data = []) {
@ -97,7 +97,7 @@ export default {
let sTimeType = 4;
this.$router.push({
path: "/industryDataExport",
query: { startTime, endTime, qudao, sTimeType, token: this.getToken, action: 'getList', sType: 'BrandData', brand: this.form.sBrand },
query: { startTime, endTime, qudao, sTimeType, token: this.getToken, action: 'getList', sType: 'BrandData', brand: this.form.sBrand, title: "品牌-行业数据" },
});
}
}

@ -108,7 +108,7 @@ export default {
let sTimeType = 4;
this.$router.push({
path: "/industryDataExport",
query: { startTime, endTime, series, sTimeType, action: 'getListHome', sType: 'Home' },
query: { startTime, endTime, series, sTimeType, action: 'getListHome', sType: 'Home', title: "行业数据" },
});
},
},

@ -1,50 +1,50 @@
<!--
* @Author: xw
* @Date: 2021-10-09 14:25:05
* @LastEditTime: 2021-10-26 18:38:12
* @LastEditTime: 2021-10-28 11:56:49
* @LastEditors: Please set LastEditors
* @Description: 大数据统计gif
* @FilePath: /data-show/src/views/Index/dynamicNumber/index.vue
-->
<template>
<div class="dy-outter" v-loading="load">
<div class="d1">
<div class="d1" @click="handlerClick(6)">
<span class="s1">APP</span>
<span class="s2">
<countTo :startVal='form.app-100 >= 0 ? form.app-100 : 0' :endVal='form.app' :duration='3000'></countTo>
</span>
</div>
<div class="d1 dd1">
<div class="d1 dd1" @click="handlerClick(8)">
<span class="s1">其他</span>
<span class="s2">
<countTo :startVal='form.other-100 >= 0 ? form.other-100 : 0' :endVal='form.other' :duration='3000'></countTo>
</span>
</div>
<div class="d1 dd2">
<div class="d1 dd2" @click="handlerClick(4)">
<span class="s1">微信</span>
<span class="s2">
<countTo :startVal='form.wecat-100 >= 0 ? form.wecat-100 : 0' :endVal='form.wecat' :duration='3000'></countTo>
</span>
</div>
<div class="d2 dd3">
<div class="d2 dd3" @click="handlerClick(3)">
<span class="s1">
<countTo :startVal='form.forum-100 >= 0 ? form.forum-100 : 0' :endVal='form.forum' :duration='3000'></countTo>
</span>
<span class="s2">论坛</span>
</div>
<div class="d2 dd4">
<div class="d2 dd4" @click="handlerClick(5)">
<span class="s1">
<countTo :startVal='form.weipo-100 >= 0 ? form.weipo-100 : 0' :endVal='form.weipo' :duration='3000'></countTo>
</span>
<span class="s2">微博</span>
</div>
<div class="d2 dd5">
<div class="d2 dd5" @click="handlerClick(1)">
<span class="s1">
<countTo :startVal='form.news-100 >= 0 ? form.news-100 : 0' :endVal='form.news' :duration='3000'></countTo>
</span>
<span class="s2">新闻</span>
</div>
<div class="d3" @click="handlerAllData">
<div class="d3" @click="handlerClick(-1)">
<span class="s1">系统入库 数据总量</span>
<span class="s2">
<countTo :startVal='form.total-100 >= 0 ? form.total-100 : 0' :endVal='form.total' :duration='3000'></countTo>
@ -122,10 +122,10 @@ export default {
});
});
},
//
handlerAllData() {
this.$emit("allData");
},
// //
// handlerAllData() {
// this.$emit("allData");
// },
//
startDyfun(time) {
this.intval = self.setTimeout(() => {
@ -142,6 +142,9 @@ export default {
}
}, time);
},
handlerClick(n) {
this.$emit("allData", n);
}
},
};
</script>
@ -166,6 +169,7 @@ export default {
align-items: center;
top: 240px;
left: 0px;
cursor: pointer;
.s1 {
display: block;
font-size: 18px;
@ -192,6 +196,7 @@ export default {
align-items: center;
top: 240px;
left: 0px;
cursor: pointer;
.s2 {
display: block;
font-size: 18px;

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 09:17:42
* @LastEditTime: 2021-10-26 19:05:39
* @LastEditTime: 2021-10-28 12:26:41
* @LastEditors: Please set LastEditors
* @Description: 行业洞察
* @FilePath: /data-show/src/views/Index/index.vue
@ -32,7 +32,11 @@
<!--对话框-->
<v-modal :eleStyle="{ width: '86rem', height: '50rem' }" :visible.sync="modalObj.visible" :title="modalObj.title">
<div slot="body" :style="{padding: '16px'}">
<dv-scroll-board :config="config" style="width:83.5rem;height:44.5rem" />
<v-table :columns="columns" :data="tbData" :loading="tableLoading" row-key="id">
<template slot="titlex" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text }}</a>
</template>
</v-table>
</div>
</v-modal>
</div>
@ -68,51 +72,69 @@ export default {
title: "全网数据实时动态",
visible: false,
},
config: {
headerBGC: "#0F2A4D",
oddRowBGC: "rgba(69, 149, 244, 0);",
evenRowBGC: "#0F2A4D;",
columnWidth: [460],
rowNum: 10,
header: ["标题", "发布时间", "作者", "来源"],
data: [],
form: {
sQuDao: "",
},
tbData: [],
tableLoading: false,
columns: [
{
title: "标题",
key: "title",
dataIndex: "title",
scopedSlots: { customRender: "titlex" },
ellipsis: true,
},
{
title: "发布时间",
key: "sourcetime",
dataIndex: "sourcetime",
width: 180,
},
{
title: "作者",
key: "user_author",
dataIndex: "user_author",
width: 160,
},
{
title: "来源",
key: "source",
dataIndex: "source",
width: 120,
},
],
};
},
created() {
this.getTableList();
},
mounted() {
// this.getTableList();
},
mounted() {},
methods: {
handlerAllData() {
this.modalObj.visible = true;
handlerAllData(key) {
this.form.sQuDao = key;
this.getTableList().then(() => {
this.modalObj.visible = true;
})
},
getTableList() {
getHomeList0528(this.getCommTime).then((res) => {
let arr = [];
if (Array.isArray(res.data)) {
res.data.forEach((ele) => {
let a = [
ele._source.title,
ele._source.estime,
ele._source.user_author,
ele._source.source,
];
arr.push(a);
return new Promise((resolve, reject) => {
let obj = Object.assign({}, this.getCommTime, this.form);
this.tableLoading= true;
getHomeList0528(obj).then((res) => {
let data = res.data || [];
let arr = [];
data.forEach((ele) => {
let _source = ele._source;
arr.push(_source);
});
this.config = {
headerBGC: "#0F2A4D",
oddRowBGC: "rgba(69, 149, 244, 0);",
evenRowBGC: "#0F2A4D;",
columnWidth: [460],
rowNum: 10,
header: ["标题", "发布时间", "作者", "来源"],
data: arr,
};
}
this.tbData = arr;
this.tableLoading = false;
resolve(arr)
}).catch(() => {
reject(false)
});
});
},
},
@ -137,4 +159,8 @@ export default {
}
}
}
/deep/ .ant-table-body {
max-height: 670px;
overflow: auto;
}
</style>

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-08 15:56:35
* @LastEditTime: 2021-10-26 19:01:30
* @LastEditTime: 2021-10-28 14:15:00
* @LastEditors: Please set LastEditors
* @Description: 实时事件
* @FilePath: /data-show/src/views/Index/realTimeEvent/index.vue
@ -11,7 +11,7 @@
<div class="rte-outter" v-loading="load">
<v-label-div title="实时事件"></v-label-div>
<div class="rte-tb">
<dv-scroll-board :config="config" :style="{ width: '100%', height: '15rem' }" />
<dv-scroll-board :config="config" :style="{ width: '100%', height: '15rem' }" @click="handlerSs"/>
</div>
</div>
</template>
@ -37,18 +37,18 @@ export default {
if (Array.isArray(res.data)) {
res.data.forEach((ele) => {
let a = [
ele.events_title,
`<span style="cursor: pointer;">${ele.events_title}</span>`,
ele.events_influence,
ele.events_brand,
];
arr.push(a);
});
this.config = {
headerBGC: "#0F2A4D",
oddRowBGC: "rgba(69, 149, 244, 0);",
evenRowBGC: "#0F2A4D;",
columnWidth: [260],
rowNum: 5,
headerBGC: "#1b4062",
oddRowBGC: "#090f4d",
evenRowBGC: "rgba(69, 149, 244, 0)",
columnWidth: [230],
rowNum: 5,
header: ["事件标题", "影响力", "关联品牌"],
data: arr,
};
@ -56,6 +56,9 @@ export default {
this.load = false;
});
},
handlerSs(row) {
console.log(row)
}
},
};
</script>

@ -1,11 +1,12 @@
/*
* @Author: your name
* @Date: 2021-10-09 11:01:19
* @LastEditTime: 2021-10-21 14:55:41
* @LastEditTime: 2021-10-28 15:33:03
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js
*/
let colors = ['#3572c5', '#589ab8', '#439e7e', '#a78214', '#995d2d', "#a54347", '#452b74', '#71686f']
function createData(ds = []) {
let arr = [];
for (let i = 0; i < ds.length; i++) {
@ -54,6 +55,7 @@ export default function createOpt(dx = [], ds = []) {
},
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;"
},
color: colors,
legend: {
textStyle: { //图例文字的样式
color: '#fff'

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-09 09:49:50
* @LastEditTime: 2021-10-21 17:33:00
* @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
@ -47,7 +47,7 @@ export default function createOpt(ds = [], color = []) {
emphasis: {
label: {
show: true,
fontSize: '20',
fontSize: '16',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-11 14:11:04
* @LastEditTime: 2021-10-28 11:10:42
* @LastEditTime: 2021-10-28 13:11:43
* @LastEditors: Please set LastEditors
* @Description: 行业数据导出
* @FilePath: /data-show/src/views/IndustryDataExport/index.vue
@ -10,7 +10,7 @@
<div class="d-container">
<div class="i-d-e-outter">
<div class="i-d-e-inner">
<v-label-div title="行业数据">
<v-label-div :title="title">
<v-btn @click="handlerBack"></v-btn>
</v-label-div>
<div class="ide-d1">
@ -43,7 +43,7 @@
</div>
<v-table :row-selection="rowSelection" :columns="columns" :data="tbData" :loading="tableLoading" :pagination="pagination" @change="handlerPage">
<template slot="titlex" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text }}</a>
<a :href="record.url" style="color: #fff" target="_blank">{{ text|doStr(100) }}</a>
<a-tag color="#108ee9" v-if="record.affections === 1"></a-tag>
<a-tag color="#fece42" v-if="record.affections === 3"></a-tag>
<a-tag color="#cb7632" v-if="record.affections === 2"></a-tag>
@ -87,6 +87,7 @@ export default {
name: "IndustryDataExport",
data() {
return {
title: "",
quDao: [],
quDaoAll: "全部",
qdIndeterminate:true,

@ -1,7 +1,7 @@
/*
* @Author: your name
* @Date: 2021-10-27 15:29:37
* @LastEditTime: 2021-10-28 11:10:10
* @LastEditTime: 2021-10-28 13:10:59
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/IndustryDataExport/tableEvent.js
@ -27,6 +27,7 @@ import { getExcel } from "@/api/comm"
export default {
// 初始化页面
initDoc() {
this.title = this.$route.query.title || '行业数据'
Promise.all([
this.getQuDao(),
this.getQingGan(),

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-23 15:34:18
* @LastEditTime: 2021-10-23 17:13:16
* @LastEditTime: 2021-10-28 13:37:02
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/Myself/phoneForm/index.vue
@ -29,7 +29,7 @@ export default {
if (value === "") {
callback(new Error("请输入手机号"));
} else {
let reg = /^1\d{10}$/;
let reg = /^1[3456789]\d{9}$/;
if (!reg.test(value)) {
callback(new Error("请输入正确的手机号"));
} else {

Loading…
Cancel
Save