diff --git a/src/api/comm/index.js b/src/api/comm/index.js
index 46bf468..5121146 100644
--- a/src/api/comm/index.js
+++ b/src/api/comm/index.js
@@ -168,3 +168,16 @@ export function getBrandOrSeriesLevel(params) {
}
})
}
+
+// 获取查询类型
+export function getQueryType(params) {
+ let obj = Object.assign({action: 'getQueryType'}, params)
+ return httpService({
+ url: `/api/v6.ashx`,
+ method: 'post',
+ data: obj,
+ headers: {
+ 'content-type': 'application/x-www-form-urlencoded'
+ }
+ })
+}
diff --git a/src/views/ThemeAnalize/index.vue b/src/views/ThemeAnalize/index.vue
index 9ab68dc..1b724d1 100644
--- a/src/views/ThemeAnalize/index.vue
+++ b/src/views/ThemeAnalize/index.vue
@@ -101,8 +101,12 @@
-
-
+
+
+
+
+
+
@@ -140,11 +144,15 @@
-
+
-
-
+
+
+
+
+
+
@@ -157,8 +165,7 @@
-
-
+
@@ -203,15 +210,6 @@ export default {
}
]
},
- searchWord: {
- mustWord: '', //和模式-必选词
- huoWord: '', //可选词
- mainWord: '', //或模式-主体词
- keyWord1: '', //关键词1
- keyWord2: '', //关键词2
- highlvlWord: '', //高级模式分析词
- paichuWord: '', //排除词
- },
mode: 0,
isHigh: 0,
//配置组合示例
diff --git a/src/views/ThemeAnalize/tbEvent.js b/src/views/ThemeAnalize/tbEvent.js
index 94b4b9c..1332940 100644
--- a/src/views/ThemeAnalize/tbEvent.js
+++ b/src/views/ThemeAnalize/tbEvent.js
@@ -70,22 +70,6 @@ export default {
},
//删除确认框
cancel() {},
- //处理输入的词
- doWords() {
- if(this.mode == 0 && this.isHigh == 0) { //和模式
- this.addForm.IsAdvancedQuery = 0;
- this.addForm.AnalyzeWord = this.searchWord.mustWord;
- this.addForm.HuoWord = this.searchWord.huoWord;
- this.addForm.PaiChu = this.searchWord.paichuWord;
- } else if (this.mode == 2 && this.isHigh == 0) { //或模式
- this.addForm.AnalyzeWord = this.searchWord.mustWord;
- this.addForm.HuoWord = this.searchWord.keyWord1 + ';' + this.searchWord.keyWord2;
- this.addForm.PaiChu = this.searchWord.paichuWord;
- } else { //高级模式
- this.addForm.IsAdvancedQuery = 1;
- this.addForm.AnalyzeWord = this.searchWord.highlvlWord;
- }
- },
//新增确认框
handlerOk() {
let newForm = {
diff --git a/src/views/ThemeData/getApi.js b/src/views/ThemeData/getApi.js
index 8b6f781..85e18b4 100644
--- a/src/views/ThemeData/getApi.js
+++ b/src/views/ThemeData/getApi.js
@@ -1,4 +1,4 @@
-import { getQuDao, getQingGan, getTwoTime,getToExcelField} from "@/api/comm";
+import { getQuDao, getQingGan, getTwoTime,getQueryType ,getToExcelField} from "@/api/comm";
import {getList} from "@/api/ThemeAnalizeDec"
export default {
//获取表格数据
@@ -106,6 +106,19 @@ export default {
});
});
},
+ //获取查询类型
+ getQueryType() {
+ return new Promise((resolve, reject) => {
+ getQueryType().then((res) => {
+ let data = res.data;
+ this.plainOptions2 = data
+ resolve();
+ })
+ .catch(() => {
+ reject(false);
+ });
+ });
+ },
// 给后台传渠道
doFormQudao(val = []) {
let arr = [];
diff --git a/src/views/ThemeData/index.vue b/src/views/ThemeData/index.vue
index 433f1d2..c96cbbd 100644
--- a/src/views/ThemeData/index.vue
+++ b/src/views/ThemeData/index.vue
@@ -28,7 +28,11 @@
关键词:
-
+
+
+ {{ item.value }}
+
+
@@ -130,6 +134,7 @@ export default {
iGroupBy: '', //去重筛选 0不去重 1相似度去重
isSourcetype: '', //1 返回渠道 0 不返回
listType: '', //0默认 1影响力倒序 eventList事件脉络
+ sTitleType: -1,
website: '',
iTimeType: '' //时间筛选 0发布时间 1入库时间
},
@@ -157,6 +162,7 @@ export default {
gValue2: 0,
btnTimes2:['不去重','相似度去重'],
//搜索框
+ plainOptions2:[],
searchTitle: '',
//表格
columns: [
diff --git a/src/views/ThemeData/tableEvent.js b/src/views/ThemeData/tableEvent.js
index 3b272a0..90ad63a 100644
--- a/src/views/ThemeData/tableEvent.js
+++ b/src/views/ThemeData/tableEvent.js
@@ -37,6 +37,7 @@ export default {
this.getTime(),
this.getQuDao(),
this.getQingGan(),
+ this.getQueryType(),
]).then(() => {
this.form.token = this.getToken;
this.form.sGuid = this.$route.query.sGuid;
@@ -44,6 +45,7 @@ export default {
this.form.iGroupBy = '0';
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);
@@ -188,6 +190,10 @@ export default {
this.form.sTitle = this.searchTitle;
this.getTableData();
},
+ // 改变搜索模式
+ handlerSearchMode(val) {
+ this.form.sTitleType = val;
+ },
// 改变页面的数据
handlerPage(p) {
let iPageIndex = p.current;
@@ -227,9 +233,9 @@ export default {
sQuDao: this.form.sTimeType,
sQingGan: this.form.sQingGan,
sTitle: this.form.sTitle,
- sTitleType: '1',
+ sTitleType: this.form.sTitleType,
sGuid: this.form.sGuid,
- iTimeType: this.form.sGuid,
+ iTimeType: this.form.iTimeType,
website: this.form.website,
}
let eForm = Object.assign(o,this.execlForm);