From c4362a0d00e4093af123bd8d4b97ce30f54e37f0 Mon Sep 17 00:00:00 2001 From: liuyongli <1598631486@qq.com> Date: Wed, 17 Nov 2021 14:10:59 +0800 Subject: [PATCH] no message --- src/permission.js | 2 +- .../incidentSpreadSituation/index.vue | 23 +++++----- src/views/EventDEC/kmdED/index.vue | 16 +++---- .../EventDEC/mediaInterpretationED/index.vue | 43 ++++++------------- .../EventDEC/mediaInterpretationEc/index.vue | 23 ++++------ src/views/EventDEC/pnwcWord/index.vue | 39 +++++++++-------- src/views/EventDEC/wbUserEDE/index.vue | 15 +++---- 7 files changed, 68 insertions(+), 93 deletions(-) diff --git a/src/permission.js b/src/permission.js index 752e800..cd14f8b 100644 --- a/src/permission.js +++ b/src/permission.js @@ -30,7 +30,7 @@ router.afterEach(() => { // 检查菜单权限 function checkMenu(path, next) { let menuStr = store.getters.getMenu || []; - let arr = ['/index', '/modelInsight', '/eventInsight', '/marketingAnalysis']; + let arr = ['/modelInsight', '/eventInsight', '/marketingAnalysis']; let n = menuStr.findIndex(ele => ele.link === path); if(arr.includes(path) && n === -1) next('/index') else next() diff --git a/src/views/EventDEC/incidentSpreadSituation/index.vue b/src/views/EventDEC/incidentSpreadSituation/index.vue index 2a36ce8..2e8328b 100644 --- a/src/views/EventDEC/incidentSpreadSituation/index.vue +++ b/src/views/EventDEC/incidentSpreadSituation/index.vue @@ -9,7 +9,7 @@ - + {{ item.value }} @@ -26,24 +26,24 @@ import createOpt from "./opt"; import { getSourcetypeTime } from "@/api/EventdEC"; export default { name: "incidentSpreadSituation", + props: { + id: { + type: String, + default: "", + }, + }, data() { return { - props: { - id: { - type: String, - default: "", - }, - }, opt: {}, selDatas: [ { key: 34, - value: '小时' + value: "小时", }, { key: 20, - value: '天' - } + value: "天", + }, ], form: { token: "", @@ -56,7 +56,6 @@ export default { this.form.token = this.getToken; this.form.sRele = this.id; this.getDdta(); - }, methods: { getDdta() { @@ -78,7 +77,7 @@ export default { }, // 选择时间 handleChange() { - this.getDdta(); + this.getDdta(); }, }, }; diff --git a/src/views/EventDEC/kmdED/index.vue b/src/views/EventDEC/kmdED/index.vue index c667572..2f90a7d 100644 --- a/src/views/EventDEC/kmdED/index.vue +++ b/src/views/EventDEC/kmdED/index.vue @@ -25,19 +25,19 @@ import { getWebsite } from "@/api/BrandInsight"; export default { name: "kmdED", + props: { + id: { + type: String, + default: "", + }, + }, data() { return { load: false, - props: { - id: { - type: String, - default: "", - }, - }, + form: { token: "", sRele: "", - }, d1: [], d2: [], @@ -59,7 +59,6 @@ export default { return newArray; }, getData() { - this.load = true; let obj = Object.assign({}, this.form); getWebsite(obj).then((res) => { let data = res.data; @@ -71,7 +70,6 @@ export default { let groupedArray = this.group(vals, 5); this.d1 = groupedArray[0]; this.d2 = groupedArray[1]; - this.load = false; }); }, }, diff --git a/src/views/EventDEC/mediaInterpretationED/index.vue b/src/views/EventDEC/mediaInterpretationED/index.vue index 4e7f639..9dd8caf 100644 --- a/src/views/EventDEC/mediaInterpretationED/index.vue +++ b/src/views/EventDEC/mediaInterpretationED/index.vue @@ -23,21 +23,21 @@ 最大层级 - {{ countObj.maxcount }} + {{ sum }} 微博覆盖人数 - {{ countObj.vCount }} + {{ volume}} 总转发人数 - {{ countObj.Count }} + {{ total }} @@ -65,39 +65,25 @@ import { getDiffuseZhuTi } from "@/api/EventdEC"; import createOpt from "./opt"; export default { name: "mediaInterpretationED", + props: { + id: { + type: String, + default: "", + }, + }, data() { return { opt: {}, load: false, - sum: "", + total: 0, + sum: 0, + volume: 0, form: { token: "", sRele: "", - - }, - countObj: { - carseriesCount: 0, - count: 0, - maxcount: 0, - vCount: 0, }, - props: { - id: { - type: String, - default: "", - }, - }, - colors: [ - "#FFB600", - "#886CFF", - "#0084FF", - "#4CB690", - "#58B458", - "#6C6C6C", - "#F56161", - "#FC754C", - "#5F5EEC", - ], + + colors: ["#FFB600", "#886CFF", "#0084FF"], list: [ { title: "新浪汽车", @@ -172,7 +158,6 @@ export default { }); let o = { nodes, edges }; this.opt = createOpt(o); - // this.countObj = Object.assign(this.countObj, data); }); }, }, diff --git a/src/views/EventDEC/mediaInterpretationEc/index.vue b/src/views/EventDEC/mediaInterpretationEc/index.vue index 5e96a98..b9c6369 100644 --- a/src/views/EventDEC/mediaInterpretationEc/index.vue +++ b/src/views/EventDEC/mediaInterpretationEc/index.vue @@ -33,23 +33,22 @@ import { getSource } from "@/api/EventdEC"; import { getHotWord, getPositive, getNegative } from "@/api/EventdEC"; export default { name: "mediaInterpretationEc", - props: ["brand", "model"], + props: { + id: { + type: String, + default: "", + }, + }, data() { return { load: false, opt: {}, type: 0, - props: { - id: { - type: String, - default: "", - }, - }, form: { token: "", sRele: "", - }, + count: 0, config: {}, }; }, @@ -98,10 +97,9 @@ export default { let obj = Object.assign({}, this.form); getSource(obj).then((res) => { let data = res.data || []; - this.list = data; let arr = []; data.forEach((ele) => { - let a = [ele.events_title, ele.events_number]; + let a = [ele.title, ele.count]; arr.push(a); }); this.config = { @@ -116,11 +114,6 @@ export default { this.load = false; }); }, - // 分页处理 - handlerPagnation(page) { - this.form.iPageIndex = page; - this.getDdta(); - }, }, }; diff --git a/src/views/EventDEC/pnwcWord/index.vue b/src/views/EventDEC/pnwcWord/index.vue index bbaa8be..0de0650 100644 --- a/src/views/EventDEC/pnwcWord/index.vue +++ b/src/views/EventDEC/pnwcWord/index.vue @@ -18,7 +18,8 @@ diff --git a/src/views/EventDEC/wbUserEDE/index.vue b/src/views/EventDEC/wbUserEDE/index.vue index f8ac166..bc016cf 100644 --- a/src/views/EventDEC/wbUserEDE/index.vue +++ b/src/views/EventDEC/wbUserEDE/index.vue @@ -43,20 +43,19 @@ import createOpt from "./opt"; import { getAffections } from "@/api/EventdEC"; export default { name: "wbUserEDE", + props: { + id: { + type: String, + default: "", + }, + }, data() { return { load: false, - opt: createOpt(), + opt: {}, form: { token: "", sRele: "", - - }, - props: { - id: { - type: String, - default: "", - }, }, labelArr: [], total: 0,