|
|
|
@ -38,6 +38,7 @@ export default {
|
|
|
|
|
this.getQingGan(),
|
|
|
|
|
this.getQueryType(),
|
|
|
|
|
this.getQuDao(),
|
|
|
|
|
this.getCrisis(),
|
|
|
|
|
]).then(() => {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sGuid = this.$route.query.sGuid;
|
|
|
|
@ -46,8 +47,12 @@ export default {
|
|
|
|
|
this.form.listType = '0';
|
|
|
|
|
this.form.isSourcetype = 0;
|
|
|
|
|
this.form.sTitleType = -1;
|
|
|
|
|
|
|
|
|
|
let series = this.$route.query.series || [];
|
|
|
|
|
let qudao = this.$route.query.qudao || [];
|
|
|
|
|
this.doFormQudao(qudao);
|
|
|
|
|
this.plainOptions5 = this.doQingGanAndCrisis();
|
|
|
|
|
this.doFormQS(series);
|
|
|
|
|
|
|
|
|
|
this.form.sTimeType = 4;
|
|
|
|
|
if (this.form.sStartTime && this.form.sEndTime) {
|
|
|
|
@ -61,8 +66,6 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
this.gValue = x;
|
|
|
|
|
}
|
|
|
|
|
this.doFormQudao(qudao);
|
|
|
|
|
this.doFormQS(series);
|
|
|
|
|
this.getTableData();
|
|
|
|
|
this.getListData();
|
|
|
|
|
})
|
|
|
|
@ -125,16 +128,30 @@ export default {
|
|
|
|
|
this.qdCheckAll = this.quDao.length === this.plainOptions.length;
|
|
|
|
|
this.form.sQuDao = this.quDao.toString();
|
|
|
|
|
} else if (type === "diaoXing") {
|
|
|
|
|
this.dxIndeterminate = !!this.diaoXing.length && this.diaoXing.length < this.plainOptions1.length;
|
|
|
|
|
this.dxCheckAll = this.diaoXing.length === this.plainOptions1.length;
|
|
|
|
|
// this.doFormQS(this.diaoXing);
|
|
|
|
|
this.form.sQingGan = this.diaoXing.toString();
|
|
|
|
|
this.dxIndeterminate = !!this.diaoXing.length && this.diaoXing.length < this.plainOptions5.length;
|
|
|
|
|
this.dxCheckAll = this.diaoXing.length === this.plainOptions5.length;
|
|
|
|
|
this.doFormQS(this.diaoXing);
|
|
|
|
|
|
|
|
|
|
// this.form.sQingGan = this.diaoXing.toString();
|
|
|
|
|
}
|
|
|
|
|
this.form.iPageIndex = 1;
|
|
|
|
|
Promise.all([this.getTableData(),this.getListData()]).then(() => {
|
|
|
|
|
this.noClick = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 处理情感和负面等级
|
|
|
|
|
doQingGanAndCrisis() {
|
|
|
|
|
let arr = [];
|
|
|
|
|
let tes = [...this.plainOptions1, ...this.plainOptions3];
|
|
|
|
|
tes.forEach((ele) => {
|
|
|
|
|
let obj = {
|
|
|
|
|
label: ele.label,
|
|
|
|
|
value: ele.label,
|
|
|
|
|
};
|
|
|
|
|
arr.push(obj);
|
|
|
|
|
});
|
|
|
|
|
return arr;
|
|
|
|
|
},
|
|
|
|
|
//渠道全选
|
|
|
|
|
onCheckAllChangeQd(e) {
|
|
|
|
|
let arr = [];
|
|
|
|
@ -159,7 +176,7 @@ export default {
|
|
|
|
|
//调性全选
|
|
|
|
|
onCheckAllChangeDx(e) {
|
|
|
|
|
let arr = [];
|
|
|
|
|
this.plainOptions1.forEach(ele => {
|
|
|
|
|
this.plainOptions5.forEach(ele => {
|
|
|
|
|
let value = ele.value;
|
|
|
|
|
arr.push(value)
|
|
|
|
|
})
|
|
|
|
|