onChange(val, 'diaoXing')" />
关键词:
@@ -122,6 +123,7 @@ export default {
sEndTime: '',
sQuDao: '',
sQingGan: '',
+ sCrisis: '',
iPageIndex: 1,
iPageSize: 20,
sTitle: "",
@@ -163,6 +165,8 @@ export default {
btnTimes2:['不去重','相似度去重'],
//搜索框
plainOptions2:[],
+ plainOptions3: [],
+ plainOptions5: [],
searchTitle: '',
//表格
columns: [
diff --git a/src/views/ThemeData/tableEvent.js b/src/views/ThemeData/tableEvent.js
index 3c0f0de..d6d5da5 100644
--- a/src/views/ThemeData/tableEvent.js
+++ b/src/views/ThemeData/tableEvent.js
@@ -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)
})