张雄 3 years ago
parent 5be3a12b90
commit 835d497be4

@ -142,9 +142,9 @@ export default {
handlerChoose(row) {
this.showActive = row.brandid;
this.chooseBrand = row;
console.log(this.chooseBrand)
//console.log(this.chooseBrand)
this.brandname = this.chooseBrand.brandname;
this.getUserSeriesName(this.brandname);
// this.getUserSeriesName(this.brandname);
},
//
getUserSeriesName(brandName) {
@ -160,6 +160,7 @@ export default {
//
handlerSubmit() {
if (this.chooseBrand) {
this.getUserSeriesName(this.brandname);
this.$emit("change", [this.chooseBrand, this.chooseModel]);
this.handlerClose();
} else {

@ -39,18 +39,20 @@ export default {
chooseChange(arr) {
this.$refs.ect.list = arr;
this.subList = arr;
this.setEComparison(this.subList);
},
//
handlerDel(arr) {
this.$nextTick(() => {
this.$refs.erdl.chooseList = arr;
this.subList = arr;
this.setEComparison(this.subList);
})
},
//
handlerBegin() {
if(this.subList.length < 2) {
if(this.subList.length < 2 || (this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "")) {
this.$message.warning('至少2个事件进行对比');
return
}

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-15 09:16:31
* @LastEditTime: 2021-12-07 19:10:42
* @LastEditTime: 2021-11-21 14:58:52
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/lycomponents/iSwitchBrand/index.vue
@ -84,7 +84,7 @@ export default {
})
this.chooseBrand = row;
});
//this.getUserSeriesName(this.brandname);
this.getUserSeriesName(this.brandname);
},
data() {
return {
@ -149,7 +149,7 @@ export default {
newArr = [],
length = arr.length;
for (let i = 0; i < length; i++) {
if (arr[i] === id) {
if (arr[i] === id) {
newArr[0] = arr[i];
} else {
newArr[index++] = arr[i];
@ -162,8 +162,7 @@ export default {
this.showActive = row.brandid;
this.chooseBrand = row;
this.brandname = this.chooseBrand.brandname;
this.getUserSeriesName(this.brandname);
this.chooseModel = null; //
this.getUserSeriesName(this.brandname)
},
//
handlerModel(n, row) {

@ -37,7 +37,11 @@ export default {
},
methods: {
goPath() {
this.$router.push({path: '/eventComparison'})
if(this.getEComparison[0].events_id == "" || this.getEComparison[1].events_id == "") {
this.$router.push({path: '/iSwitchEvent'})
} else {
this.$router.push({path: '/eventComparison'})
}
},
//
getData() {

@ -29,7 +29,7 @@
<script>
import createOpt from "./opt";
import {getCheZhuBrandCount0528, getCheZhuTime0528} from "@/api/home"
import {getBrandName} from "@/api/comm"
import {getBrandName,getUserSeriesName} from "@/api/comm"
export default {
name: "sales-rank",
data() {
@ -129,11 +129,23 @@ export default {
})
} else {
let brand = ele.axisValueLabel;
this.getUserSeriesName(brand); //
this.setBrand({brandname: brand});
this.setHeaderType(3);
this.$router.push("/brandInsight");
}
}
},
//
getUserSeriesName(brandName) {
this.form.token = this.getToken;
this.form.sBrandName = brandName;
getUserSeriesName(this.form).then((res) => {
let data = res.data || [];
this.models = data;
this.chooseModel = this.models[0];
this.setModel(this.chooseModel);
});
},
},
};
</script>

@ -26,7 +26,7 @@
<script>
import createOpt from "./opt";
import { getHomeBrandSourceType0528 } from "@/api/home";
import {getBrandName} from "@/api/comm"
import {getBrandName,getUserSeriesName} from "@/api/comm"
export default {
name: "spread-the-sound",
data() {
@ -99,14 +99,25 @@ export default {
this.setBrand({brandname: res.data})
this.$router.push("/modelInsight");
})
} else {
let brand = ele.axisValueLabel;
this.getUserSeriesName(brand); //
this.setBrand({brandname: brand});
this.setHeaderType(3);
this.$router.push("/brandInsight");
}
}
},
//
getUserSeriesName(brandName) {
this.form.token = this.getToken;
this.form.sBrandName = brandName;
getUserSeriesName(this.form).then((res) => {
let data = res.data || [];
this.models = data;
this.chooseModel = this.models[0];
this.setModel(this.chooseModel);
});
},
},
};
</script>

@ -27,7 +27,7 @@
<script>
import createOpt from "./opt"
import {getWeiYiCountHome0528} from "@/api/home"
import {getBrandName} from "@/api/comm"
import {getBrandName,getUserSeriesName} from "@/api/comm"
export default {
name: "tail-insight",
data() {
@ -104,11 +104,23 @@ export default {
})
} else {
let brand = ele.axisValueLabel;
this.getUserSeriesName(brand);
this.setBrand({brandname: brand});
this.setHeaderType(3);
this.$router.push("/brandInsight");
}
}
},
//
getUserSeriesName(brandName) {
this.form.token = this.getToken;
this.form.sBrandName = brandName;
getUserSeriesName(this.form).then((res) => {
let data = res.data || [];
this.models = data;
this.chooseModel = this.models[0];
this.setModel(this.chooseModel);
});
},
}
};
</script>

@ -34,7 +34,7 @@
</a-form> -->
<div class="rwl-tb">
<v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage">
<template slot="srctitle" slot-scope="text, record">
<template slot="titles" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text|doStr(100) }}</a>
<a-tag color="#108ee9" v-if="record.affections === 1" style="margin-left: 0.6rem;margin-right: 0px;"></a-tag>
<a-tag color="#fece42" v-if="record.affections === 3" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
@ -71,9 +71,9 @@ export default {
columns: [
{
title: "新闻标题",
key: "srctitle",
dataIndex: "srctitle",
scopedSlots: { customRender: "srctitle" },
key: "title",
dataIndex: "title",
scopedSlots: { customRender: "titles" },
},
{
title: "来源",

@ -34,7 +34,7 @@
</a-form>
<div class="rwl-tb">
<v-table :columns="columns" :loading="tableLoading" :data="tdata" :pagination="pagination" @change="handlerPage">
<template slot="srctitle" slot-scope="text, record">
<template slot="titles" slot-scope="text, record">
<a :href="record.url" style="color: #fff" target="_blank">{{ text|doStr(100) }}</a>
<a-tag color="#108ee9" v-if="record.affections === 1" style="margin-left: 0.6rem;margin-right: 0px;"></a-tag>
<a-tag color="#fece42" v-if="record.affections === 3" style="margin-left: 0.6rem;margin-right: 0px"></a-tag>
@ -73,9 +73,9 @@ export default {
columns: [
{
title: "新闻标题",
key: "srctitle",
dataIndex: "srctitle",
scopedSlots: { customRender: "srctitle" },
key: "title",
dataIndex: "title",
scopedSlots: { customRender: "titles" },
},
{
title: "来源",

Loading…
Cancel
Save