lyl车型洞察事件详情

prod
阿丽 3 years ago
parent eb903b0f4d
commit 58c1fc268b

@ -0,0 +1,61 @@
import httpService from "@/request"
// 事件洞察详情
export function getNegativeTopic(params) {
let obj = Object.assign({action: 'getNegativeTopic',sType: 'BbsSeries'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 热点事件传播导向
export function getPropagationDirection0528(params) {
let obj = Object.assign({action: 'getPropagationDirection0528',sType: 'HotEvent0528'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 事件洞察列表
export function getHotEventsList(params) {
let obj = Object.assign({action: 'getHotEventsList',sType: 'HotEvent'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 热点事件渠道分布
export function getEventsSourceTypeByEventsType0528(params) {
let obj = Object.assign({action: 'getEventsSourceTypeByEventsType0528',sType: 'HotEvent0528'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 品牌数据-数据传播总量
export function getBrandOverviewCount0528(params) {
let obj = Object.assign({action: 'getBrandOverviewCount0528', sType: 'BrandOverview'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}

@ -54,7 +54,6 @@ export default {
this.getDdta();
},
methods: {
getDdta() {
let obj = Object.assign({}, this.getCtime2, this.form);
this.load = true;

@ -15,7 +15,7 @@
</template>
<script>
import {getEventsSourceTypeByEventsType0528} from '@/api/EventDetails'
import {getEventsSourceTypeByEventsType0528} from '@/api/ModelEventdetails'
import createOpt from "./opt";
export default {
name: "MEDDistributionOfHotEventChannels",
@ -23,6 +23,7 @@ export default {
return {
opt: {},
form: {
sSeriesName: "",
sBrand: "",
token: ""
}
@ -30,6 +31,7 @@ export default {
},
created() {
this.form.token = this.getToken;
this.form.sSeriesName = this.getModel.name;
this.form.sBrand = this.getBrand.brandname || '奥迪';
this.getDdta();
},

@ -12,7 +12,7 @@
<v-btn @click="goback"></v-btn>
</div>
<div class="ec-inner">
<span class="ec-label">{{model}}</span>
<span class="ec-label">{{this.form.sSeriesName}}</span>
<div class="ec-footer">
<img class="m1" src="../../../assets/images/BrandInsight/ic_glsl.png" />
<a-popover title="事件关联数量">
@ -30,51 +30,47 @@
</div>
<div class="ec-footer-1">
<img class="m1" src="../../../assets/images/ModelInsight/ic_ppzb.png" />
<a-popover title="事件关联数量">
<template slot="content">
<div class="pd-item" v-for="(item,index) in list" :key="index">
<span>{{item.key}}</span>
<span>{{item.value}}</span>
</div>
</template>
<div class="d1">
<span class="s1">{{zolNum|formatMoney(0,'',',')}}</span>
<span class="s2">品牌传播占比</span>
</div>
</a-popover>
<div class="d1">
<span class="s1">{{countPercent}}%</span>
<span class="s2">品牌传播占比</span>
</div>
</div>
</div>
</div>
</template>
<script>
import { getBrandOverviewCount0528 } from "@/api/EventDetails";
import { getBrandOverviewCount0528 } from "@/api/ModelEventdetails";
export default {
name: "MEDEventCorrelation",
data() {
return {
brand: "",
model: "",
form: {
sSeriesName: "",
sBrand: "",
token: "",
},
zolNum: 0,
countPercent: 0,
list: [],
};
},
created() {
this.form.token = this.getToken;
this.brand = this.getBrand.brandname || "奥迪";
this.model = this.getModel.name
this.getDdta();
this.form.sBrand = this.getBrand.brandname || "奥迪";
this.form.sSeriesName = this.getModel.name;
this.getData();
},
methods: {
getDdta() {
//
getData() {
let obj = Object.assign({}, this.getCtime2, this.form);
getBrandOverviewCount0528(obj).then((res) => {
let data = res.data;
this.zolNum = data.count;
this.countPercent = data.countPercent;
this.list = data.data;
});
},

@ -17,22 +17,25 @@
</template>
<script>
import {getPropagationDirection0528} from '@/api/EventDetails'
import {getPropagationDirection0528} from '@/api/ModelEventdetails'
import createOpt from "./opt"
export default {
name: "MEDHotEventPropagationOriented",
props: ["brand"],
data() {
return {
load: false,
opt: createOpt(),
form: {
sBrand: "",
sSeriesName: "",
token: ""
}
}
},
created() {
this.form.token = this.getToken;
this.form.sSeriesName = this.getModel.name;
this.form.sBrand = this.getBrand.brandname || '奥迪';
this.getDdta();
},
@ -44,7 +47,8 @@ export default {
let data = res.data;
let population = data.links;
let citylist = data.data;
this.opt = createOpt(citylist, population)
this.opt = createOpt(citylist, population);
this.load = false;
})
}

@ -20,7 +20,7 @@
</template>
<script>
import { getHotEventsList } from "@/api/EventDetails";
import {getHotEventsList} from '@/api/ModelEventdetails'
export default {
name: "MEDHotOther",
data() {
@ -31,6 +31,7 @@ export default {
ssBrand: "",
iPageIndex: 1,
iPageSize: 20,
sSeriesName: "",
},
total: 0,
config: {
@ -39,6 +40,7 @@ export default {
},
created() {
this.form.token = this.getToken;
this.form.sSeriesName = this.getModel.name;
this.form.sBrand = this.getBrand.brandname || "奥迪";
this.getDdta();
},

@ -107,8 +107,8 @@ export default {
this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪";
this.getUserSeriesName().then(() => {
this.getData();
});
this.getData();
});
},
methods: {

Loading…
Cancel
Save