yyyyeeee 2 years ago
parent 23b8ba8288
commit 44392554dc

@ -81,27 +81,13 @@ export default {
sStartTime: "", sStartTime: "",
sEndTime: "" sEndTime: ""
}, },
selDatas: [ selDatas: [],
],
}; };
}, },
// watch: {
// $route: {
// handler(val) {
// if (val.path === "/mcIndex") {
// this.timeShow = false;
// } else {
// this.timeShow = true;
// }
// },
// immediate: true,
// },
// },
created() { created() {
this.getSelect() this.getSelect()
}, },
mounted() { mounted() {
this.intDt = self.setInterval(() => { this.intDt = self.setInterval(() => {
let obj = this.getDatetime(); let obj = this.getDatetime();
this.clock = obj.clock; this.clock = obj.clock;

@ -9,7 +9,7 @@
<template> <template>
<div class="d-container"> <div class="d-container">
<div class="bbc-inner"> <div class="bbc-inner">
<brandCompateHeader ref="brandRef" @del="handlerDel"></brandCompateHeader> <brandCompateHeader ref="brandRef" @del="handlerDel" @change="handlerChange"></brandCompateHeader>
<div class="mbc-inner"> <div class="mbc-inner">
<v-label-div title="品牌推荐"> <v-label-div title="品牌推荐">
</v-label-div> </v-label-div>
@ -74,12 +74,28 @@ export default {
obj.isDel = true; obj.isDel = true;
return; return;
} }
} }
}, },
// //
handlerDel(n) { handlerDel(n) {
this.chooseArr[n] = null; this.chooseArr[n] = null;
}, },
handlerChange(val) {
let handlerObj = {brandname: val, seriesname: ""};
for(let i = 0; i < this.chooseArr.length; i++) {
let n = this.chooseArr.findIndex(ele =>{
return ele && ele.brandname === handlerObj.brandname
})
if(!this.chooseArr[i] && n === -1) {
this.chooseArr[i] = handlerObj;
let obj = this.$refs.brandRef.brands[i]
obj.name = handlerObj.brandname;
obj.isDel = true;
return;
}
}
},
// //
handlerSubmit() { handlerSubmit() {
let arr = this.$refs.brandRef.brands || []; let arr = this.$refs.brandRef.brands || [];

@ -105,16 +105,16 @@ export default {
// //
handlerBrand(arr) { handlerBrand(arr) {
let name = arr[0].brandname; let name = arr[0].brandname;
let n = this.brands.findIndex((ele) => ele.name === name); // let n = this.brands.findIndex((ele) => ele.name === name);
if (n === -1) { // if (n === -1) {
let row = this.brands[this.brandIndex]; // let row = this.brands[this.brandIndex];
row.name = name; // row.name = name;
row.isDel = true; // row.isDel = true;
} // }
let filterArr = this.brands.filter((ele) => { // let filterArr = this.brands.filter((ele) => {
return ele.name; // return ele.name;
}); // });
this.$emit("change", filterArr); this.$emit("change", name);
}, },
// //
handlerDel(n) { handlerDel(n) {
@ -128,7 +128,7 @@ export default {
this.setBcStatus(false); this.setBcStatus(false);
} }
this.$emit("del", n); this.$emit("del", n);
this.$emit("change", filterArr); // this.$emit("change", filterArr);
}, },
// //
reCompare() { reCompare() {

@ -175,9 +175,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家' && this.getCarCircle == 1) { if(this.form.sSource == '汽车之家' && this.getCarCircle == 1) {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -38,9 +38,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -95,9 +95,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -59,9 +59,9 @@ export default {
} }
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -60,9 +60,9 @@ export default {
} }
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -41,9 +41,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -70,9 +70,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -40,9 +40,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -36,9 +36,9 @@ export default {
}; };
}, },
created() { created() {
this.form = this.$route.query
this.form.token = this.getToken; this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid; this.form.ilimitType = 0
this.form.sSource = this.$route.query.source || "抖音";
if(this.form.sSource == '汽车之家') { if(this.form.sSource == '汽车之家') {
this.form.ilimitType = 1; this.form.ilimitType = 1;
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) { } else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {

@ -9,7 +9,7 @@
<template> <template>
<div class="d-container"> <div class="d-container">
<div class="mbc-outter"> <div class="mbc-outter">
<brandCompateHeader ref="modelRef" @del="handlerDel"></brandCompateHeader> <brandCompateHeader ref="modelRef" @del="handlerDel" @change="handlerChange"></brandCompateHeader>
<div class="mbc-inner"> <div class="mbc-inner">
<v-label-div title="车型推荐"> <v-label-div title="车型推荐">
</v-label-div> </v-label-div>
@ -68,7 +68,23 @@ export default {
return; return;
} }
} }
},
handlerChange(val) {
let changeObj = {brandname: val[1].brandname, seriesname: val[1].name}
for(let i = 0; i < this.chooseArr.length; i++) {
let ele = this.chooseArr[i];
if(ele && ele.seriesname == changeObj.seriesname) {
return;
}
if(!this.chooseArr[i]) {
this.chooseArr[i] = changeObj;
let obj = this.$refs.modelRef.list[i]
obj.brand = changeObj.brandname;
obj.model = changeObj.seriesname;
obj.isDel = true;
return;
}
}
}, },
// //
getData() { getData() {

@ -152,20 +152,20 @@ export default {
this.setScStatus(false) this.setScStatus(false)
} }
this.$emit("del", n); this.$emit("del", n);
this.$emit("change", filterArr); // this.$emit("change", filterArr);
}, },
// //
handlerBrand(arr) { handlerBrand(arr) {
let n = this.list.findIndex((ele) => ele.model === arr[1].name); // let n = this.list.findIndex((ele) => ele.model === arr[1].name);
if (n != -1) return; // if (n != -1) return;
let row = this.list[this.chooseIndex]; // let row = this.list[this.chooseIndex];
row.brand = arr[1].brandname; // row.brand = arr[1].brandname;
row.model = arr[1].name; // row.model = arr[1].name;
row.isDel = true; // row.isDel = true;
let filterArr = this.list.filter((ele) => { // let filterArr = this.list.filter((ele) => {
return ele.brand && ele.model; // return ele.brand && ele.model;
}); // });
this.$emit("change", filterArr); this.$emit("change", arr);
}, },
// //
reCompare() { reCompare() {

@ -222,14 +222,14 @@ export default {
this.form.sCrisis = val.join(','); this.form.sCrisis = val.join(',');
this.warningForm2.crisis = val.join(','); this.warningForm2.crisis = val.join(',');
this.form.iPageIndex = 1; this.form.iPageIndex = 1;
this.pagination.current = 1; this.pagination2.current = 1;
this.getWarning(); this.getWarning();
this.noClick = false; this.noClick = false;
}, },
statusChange(val, status) { statusChange(val, status) {
this.noClick = true; this.noClick = true;
this.warningForm.iReadState = val.join(','); this.warningForm2.iReadState = val.join(',');
this.warningForm.iPageIndex = 1; this.warningForm2.iPageIndex = 1;
this.pagination2.current = 1; this.pagination2.current = 1;
this.getWarning(); this.getWarning();
this.noClick = false; this.noClick = false;

@ -157,9 +157,7 @@ export default {
this.settingForm.Crisis = val.join(','); this.settingForm.Crisis = val.join(',');
}, },
openChange(e) { /// openChange(e) { ///
let m = e?'预警已开启':'预警已关闭'
this.Statu = e?'0':'1'; this.Statu = e?'0':'1';
this.$message.success(m);
}, },
chooseSeries() { chooseSeries() {
let obj = { let obj = {
@ -189,7 +187,6 @@ export default {
}; };
addOrUpdSwsQyQuartzList(form).then(res => { addOrUpdSwsQyQuartzList(form).then(res => {
if(res.msg == 'Success') { if(res.msg == 'Success') {
// this.setWarningSeries(this.settingForm.SeriesNames);
this.$message.success('修改成功'); this.$message.success('修改成功');
this.visible = false; this.visible = false;
this.reload(); this.reload();

@ -55,7 +55,7 @@ export default {
], ],
list: [], list: [],
form: { form: {
token: '' token: '',
} }
} }
}, },
@ -105,8 +105,15 @@ export default {
this.$router.push({ this.$router.push({
path: '/keyMediaTheme', path: '/keyMediaTheme',
query: { query: {
source: item.label, sSource: item.label,
sGuid: this.$route.query.sGuid sGuid: this.$route.query.sGuid,
sStartTime: this.$route.query.sStartTime,
sEndTime: this.$route.query.sEndTime,
sQuDao: this.$route.query.sQuDao,
sQingGan: this.$route.query.sQingGan,
sTitle: this.$route.query.sTitle,
sTitleType: this.$route.query.sTitleType,
sCrisis: this.$route.query.sCrisis,
} }
}) })
} }

@ -83,11 +83,13 @@ export default {
token: this.getToken, token: this.getToken,
website: this.form.website, website: this.form.website,
sTitle: this.form.sTitle, sTitle: this.form.sTitle,
sTitleType: this.form.sTitleType,
sStartTime: this.form.sStartTime, sStartTime: this.form.sStartTime,
sEndTime: this.form.sEndTime, sEndTime: this.form.sEndTime,
sTimeType: this.form.sTimeType, sTimeType: this.form.sTimeType,
sQuDao: this.form.sQuDao, sQuDao: this.form.sQuDao,
sQingGan: this.form.sQingGan, sQingGan: this.form.sQingGan,
sCrisis: this.form.sCrisis,
name: this.$route.query.name, name: this.$route.query.name,
} }
}) })

Loading…
Cancel
Save