阿丽 3 years ago
parent 9159277317
commit d2815b8293

@ -181,27 +181,27 @@ export function getWebsite(params) {
}) })
} }
// 尾翼分析-正面词云 // 尾翼分析-正面词云
// export function getPositive(params) { export function getPositive1(params) {
// let obj = Object.assign({action: 'getPositive', sType: 'BrandWeiYi'}, params) let obj = Object.assign({action: 'getPositive', sType: 'BrandWeiYi'}, params)
// return httpService({ return httpService({
// url: `/api/v6.ashx`, url: `/api/v6.ashx`,
// method: 'post', method: 'post',
// data: obj, data: obj,
// headers: { headers: {
// 'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/x-www-form-urlencoded'
// } }
// }) })
// } }
// 尾翼分析-负面词云 // 尾翼分析-负面词云
// export function getNegative(params) { export function getNegative1(params) {
// let obj = Object.assign({action: 'getNegative', sType: 'BrandWeiYi'}, params) let obj = Object.assign({action: 'getNegative', sType: 'BrandWeiYi'}, params)
// return httpService({ return httpService({
// url: `/api/v6.ashx`, url: `/api/v6.ashx`,
// method: 'post', method: 'post',
// data: obj, data: obj,
// headers: { headers: {
// 'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/x-www-form-urlencoded'
// } }
// }) })
// } }

@ -105,8 +105,9 @@ export default {
data() { data() {
return { return {
form: { form: {
sBrand: "",
token: "", token: "",
sRele: "",
sTimeType: "",
}, },
props: { props: {
id: { id: {
@ -120,8 +121,7 @@ export default {
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.events_id = this.$route.query.events_id || "";
this.getDdta(); this.getDdta();
}, },
methods: { methods: {

@ -66,7 +66,7 @@ export default {
}); });
}, },
getDdta() { getDdta() {
let obj = Object.assign({}, this.getCtime2, this.form); let obj = Object.assign({}, this.form);
this.load = true; this.load = true;
getSourcetypeTime(obj).then((res) => { getSourcetypeTime(obj).then((res) => {
let data = res.data || []; let data = res.data || [];

@ -112,7 +112,6 @@ export default {
getEventData(obj).then(res => { getEventData(obj).then(res => {
let data = res.data || []; let data = res.data || [];
this.eventObj = {...data[0]._source}; this.eventObj = {...data[0]._source};
console.log(this.eventObj)
this.load = false; this.load = false;
}) })
}, },

@ -35,9 +35,9 @@ export default {
}, },
}, },
form: { form: {
sBrand: "",
token: "", token: "",
sSeriesName: "", sRele: "",
}, },
d1: [], d1: [],
d2: [], d2: [],
@ -45,8 +45,7 @@ export default {
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || this.brand; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getData(); this.getData();
}, },
methods: { methods: {

@ -72,8 +72,8 @@ export default {
sum: "", sum: "",
form: { form: {
token: "", token: "",
sBrand: "", sRele: "",
sSeriesName: ""
}, },
countObj: { countObj: {
carseriesCount: 0, carseriesCount: 0,
@ -140,8 +140,7 @@ export default {
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getData(); this.getData();
}, },
methods: { methods: {

@ -29,7 +29,7 @@
<script> <script>
import createWordCloud from "@/utils/gol/bubbleWord"; import createWordCloud from "@/utils/gol/bubbleWord";
import { getEventData } from "@/api/EventdEC"; import { getSource } from "@/api/EventdEC";
import { getHotWord, getPositive, getNegative } from "@/api/EventdEC"; import { getHotWord, getPositive, getNegative } from "@/api/EventdEC";
export default { export default {
name: "mediaInterpretationEc", name: "mediaInterpretationEc",
@ -47,16 +47,15 @@ export default {
}, },
form: { form: {
token: "", token: "",
sBrand: "", sRele: "",
sSeriesName: "",
}, },
config: {}, config: {},
}; };
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getDdta(); this.getDdta();
this.getData1(); this.getData1();
}, },
@ -97,11 +96,9 @@ export default {
// //
getDdta() { getDdta() {
let obj = Object.assign({}, this.form); let obj = Object.assign({}, this.form);
this.load = true; getSource(obj).then((res) => {
getEventData(obj).then((res) => {
let data = res.data || []; let data = res.data || [];
let totalNum = res.totalNum || 0; this.list = data;
this.total = totalNum;
let arr = []; let arr = [];
data.forEach((ele) => { data.forEach((ele) => {
let a = [ele.events_title, ele.events_number]; let a = [ele.events_title, ele.events_number];

@ -19,7 +19,7 @@
<script> <script>
import createWordCloud from "@/utils/gol/bubbleWord"; import createWordCloud from "@/utils/gol/bubbleWord";
import { getPositive, getNegative } from "@/api/TailInsightdetails"; import { getPositive1, getNegative1 } from "@/api/TailInsightdetails";
export default { export default {
name: "pnwcWord", name: "pnwcWord",
props: ["brand", "model"], props: ["brand", "model"],
@ -34,17 +34,16 @@ export default {
}, },
}, },
form: { form: {
sBrand: "",
token: "", token: "",
sSeriesName: "", sRele: "",
}, },
opt: {}, opt: {},
}; };
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getData1(); this.getData1();
}, },
methods: { methods: {
@ -59,7 +58,7 @@ export default {
getData1() { getData1() {
this.load = true; this.load = true;
let obj = Object.assign({}, this.form); let obj = Object.assign({}, this.form);
getPositive(obj).then((res) => { getPositive1(obj).then((res) => {
let data = res.data; let data = res.data;
this.opt = createWordCloud(data); this.opt = createWordCloud(data);
this.load = false; this.load = false;
@ -68,7 +67,7 @@ export default {
getData2() { getData2() {
this.load = true; this.load = true;
let obj = Object.assign({}, this.form); let obj = Object.assign({}, this.form);
getNegative(obj).then((res) => { getNegative1(obj).then((res) => {
let data = res.data; let data = res.data;
this.opt = createWordCloud(data); this.opt = createWordCloud(data);
this.load = false; this.load = false;

@ -34,17 +34,15 @@ export default {
}, },
}, },
form: { form: {
sBrand: "",
token: "", token: "",
sSeriesName: "", sRele: "",
}, },
}; };
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getDdta(); this.getDdta();
}, },
methods: { methods: {

@ -42,7 +42,7 @@ export default {
form: { form: {
token: "", token: "",
sRele: "", sRele: "",
sTimeType: "",
}, },
}; };
}, },

@ -48,9 +48,9 @@ export default {
load: false, load: false,
opt: createOpt(), opt: createOpt(),
form: { form: {
sBrand: "",
token: "", token: "",
sSeriesName: "", sRele: "",
}, },
props: { props: {
id: { id: {
@ -65,8 +65,7 @@ export default {
}, },
created() { created() {
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪"; this.form.sRele = this.id;
this.form.sSeriesName = this.getModel.name;
this.getDdta(); this.getDdta();
}, },
methods: { methods: {

Loading…
Cancel
Save